5 Septembri 2006

LazyWeb on JPEG to PDF conversion

My thanks to the LazyWeb for helping me with my JPEG to PDF conversion problems.

I got several suggestions. The easiest fix turned out to be telling ImageMagick to turn the JPEGs into a PostScript file (convert *.jpg newfile.ps) and then using ps2pdf (part of the Ghostscript suite of PDF tools) to turn the PostScript into PDF (ps2pdf newfile.ps). Worked like a charm; no outsize bounding boxes.

I still have no idea why ImageMagick messed this up in the first place, since (my understanding is) it works through Ghostscript anyway. But as long as I can fix the problem without huge angst and discontent, it’s all good.