You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Michael Carell (Jira)" <ji...@apache.org> on 2021/04/26 10:28:00 UTC

[jira] [Created] (PDFBOX-5179) PDFBox PrintImageLocations: Extracts images in wrong orientation

Michael Carell created PDFBOX-5179:
--------------------------------------

             Summary: 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
         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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org