yob / pdf-reader

The PDF::Reader library implements a PDF parser conforming as much as possible to the PDF specification from Adobe.
MIT License
1.82k stars 271 forks source link

Improve and fill in some specs for inflating streams #331

Closed yob closed 4 years ago

yob commented 4 years ago

confirm we can inflate:

  1. RFC1950 zlib stream 2 RFC1951 raw DEFLATE stream
  2. RFC1952 gzip stream (probably not strictly required, but easy to include because zlib handles it)

Also, re-label a spec from the vague:

raises a MalformedPDFError when there's a problem decoding a Flated Stream

to the much better:

with a zlib stream (RFC1950) that fails an adler32 CRC check ...raises a MalformedPDFError