Comprehensive Guide for Developers: Features, Integration, and API Reference
#include <pdfsdk/core/security.h>
Public Attributes | |
| PDStdPassword | userPassword |
| bool | hasUserPassword |
| PDStdPassword | ownerPassword |
| bool | hasOwnerPassword |
| PDStdPerms | permissions |
| int | revision |
| int | version |
| PDAtom | cryptMethod |
| int | keyLength |
| bool | encryptMetadata |
| bool | encryptAttachmentsOnly |
Standard Security Handler Data to be used with Security Handler getters and setters.
| PDAtom PDStdSecurityParams::cryptMethod |
Determines which algorithm to use for encryption. It is not necessary to set this since setting revision is enough but it is possible to check it.
| bool PDStdSecurityParams::encryptAttachmentsOnly |
A flag to indicate that only attachments are encrypted. encryptMetadata and encryptAttachmentsOnly cannot both be true.
| bool PDStdSecurityParams::encryptMetadata |
A flag that indicates whether document metadata will be encrypted. encryptMetadata and encryptAttachmentsOnly cannot both be true.
| bool PDStdSecurityParams::hasUserPassword |
Set to true if there is a user password. If this is true but userPassword is empty then user is not authorized yet
| int PDStdSecurityParams::keyLength |
Length field in Encrypt dictionary. The length of the encryption key, in bytes. It is not necessary to set this since setting revision is enough but it is possible to check it.
| PDStdPassword PDStdSecurityParams::ownerPassword |
The owner password.
| PDStdPerms PDStdSecurityParams::permissions |
The permissions for the document.
| int PDStdSecurityParams::revision |
/R field in Encrypt dictionary.
| PDStdPassword PDStdSecurityParams::userPassword |
The user password.
| int PDStdSecurityParams::version |
/V field in Encrypt dictionary. It is not necessary to set this since setting revision is enough but it is possible to check it.