<代码>-dEPSCrop和-dEPSFitPage
相互排斥:
- One crops the EPS to the BoundingBox specified in the comments.
- The other scales up the EPS from the
%%BoundingBox
specified in the PS file s internal comments to fit the current media.
You can t really use both at the same time.
The file can t be an EPS file anyway, because you can t have multiple pages in an EPS file. So actually neither switch will have any effect (as you ve discovered).
Either the PostScript requests a media size using setpage
or setpagedevice
, or it just uses whatever the currently set media is. My guess is that its just using the current media. Try setting -sPAPERSIZE=a4
and -sPAPERSIZE=letter
.
如果这项工作如此,该方案并不要求媒体规模。 如果无效果,则将另外制定<条码>-dFIXEDMEDIA,其中将忽略随后提出的改变媒体规模的要求。
如果你不了解媒体的规模,那么你就能够使用“新闻”栏目<代码>-sDEVICE=b Box。
Lastly, Ghostscript has a rudimentary display device which you can use to view the rendered output without first going to a PNG.