Shino Shino - 11 months ago 52
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()