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

Page#rectangles return the page boxes as PDF::Reader::Rectangle objects #402

Closed yob closed 2 years ago

yob commented 2 years ago

... with the page rotation (if any) applied.

These are soooo much nicer to work with than 4 element arrays.

Page#boxes is now implemented on top of Page#rectangles, so the page rotation is applied there as well. Page#boxes is soft deprecated and might be removed one day.