Creates a standard security handler from an encryption dictionary. Selects the appropriate version (V1-V5) based on the dictionary parameters.
The encryption dictionary from the PDF trailer.
Optional
Optional configuration including passwords and document ID.
The appropriate standard security handler instance.
Error if the version/revision combination is unsupported.
const handler = createStandardSecurityHandlerFromDictionary(encryptDict, { password: 'user', ownerPassword: 'owner'}) Copy
const handler = createStandardSecurityHandlerFromDictionary(encryptDict, { password: 'user', ownerPassword: 'owner'})
Creates a standard security handler from an encryption dictionary. Selects the appropriate version (V1-V5) based on the dictionary parameters.