Creates a security handler from an encryption dictionary. Automatically detects the handler type (Standard or Adobe.PubSec) and version.
The encryption dictionary from the PDF trailer.
Optional
Optional configuration including passwords and recipients.
The appropriate security handler instance.
Error if the filter type is unsupported.
const handler = createFromDictionary(encryptDict, { password: 'secret' }) Copy
const handler = createFromDictionary(encryptDict, { password: 'secret' })
Creates a security handler from an encryption dictionary. Automatically detects the handler type (Standard or Adobe.PubSec) and version.