Shino Shino - 5 days ago 5
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

Try getPageRotation() combined with getPageSize()

Comments