I have a PDFReader which contains some page in landscape mode and other in portrait.
I need to distinct them to do some treatment... However, if I call the getOrientatio
Fix :
use
PdfStamper.getImportedPage(pdfReader, pagenumber).getBoundingBox().getWidth()
instead of
stamper.getOverContent(i).getPdfDocument().getPageSize().getWidth();