itext 7.1 how to check if image is rotated
问题 in itext 7.1, I am adding an image to a pdf document with following code : Document document = new Document(writerPdf); //make a new document object ImageData imgData = ImageDataFactory.create(imageBytes); Image image = new Image(imgData); document.add(image); This works fine for most images but I have come across an image that seems normal on desktop but when adding to pdf it is rotated by -90 . imgData.getRotation() gives 0 as output My question is : how to check if image has any rotation