[
https://issues.apache.org/jira/browse/PDFBOX-5179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17332598#comment-17332598
]
Tilman Hausherr commented on PDFBOX-5179:
-----------------------------------------
The PrintImageLocation.java example does not save any images so I don't know
what bug you are alleging. The images in your file are all stored in 0°
rotation (use PDFDebugger to see that). The rotation that you see is done by
applying different transforms in the page content stream. The rotations applied
to your image are 0, -90 (= 270), 180, 90.
> 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]