Debenu Quick PDF logo

EncodePermissions

Security and Signatures

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 TDebenuPDFLibrary1511.EncodePermissions(CanPrint, CanCopy, CanChange, 
  CanAddNotes, CanFillFields, CanCopyAccess, CanAssemble, 
  CanPrintFull: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.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 DPLEncodePermissions(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 or higher.

Return values

Result is a 32-bit encoded number which should be passed to the Encrypt function

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport