[gs-devel] Converting PDF to PS keeping native resolution

Thomas Robitaille thomas.robitaille at gmail.com
Thu Apr 16 19:01:03 PDT 2009


Hello,

Apologies if I am posting to the wrong list. I am trying to convert a  
PDF to a PS file, which in itself isn't difficult thanks to pdf2ps (or  
using gs directly). However, the PDF contains a low-resolution bitmap,  
and I would like the bitmap to keep the same resolution in the PS  
file. However, it seems that the default behaviour is for pdf2ps/gs to  
rasterize the bitmap to a specific resolution.

If I run the following command on the attached 12kb PDF (which I've  
compressed to get under the 12kb mailing list limit), I get a 1Mb  
postscript file:

tom$ du -sh initial.pdf
12K	initial.pdf
tom$ pdf2ps initial.pdf initial.ps
tom$ du -sh initial.ps
944K	initial.ps

Is there any way to prevent this from happening? I want to be able to  
convert files which may have bitmaps of varying resolution to start  
with, so I am looking for a way to simply conserve the original  
resolution when converting to a PS file.

Thanks in advance for any help,

Thomas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: initial.tgz
Type: application/octet-stream
Size: 4545 bytes
Desc: not available
Url : http://ghostscript.com/pipermail/gs-devel/attachments/20090416/de982bdf/initial.obj
-------------- next part --------------




More information about the gs-devel mailing list