Is there a way to detect when the pdf is in landscape orientation so I can code a workaround for this?
Thank you for you interest in Orpalis technologies.
The GetPageRotation method retrieves the page rotation (clockwise), in degrees, of the current page of the PDF.
http://guides.gdpicture.com/content/web ... ation.html
Have you taken into consideration the value returned by this method within your croppping code?
In order to ease your life, I recommend to normalize the page before working with its coordinates. This will let you crop without taking into consideration orientation neither crop box.
Please see the NormalizePage method: http://guides.gdpicture.com/content/web ... ePage.html
It seems the NormalizePage method doesn't work properly with this particular PDF.
The development team is currently working on the topic. We are doing our best effort to include this fix within the next release, which should come in the coming days.
Who is online
Users browsing this forum: No registered users and 2 guests