[Magick-bugs] Problems creating PDFs from Indexed PNGs
Glenn Randers-Pehrson
glennrp at comcast.net
Mon Sep 18 15:41:20 CDT 2006
At 07:17 PM 9/18/2006 +0100, Edward Tandi wrote:
>I am trying to create a PDF document from 4 scanned PNG images.
>
>When the PNGs are in indexed mode (gimp:image->mode->indexed), the
>"convert *.png out.pdf" command succeeds, but when trying to view it,
>only the first two pages show. I've tried viewing this with evince, xpdf
>and acroread -same result.
>
>When I convert these scans to normal grayscale images, it is possible to
>see all the pages in the PDF document.
>
>I think this is a bug. Does anyone know of a workaround that allows me
>to use indexed PNGs?
>
With ImageMagick-6.2.9-6 I got the expected behavior, namely 4 pages
with an image. I used "convert logo: logo.png" and then
"convert logo.png logo.png logo.png logo.png 4logos.pdf". I checked
the logo.png with "pngcrush" to be sure it is an indexed PNG.
I checked the 4logos.pdf with "convert 4logos.pdf new.png" and got
four output files, and I looked at the file with acroread on a windows
machine.
I imagine it is possible that your input files have offsets that are
throwing them off the PDF page. Try the "+repage" option to get rid
of any offsets.
Glenn
More information about the Magick-bugs
mailing list