Page 1 of 1

convert PNG to PDF now too big !

Posted: 2008-11-26T06:22:58-07:00
by pippardo
Hi There !

Please see three files in http://rapidshare.com/files/167568132/sample.rar.

Why 2.pdf is 10 times greater than 1.pdf ? Both are build with:
convert source.png x.pdf

1.pdf is built with IM 6.4.0 Q16 on winXP (dead PC)
2.pdf is built with IM 6.4.6 Q16 on winXP

Bye from Italy !!!
Pippardo

Re: convert PNG to PDF now too big !

Posted: 2008-11-26T06:56:22-07:00
by magick
Looks like a bug which we will fix in the next point release. In the mean-time use this command:
  • convert source.png -compress zip source.pdf

Re: convert PNG to PDF now too big !

Posted: 2008-11-26T08:37:38-07:00
by pippardo
It works. You great !

Tks !
Pippardo

Re: convert PNG to PDF now too big !

Posted: 2008-11-26T10:58:59-07:00
by Mazin
I was just about to come here and post about the same problem. It seems that IM doesn't embed images in PDFs in their native bit depth.

I received a PDF of scans (black and white, 1bit/px). Burst it with pdfimages into PBM. Converted it into PNG (still 1bit/px). Ran "convert *.png pdf.pdf". The resulting PDF was much larger. I burst the new PDF with pdfimages, and I got PPM instead.

Anyways, using "convert *.pbm -compress Group4 something.pdf" worked wonders. Thanks!