I want to know the syntax to invoke GhostScript directly to get the same effect as each of the following command does.
ps2pdf input.pspdfcrop --hires inputpdftops -eps input.pdfepstool --copy --bbox input.eps output.epsepstopdf --hires input.eps
|
I want to know the syntax to invoke GhostScript directly to get the same effect as each of the following command does.
|
|||||||||||
|
|
You can get this by looking at the source code of these tools. Most of them are scripts, which compile a list of Ghostscript options depending on their command line options and execute it at the end. In order to get the For your 1. I get: gs -P- -dSAFER -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile=input.pdf -P- -dSAFER -c .setpdfwrite -f input.ps Number 2. is a Perl script and is only using GS for the BBox extraction (as my gs -sDEVICE=bbox -dBATCH -dNOPAUSE -c save pop -f input.pdf Number 3. is a program not a script and uses Number 4. again simply uses Ghostscript for BBox extraction which is then placed into the otherwise unchanged file. Here the BBox is written to a temp file first. "gs" -dNOPAUSE -dBATCH -sDEVICE=bbox -c "> setpagedevice" -f "/tmp/gsviewnIk3kp" Number 5 uses (displayed using the gs -q -dNOPAUSE -dSAFER -sDEVICE=pdfwrite -sOutputFile=input.pdf -dPDFSETTINGS=/prepress -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -dAutoRotatePages=/None - -c quit |
|||||||||||
|
|
Where is the problem? Do a
|
|||||||||
|
|
Most of these are shell/perl scripts so you can easily see what they do. They all do a bit (or a lot) more than simply invoking
|
|||||||
|