[OS X TeX] GhostScript assistance needed!

Peder Axensten peder at axensten.se
Wed Apr 26 07:49:32 EDT 2006

On 24 apr 2006, at 15.45, Piet van Oostrum wrote:

>>>>>> Peder Axensten <peder at axensten.se> (PA) wrote:
>> PA> I need to use Ghost Script (without any perl scripts or  
>> similar) to
>> PA> convert an .eps file to .pdf. Normally I do this with  
>> epstopdf, but  now I
>> PA> need a more independent way of doing it using only GS. How   
>> would the
>> PA> command look like? (Why is epstopdf needed anyway? Must be  an  
>> awfully
>> PA> complicated GS command...)
> epstopdf extracts the bounding box from the EPS file and prefixes  
> the file
> with some additional Postscript code to shift the lower left corner to
> (0,0) and to set the pagesize to the size of the EPS. After that  
> the gs
> command is quite simple:
> gs -q -sDEVICE=pdfwrite -dAutoRotatePages=/None - 
> sOutputFile='$OutputFilename' '$InputFilename' -c quit

This can all be done without epstopdf with the option -dEPSCrop, I've  
just found out:

gs  -q -dNOPAUSE -dBATCH -dEPSCrop -sOutputFile='OutputFilename.pdf'  

Is there a way to change the color space of the pdf to cmyk, rgb, or  
-dProcessColorModel=... and -sProcessColorModel=... don't seem to work?

Is there a way to output cmyk png and jpeg files?

Any help appreciated.


------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/

More information about the MacOSX-TeX mailing list