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

Fix exception in PageLayout when the page is too small to fit the text it holds #347

Closed yob closed 3 years ago

yob commented 3 years ago

When the page has a 72pt character that would be bigger than the page, our current page layout algorithm assume the character shouldn't visible.

This fixed a crash, although maybe we could also debate whether dropping the character is the right behaviour?

Fixes #346