EncodePermissions
Version history
This function was renamed in Quick PDF Library version 7.11.
The function name in earlier versions was Permissions.
Description
Create a value for the Permissions parameter of the Encrypt function.
Syntax
Delphi
function TQuickPDF0813.EncodePermissions(CanPrint, CanCopy, CanChange, CanAddNotes,
CanFillFields, CanCopyAccess, CanAssemble, CanPrintFull: Integer): Integer;
ActiveX
Function QuickPDF0813.PDFLibrary::EncodePermissions(CanPrint As Long,
CanCopy As Long, CanChange As Long, CanAddNotes As Long,
CanFillFields As Long, CanCopyAccess As Long, CanAssemble As Long,
CanPrintFull As Long) As Long
DLL
int QuickPDFEncodePermissions(int InstanceID, int CanPrint, int CanCopy,
int CanChange, int CanAddNotes, int CanFillFields, int CanCopyAccess,
int CanAssemble, int CanPrintFull)
Parameters
| CanPrint | Set this to 1 to allow the user to print the document |
| CanCopy | Set this to 1 to allow the user to copy text and graphics from the document |
| CanChange | Set this to 1 to allow the user to edit the document |
| CanAddNotes | Set this to 1 to allow the user to add annotations |
| CanFillFields | Set this to 1 to allow the user to fill in form fields. Only works with 128-bit encryption. |
| CanCopyAccess | Set this to 1 to enable copying for use with accessibility features. Only works with 128-bit encryption. |
| CanAssemble | Set this to 1 to allow the user to assemble the document. Only works with 128-bit encryption. |
| CanPrintFull | Set this to 0 to force low-resolution printing of the document only. This prevents the document from being distilled into a new PDF document. Only works with 128-bit encryption. |
Return values
| Result is a 32-bit encoded number which should be passed to the Encrypt function |