Jon Haugsand
2009-01-12 06:57:59 UTC
I have a pdf file which solely consists of four scanned images. When
using xpdf to view and print, the result is acceptable. However, when
using tools to extract the images, scale them, convert to ps and then
print, the results are terrible. I therefore try to find the best
steps, i.e. the steps xpdf uses, to print the images.
The images are extracted with pdfimages which produces 2480x3507 pbm
files. These are to be converted into 595x841 files using tools
available on a Linux. (ImageMagick, pbm*, pnm* and pgm* tools. Gimp
is not practical as I have many files and would like to make scripts.)
The following does not produce graphics as good as xpdf:
pnmscale 0.23980610208155118 f.pbm > f.pgm
convert f.pgm f.pdf
Any suggestions?
using xpdf to view and print, the result is acceptable. However, when
using tools to extract the images, scale them, convert to ps and then
print, the results are terrible. I therefore try to find the best
steps, i.e. the steps xpdf uses, to print the images.
The images are extracted with pdfimages which produces 2480x3507 pbm
files. These are to be converted into 595x841 files using tools
available on a Linux. (ImageMagick, pbm*, pnm* and pgm* tools. Gimp
is not practical as I have many files and would like to make scripts.)
The following does not produce graphics as good as xpdf:
pnmscale 0.23980610208155118 f.pbm > f.pgm
convert f.pgm f.pdf
Any suggestions?
--
Jon Haugsand
Dept. of Informatics, Univ. of Oslo, Norway, mailto:***@ifi.uio.no
http://www.ifi.uio.no/~jonhaug/, Phone: +47 45 00 39 94
Jon Haugsand
Dept. of Informatics, Univ. of Oslo, Norway, mailto:***@ifi.uio.no
http://www.ifi.uio.no/~jonhaug/, Phone: +47 45 00 39 94