PDFEncryptionInfo Object (COM-based API)

This object provides access to encryption parameters of the PDF file during export. These parameters are set in the EncryptionInfo property of PDFExportSettings. The PDFEncryptionInfo object allows you to do the following:

  • set owner and user passwords;
  • set the level of encryption;
  • enable or disable the following:
    • adding or modifying text annotations and interactive form fields;
    • assembling the document: inserting, rotating, or deleting pages and creating navigation elements such as bookmarks or thumbnail images;
    • copying or otherwise extracting text and graphics from the document;
    • filling out forms (that is, filling out existing interactive form fields) and signing the document (which amounts to filling out existing signature fields, a type of interactive form field);
    • modifying the contents of the document;
    • printing the document.

Note. The earliest version of the PDF file which matches the specified properties of the PDFEncryptionInfo object is selected as the version of the PDF file.

  • The earliest file version available is version 1.3.
  • If at least one of the AllowFillingFormFields, AllowExtractingTextAndGraphicsExt, AllowDocumentAssembling or AllowPrintingExt properties is TRUE, or the EncryptionLevel property is PEL_High, the PDF file version will be 1.4.
  • If the EncryptionLevel property is PEL_HighAES, the version will be 1.6.
Properties
Name Type Description
AllowAddingTextAnnotations Boolean Enables/disables adding or modifying text annotations and interactive form fields. The default value is FALSE.
AllowDocumentAssembling Boolean Enables/disables assembling the document: inserting, rotating, or deleting pages and creating navigation elements such as bookmarks or thumbnail images. The default value is FALSE.
AllowExtractingTextAndGraphics Boolean Enables/disables copying or otherwise extracting text and graphics from the document. The default value is FALSE.
AllowExtractingTextAndGraphicsExt Boolean Enables/disables extracting text and graphics (to make the accessible to users with disabilities or for other purposes). The default value is FALSE.
AllowFillingFormFields Boolean Enables/disables filling out forms (that is, filling out existing interactive form fields) and signing the document (which amounts to filling out existing signature fields, a type of interactive form field). The default value is FALSE.
AllowModifyingContent Boolean Enables/disables modifying the contents of the document. The default value is FALSE.
AllowPrinting Boolean Enables/disables printing the document. The default value is FALSE.
AllowPrintingExt Boolean Enables/disables printing to a representation from which a faithful digital copy of the PDF content could be generated. Disallowing such printing may result in degradation of output quality (a feature implemented as "Print As Image" in Acrobat). The default value is FALSE.
EncryptionLevel PDFEncryptionLevelEnum Sets the level of encryption. The default value is PEL_Low.
OwnerPassword String Stores the owner password. Opening the document with the correct owner password (assuming it is not the same as the user password) allows full (owner) access to the document. This unlimited access includes the ability to change the document’s passwords and access permissions. The default value is an empty string.
UserPassword String Stores the user password. Opening the document with the correct user password (or opening a document that does not have a user password) allows additional operations to be performed according to the user access permissions specified in the document’s encryption dictionary. The default value is an empty string.
See also

IPDFExportSettings::EncryptionInfo

26.03.2024 13:49:49

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.