Andrew Lentvorski wrote: > David Looney wrote: >> Andrew Lentvorski wrote: >>> The scanner I am dealing with produces 600DPI PDF files. Not a big >>> deal, or so I thought. >>> >>> How on earth do I convert the PDF file to TIFF/PNG/something useful to >>> GIMP? >> >> Ghostscript ? >> >> gs -q -dNOPAUSE -sDEVICE=tiff24nc -r600x600 -sOutputFile=test.tif -- >> ./testpage.pdf >> >> Produces a 4958x7017 file for a US letter test page, which is not quite >> the 5100x6600 expected, but lots of dots (and quite a big file - 100MB). > > Still downsamples.
Actually, it looks like the -r600x600 is NOT the way to go, and -dDownsampleColorImages=false is not needed. GS just then assumes it's a standard page, and produces an image file of horrific size to match. I took a 15 mb jpeg 24-bit color image and made it into a pdf: convert test.jpg testimg.pdf and then took made a tiff based on the pdf: gs -q -dDownsampleColorImages=false (or not - didn't matter) -dNOPAUSE -sDEVICE=tiff24nc -sOutputFile=test.tif -- ./testimg.pdf The result was a 2288x1712 truecolor image indistinguishable from the original at any resolution. So something about your scanned PDF (way image is stored ?) must be different. Dave Looney -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
