THotPDF.EnableEncrypt Method
Enables internal encryption functionality for a PDF document. Throws an exception if the currently set PDF/A or PDF/X standard does not support encryption.
Declaration
procedure EnableEncrypt;
Unit
HPDFDoc
Usage
| Name | Purpose |
|---|---|
| This member takes no explicit parameters | |
Return value
This member returns no value
Usage notes
- Use this API in the security workflow before the affected page, resource, field or catalogue object is finalised
- Called when needing to protect a PDF and activating password and permission controls prior to saving.