Bug 82995 - pdfimages should indicate/correct for image transformations
Summary: pdfimages should indicate/correct for image transformations
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: utils (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium enhancement
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-23 22:25 UTC by Stewart C. Russell
Modified: 2018-08-21 10:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
2 page PDF scan; displays properly, but extract images and the second page is flipped (7.61 KB, text/plain)
2014-08-23 22:25 UTC, Stewart C. Russell
Details

Description Stewart C. Russell 2014-08-23 22:25:56 UTC
Created attachment 105176 [details]
2 page PDF scan; displays properly, but extract images and the second page is flipped

(This enhancement might be really hard to do, as I realize that objects stored in a PDF data stream can have arbitrary transformations applied to them.)

My duplex scanner scans odd pages top-to-bottom, and even pages bottom-to-top. When it generates PDF output, though, it corrects for this by inserting a '/Rotate 180' on every second page. When pdfimages extracts the bitmaps, it doesn't take this rotation into account, and so every other extracted page is flipped the wrong way up.

Is there any way that this problem can be corrected in the output, and/or shown in the -list output, please? I've attached a small example.
Comment 1 Stewart C. Russell 2014-08-23 22:34:20 UTC
Apologies; the file doesn't use /Rotate, but the cm transformation operator on even pages:

    -596 0 0 -771 604 784 cm

for a Letter-sized scan. This probably makes it harder to detect.
Comment 2 Adrian Johnson 2014-08-24 03:12:26 UTC
pdfimages is intended to extract embedded images from a pdf. If you want see the the rendered view of the images you can use pdftoppm or pdftocairo to render pages.
Comment 3 GitLab Migration User 2018-08-21 10:52:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/399.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.