[
https://issues.apache.org/jira/browse/PDFBOX-5179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17332980#comment-17332980
]
Tilman Hausherr commented on PDFBOX-5179:
-----------------------------------------
Where does ImageUtil.rotateImage come from? The one from PDFBox? I had
forgotten about that one, it was just for PDFDebugger and it has a minor bug:
it would fail with negative values. Add 360 to your value and try again.
Which of the image(s) gets out wrong? All of them or some of them?
> PDFBox PrintImageLocations: Extracts images in wrong orientation
> ----------------------------------------------------------------
>
> Key: PDFBOX-5179
> URL: https://issues.apache.org/jira/browse/PDFBOX-5179
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.21
> Environment: Windows 10, Tomcat 9, jdk 1.8_0161
> Reporter: Michael Carell
> Priority: Major
> Attachments: 0137d7db-7ca3-4573-a73a-1386699d922c.jpeg,
> Testdokument.pdf, org_0137d7db-7ca3-4573-a73a-1386699d922c.jpeg
>
>
> The PrintImageLocation class writes images in the original and rotated
> format. I used the algorithm in a image processing application. I found some
> PDF documents, where the extracted pictures have a wrong orientation. I have
> build a document to test that case.
> How to reproduce:
> I have constructed a MS Word document, that contains 4 images with different
> rotation levels (0°, 90°, 180°, 270°). I exported the document to PDF format.
> If you call PrintImageLocation with that PDF, the pictures within the
> document, that are rotated are displayed in in the right order and the
> "rotate" images, have the orientation from the document.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]