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

Font glyph widths must be an array of numbers #472

Closed yob closed 2 years ago

yob commented 2 years ago

... so assert that when we read it out of the PDF. This should mean we catch invalid/corrupt PDFs early and raise a MalformedPDFError, rather than pass around an Array of god knows what.

yob commented 2 years ago

oops, the W array can contain numbers and other arrays.