[Poppler-bugs] [Bug 103446] syntax errors reported on PDFs created by xsane
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Oct 25 19:58:45 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=103446
--- Comment #3 from Adrian Johnson <ajohnson at redneon.com> ---
(In reply to Larry Myerscough from comment #2)
> Is there an easy way (with poppler tooling?) to re-style my PDFs to use a
> more standard construction without changing the actual image part of the
> data. (I would prefer our official archive to contain unarguably valid PDFs
> with no bending of the standard.)
I tried running it through ghostscript:
$ pdf2ps African-Symphony-Baritone-C.pdf out.ps
$ ps2pdf out.ps out.pdf
$ pdfimages -list out.pdf
page num type width height color comp bpc enc interp object ID x-ppi
y-ppi size ratio
--------------------------------------------------------------------------------------------
1 0 image 4800 6959 gray 1 1 ccitt no 8 0 600
600 105K 2.6%
2 1 image 4800 6959 gray 1 1 ccitt no 14 0 600
600 86.4K 2.1%
Not only has it converted it to a standard image, it has also encoded the
images with CCITT which gives better compression for 1 bpc images compared with
Flate.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20171025/54bbc5d0/attachment.html>
More information about the Poppler-bugs
mailing list