English 中文(简体)
适合在影印中页数(可能有腐败的投入)
原标题:Fit to page size in ghostscript (with a possibly corrupt input)

我试图使用影子把 file子变成一系列的png文档,这主要是因为我没有听从的笔记。

这是使用的指挥I ve:

gs -dBATCH -dEPSCrop -dEPSFitPage -sDEVICE=png16m -r300  -dNOPAUSE -sOutputFile=neptune_111115_ob1-2_13pca_boloplots_%d.png neptune_111115_ob1-2_13pca_boloplots.ps 

(the .ps file is a multi-page postscript).

产出部分在网页上。 我把图像放在网页上。

我可以包括一些实例档案,但是它们相当庞大——或许档案中有哪一部分会有所帮助?

我的怀疑是,假冒案卷对捆绑箱的描述是不正确的,但 ha弄B值并没有产生任何效果。 该表由IDL(交互式数据语言)撰写。 我也曾尝试过上述指挥系统,但没有——dEPS*的指挥。

最佳回答

<代码>-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.

问题回答

暂无回答




相关问题
LaTeX font in Postscript document

I am starting off with Postscript, and would like to do something very simple: include a LaTeX symbol within my Postscript document. For example: %! /FontSize 12 def newpath 0 0 moveto ("Hello ...

Weird problem, with ghostscript and pdf files

am using ghostscript to create pdf file from postscript file. My PS file, doesn t have orientation instructions, so when I want to create landscape pdf file, I m using ghostscript to rotate the page. ...

Convert from PDF to Postscript using Java

I am having a J2EE based application, where I am using a reporting tool to generate outputs in PDF format. I need a utility/ tool in Java which can help me convert my PDF file to postscript format so ...

Overlaying or merging multiple .ps files

I have used gmt to create several .ps files of x - y graphs with identical axes. I have several sets of data, each containing between 14 and 20 plots. Each plot is in a separate directory. I would ...

Postscript number of copies

Is there a way to edit a postscript file, to add or increase the number of copies to be printed?

Convert TIFF to PostScript

I m writing .net code (Windows Forms Application) which reads a TIFF image (CMYK) and sends it to printer (using WritePrinter). Before I send it, I need to convert the TIFF image to PostScript. Could ...

Problem - Sending postscript data to printer using ExtEscape

I m trying to send postscript data to the printer using ExtEscape, but the printer didn t respond at all for the following code (1st ExtEscape returned true. 2nd ExtEscape also returned true, but no ...

Generating Postscript using PHP: browser offers to save file

$ps = ps_new(); ps_open_file($ps,$filename); ps_begin_page($ps,$size,$size); ps_set_parameter($ps, SearchPath , /usr/share/texmf-texlive/fonts/afm/bluesky/cm ); $psfont = ps_findfont($ps, "cmr10", "...

热门标签