Print Page | Close Window

EncodePermission - Issue with CanFillFields

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3957
Printed Date: 26 Apr 24 at 11:22AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: EncodePermission - Issue with CanFillFields
Posted By: Ingo
Subject: EncodePermission - Issue with CanFillFields
Date Posted: 19 Oct 21 at 9:33PM
Hi Everybody :)

is here somebody made similar experiences as i get today?
I wanted to temporary protect formfields with EncodePermissions setting CanFillFields to 0.
What i don't want is to set all other options especially CanChange and CanAddNotes to be forbidden.
This wasn't possible for me - if i set CanChange and CanAddNotes to 1 (means allowed) CanFillFields is allowed, too. Even if the option is 0.
If i use the following code line form fields can't be maintained but the other options are not allowed, too.
EncodePermissions(1, 1, 0, 0, 0, 0, 0, 1); // CanPrint, CanCopy, CanChange, CanAddNotes, CanFillFields, CanCopyAccess, CanAssemble, CanPrintFull
Even if i only set CanAddNotes to 1 (like the following line) form fields are fillable again - obviously CanFillFields is  set to 0.
EncodePermissions(1, 1, 0, 1, 0, 0, 0, 1); // CanPrint, CanCopy, CanChange, CanAddNotes, CanFillFields, CanCopyAccess, CanAssemble, CanPrintFull
before EncodePermission Decrypt is running and after EncodePermission Encrypt with 128 bit/rc4 is running.
I'm using QuickPDF 18.11 with Delphi XE3 on Windows 10.
Thanks in advance for any helping hints.

Cheers,Ingo



-------------
Cheers,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk