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.81k stars 271 forks source link

raise MalformedPDFError when depredict data is invalid #469

Closed yob closed 2 years ago

yob commented 2 years ago

This class is processing untrusted user data from PDF files, and if the data is invalid we want to raise one of our documented exceptions - not ArgumentError