Description
PDF files can be created with or without security. Creating a secure PDF allows you to restrict what can be done with the contents of the file. For instance, you can allow people to read and print the file but not be able to copy any of the text or images out of the file. Supported security options consist of two different levels of encryption and the ability to control what the viewer can do with PDF file. You can also set up to two levels of password protection using the SetPDFPassword method.
To set only a single security option use the SetProperty call with the appropriate arguments. See the Remarks below for a list of arguments.
Syntax
expression.SetPDFSecurity(UseSecurity, Encryption,
AllowCopyText, AllowPrinting,
AllowDocumentChange, AllowCommentsAndFormFields)
where expression is an IPNSession object.
Parameters
Boolean UseSecurity
Set True to create a secure PDF file, False to create an unsecured document.
pnPDFEncryption Encryption
A pnPDFEncryption constant for the encryption level of the PDF. The encryption option chosen determines what version of Acrobat is needed to open and view the file
Boolean AllowCopyText
Set True to allow text and images in the PDF file to be selected and copied to the clipboard for use in other documents, False to disallow.
Boolean AllowPrinting
Set True to allow the PDF file to be printed, False to disallow.
Boolean AllowDocumentChange
Set True to allow pages in the PDF file to be inserted, removed and modified, False to disallow. This also allows document signing as well as adding or editing form fields.
Boolean AllowCommentsAndFormFields
Set True to allow only form fields and comments to added, edited or removed; False to disallow.
Remarks
Use the following to set these options using SetProperty:
Method Parameter |
SetProperty Parameters |
||||||
---|---|---|---|---|---|---|---|
UseSecurity |
|
||||||
Encryption |
|
||||||
AllowCopyText |
|
||||||
AllowPrinting |
|
||||||
AllowDocumentChange |
|
||||||
AllowCommentsAndFormFields |
|
Supported Printers: PDF Image Printer, %SUPDRV_RASTER%>
See Also: SetPDFPassword SetProperty pnPDFEncryption