Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPDFDocument.SecurityOptions Property

Provides access to the document’s security settings.

#Declaration

Delphi
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.

See Also