Class

PDFPermissions


Description

An object used to get and set permissions to a PDFDocument. Assigning a password to a PDF document via PDFPermissions also protects the file with encryption.

Methods

Name

Parameters

Returns

Shared

Constructor

ownerPassword As String, userPassword As String = ""

Property descriptions


PDFPermissions.AllowCopyingContents

AllowCopyingContents As Boolean

If True, the user will be able to copy the contents of the document to the clipboard.


PDFPermissions.AllowModifyingContents

AllowModifyingContents As Boolean

If True, the user will be able to alter the contents of the document.


PDFPermissions.AllowPrinting

AllowPrinting As Boolean

If True, the user will be able to print the document.


PDFPermissions.OwnerPassword

OwnerPassword As String

The password required to change the permissions of the document.

Note

Only Latin characters are acceptable in passwords.


PDFPermissions.UserPassword

UserPassword As String

The password required to open and read the document.

Note

Only Latin characters are acceptable in passwords.

Method descriptions


PDFPermissions.Constructor

Constructor(ownerPassword As String, userPassword As String = "")

Creates a new PDFPermissions object with the ownerPassword and userPassword passed. If the userPassword is omitted, it will not have one.

Compatibility

Desktop, console, web and iOS project types on all supported operating systems.

See also

PDFDocument class