Versions in this module Expand all Collapse all v0 v0.6.0 Aug 21, 2026 v0.5.0 Aug 21, 2026 v0.4.0 Aug 21, 2026 v0.3.0 Aug 21, 2026 Changes in this version type Decryptor + func NewWithPassword(c Config, password []byte) (*Decryptor, error) v0.2.1 Jul 15, 2026 v0.2.0 Jul 13, 2026 Changes in this version + var ErrPasswordRequired = errors.New("pdf: encrypted document requires a password") + type Config struct + CF map[string]Filter + EncryptMeta bool + Filter string + ID []byte + Length int + O []byte + OE []byte + P int32 + R int + StmF string + StrF string + U []byte + UE []byte + V int + type Decryptor struct + func New(c Config) (*Decryptor, error) + func (d *Decryptor) DecryptStream(num, gen int, r io.Reader) io.Reader + func (d *Decryptor) DecryptStreamData(num, gen int, data []byte) []byte + func (d *Decryptor) DecryptString(num, gen int, s []byte) []byte + type Filter struct + CFM string + Length int + type Method int + const AESV2 + const AESV3 + const Identity + const RC4