PDFEncryptor
Overview
PDFEncryptor is a class in Aspose.Pdf FOSS for Java.
Encrypts individual PDF objects (strings and streams).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
active | boolean | Read | Returns true if the encryptor has a valid key. |
customHandler | ICustomSecurityHandler | Read | Returns the custom handler used by this encryptor, if any. |
Methods
| Signature | Description |
|---|---|
PDFEncryptor(encryptionKey: byte[], encDict: PDFEncryptionDict) | Creates an encryptor with the given key and encryption parameters. |
PDFEncryptor(encryptionKey: byte[], encDict: PDFEncryptionDict, customHandler: ICustomSecurityHandler) | Creates an encryptor backed by a custom security handler. |
encrypt(data: byte[], objectNumber: int, generationNumber: int) → byte[] | Encrypts data belonging to a specific PDF object. |
isActive() → boolean | Returns true if the encryptor has a valid key. |
getCustomHandler() → ICustomSecurityHandler | Returns the custom handler used by this encryptor, if any. |