Shino Shino - 1 year ago 69
Java Question

Getting the orientation of a PDF that has been read in through iText

I am reading in a PDF through iText. How can I check to see if the orientation of the first page is in landscape or portrait mode?

Answer Source

Try getPageRotation() combined with getPageSize()

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download