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

Pass MediaBox to PageLayout as a Rectangle, not a 4-element Array #409

Closed yob closed 2 years ago

yob commented 2 years ago

Rectangles are much easier to work with, and easier to type check. Some users of pdf-reader may be using PageLayout, so the Array param still works but we print a deprecation warning.