Summary: | pdfimages should indicate/correct for image transformations | ||
---|---|---|---|
Product: | poppler | Reporter: | Stewart C. Russell <scruss> |
Component: | utils | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | enhancement | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | 2 page PDF scan; displays properly, but extract images and the second page is flipped |
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. 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. -- 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.
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.