Closed yob closed 2 years ago
This is intended to be a mostly internal utility class, to help with positioning and math in a type safe way.
It will be exposed via the public API, but only in a handful of places to begin with. Like fetching the origin of page, or the MediaBox:
PDF::Reader.open("somefile.pdf") do |pdf| pdf.pages.each do |page| puts page.origin.inspect puts page.rectangles[:MediaBox].inspect end end
This is intended to be a mostly internal utility class, to help with positioning and math in a type safe way.
It will be exposed via the public API, but only in a handful of places to begin with. Like fetching the origin of page, or the MediaBox: