-dEPSCrop and -dEPSFitPage are mutually exclusive:
- Highlight the EPS in the BoundingBox specified in the comments.
- Others scale EPS from the
%%BoundingBox specified in the internal comments of the PS file to match the current media.
You cannot use both at the same time.
A file cannot be an EPS file anyway, because you cannot have multiple pages in an EPS file. Thus, in fact, none of the switches will have any effect (as you discovered).
How PostScript asks for media size using setpage or setpagedevice , or simply uses what was in the currently installed media. I assume that it just uses the current media. Try setting -sPAPERSIZE=a4 and -sPAPERSIZE=letter .
If this works, the program does not request media size. If this does not work, add -dFIXEDMEDIA , which will ignore subsequent requests for resizing media.
This should allow you to specify the correct media size, if you do not know what the media size should be, then you can use the device Ghostscript -sDEVICE=bbox to find out.
Finally, Ghostscript has a rudimentary display device that you can use to view the output without first switching to PNG.
source share