pdf-toolbox-core-0.1.1: A collection of tools for processing PDF files.
Safe HaskellNone
LanguageHaskell2010

Pdf.Core.Encryption

Description

Basic support for encrypted PDF files

Synopsis

Documentation

data DecryptorScope Source #

Encryption handler may specify different encryption keys for strings and streams

defaultUserPassword :: ByteString Source #

The default user password

mkStandardDecryptor Source #

Arguments

:: Dict

document trailer

-> Dict

encryption dictionary

-> ByteString

user password (32 bytes exactly, see 7.6.3.3 Encryption Key Algorithm)

-> Either String (Maybe Decryptor) 

Standard decryptor, RC4

decryptObject :: Decryptor -> Ref -> Object -> IO Object Source #

Decrypt object with the decryptor