phpdave11 / gofpdi

Go Free PDF Document Importer
MIT License
119 stars 59 forks source link

Understanding document rotation #38

Open DarioBernardo opened 4 years ago

DarioBernardo commented 4 years ago

Hi, I am reading a number of documents using the library. Some of these are rotated 90 degrees, some are not. When I get the height and width of the page, I always get the real measures, regarding if the document is rotated or not. To explain this better, let's assume an A4 page. If the A4 is rotated I would assume to get the width longer than the height, but somehow, the library is able to understand the rotation and returns me the actual height and width, with width < height, always. This causes me problems later in my processing. Is it possible to implemented or is there a way to understand if the document is rotated or not? thank you.