IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New PDF to JPG conversion
I've got a process in Photoshop on Windows that does a PDF to JPG conversion.
It creates very pretty output.
But it is a bear to automate. Requires Windows, have to deal with droplets, wants to run on a windows console, is generally yucky.

I'd like to do it on Linux.

I tried to use Gimp 2.2. Gimp does not natively read PDF, it calls Ghostscript to do it. It SEEMS to work, but the fonts are ugly.

So, what steps do I need to do to get the output to match Photoshop in appearance?
New Another tool to consider.
XnView's NConvert utility is specifically designed to convert graphics file formats in batch mode. It will do PDF import and output, also using Ghostscript/Ghostview.

A Linux version is [link|http://perso.wanadoo.fr/pierre.g/xnview/en_nconvert.html|available].

I suspect the font issues you're seeing are related to the [link|http://www.cs.wisc.edu/~ghost/doc/AFPL/5.50/Fonts.htm|fonts that GS/GV is using]. Messing around with the font mapping might help.

Note: I've not tried to do what you're doing, myself.

HTH!

Cheers,
Scott.
New Another possibility wrt the fonts
is to make sure that you set them to be rendered using AA. By default, they don't. ISTR that you can set GS to use up to 4 bit antialiasing when rendering fonts into an image format.
--\n-------------------------------------------------------------------\n* Jack Troughton                            jake at consultron.ca *\n* [link|http://consultron.ca|http://consultron.ca]                   [link|irc://irc.ecomstation.ca|irc://irc.ecomstation.ca] *\n* Kingston Ontario Canada               [link|news://news.consultron.ca|news://news.consultron.ca] *\n-------------------------------------------------------------------
New Might this work? "pdftoppm | convert"
It is the best(and really the best way to go) I can find.

pdftoppm -r 300 -t1lib yes -freetype yes -aa yes $PDFFILE.pdf &PDFFILE


$PDFFILE needs to be the "root" name, as pdftoppm adds "-00001.ppm to -99999.ppm" for each page of the PDF, etc...

Then you can use convert to literally do anything you want.

each page @ 300DPI is going to be pretty big as a ppm, assume 8.5x11 full color == 23.8MB for each page in temp file space.

The once there as a ppm, convert it to a jpeg or png or miff/tiff

You can do nearly anything you want.
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey
Freedom is not FREE.
Yeah, but 10s of Trillions of US Dollars?
SELECT * FROM scog WHERE ethics > 0;

0 rows returned.
Expand Edited by folkert Feb. 7, 2006, 06:12:55 PM EST
New Thanks all
Got it.

I needed to up the DPI to 300 during the initial read into Gimp.
That uses the fonts embedded in the PDF, and anti-aliases very nicely.
I then resample down to 120 DPI so it prints faster.
     PDF to JPG conversion - (broomberg) - (4)
         Another tool to consider. - (Another Scott) - (1)
             Another possibility wrt the fonts - (jake123)
         Might this work? "pdftoppm | convert" - (folkert)
         Thanks all - (broomberg)

Believed by many to be an idiot.
124 ms