TdxPDFDocument.SecurityOptions Property
Provides access to the document’s security settings.
Declaration
property SecurityOptions: TdxPDFSecurityOptions read; write;
Property Value
Type | Description |
---|---|
TdxPDFSecurityOptions | Stores PDF document security settings. |
Remarks
Set the SecurityOptions
.Enabled property to True
to encrypt a document. Use the SecurityOptions
.UserPassword and SecurityOptions
.OwnerPassword properties to set a user and owner password to protect the document. A subsequent SaveToFile or SaveToStream procedure call applies protection to the saved document.
The user password prevents unauthorized access to a document and imposes restrictions on certain actions, such as content copy and print operations in a consumer application. The owner password allows a user to open the document without restrictions.
Refer to the TdxPDFSecurityOptions class description for detailed information on available options.
Note
The current implementation of the SaveToFile and SaveToStream procedures cannot encrypt documents with the AES algorithm.