The open permissions for the document can be Must be provided together with an array of the same size for the permissions for each certificate. An array of one or more public certificates Throws DocumentException Sets the certificate encryption options for this document. Throws: DocumentException - if the document is already open Optionally DO_NOT_ENCRYPT_METADATA can be ored to output the metadata in cleartext It can be one of STANDARD_ENCRYPTION_40, STANDARD_ENCRYPTION_128 or ENCRYPTION_AES128.
Can be null or empty permissions - the user permissions encryptionType - the type of encryption. Can be null or empty ownerPassword - the owner password. Parameters: userPassword - the user password. The permissions can be combined by ORing them. The open permissions for the document can beĪllowPrinting, AllowModif圜ontents, AllowCopy, AllowModifyAnnotations,ĪllowFillIn, AllowScreenReaders, AllowAssembly and AllowDegradedPrinting. OwnerPassword can be null or have zero length. Throws DocumentException Sets the encryption options for this document. Sets the certificate encryption options for this document. Sets the encryption options for this document. In class PdfWriter, but they have been moved to this separate interface The values of the different preferences were originally stored
They are explained in section 3.3.3 of the book 'iText in Action'. Interface PdfEncryptionSettings All Known Implementing Classes: PdfCopy, PdfCopyFields, PdfCopyForms, PdfSmartCopy, PdfStamper, PdfWriterĮncryption settings are described in section 3.5 (more specifically SUMMARY: NESTED | FIELD | CONSTR | METHOD