1

I am using ghost script version "ghostscript-8.71" to produce pdf file in my application.

In window it produce the pdf file with size "8.26x11.69 (A4)" and Linux 8.5x11 (for India Locale) .

I want to make it consistent as per Window environment. So Linux also produce the same pdf file size i.e "8.26x11.69 (A4)" (for India locale only)

I found the file named "gs_init.ps" under the directory "Resource\Init" which contain the settings. I found while googling ie.

Find the line in "gs_init.ps"

% /DEFAULTPAPERSIZE (a4) def

Then to make A4 the default paper size, uncomment the line to change this to

/DEFAULTPAPERSIZE (a4) def

But it has no effect in Linux. How we can make Linux to produce the pdf file with same size as Window for locale(India).

Please help me in this regard.

Thanks & Regards Vikas

4

1 回答 1

0

首先,使用最新版本。Ghostscript 的当前版本是 9.10。

如果您阅读 Ghostscript 文档,您会在 /ghostpdl/gs/doc/Use.htm#Paper_size 的第 3.4 节中找到您在 Google 上搜索的相同信息,其中还说:

“有时初始化文件被编译成 Ghostscript 并且无法更改。”

您是否尝试简单地设置 -sPAPERSIZE=a4 ?

于 2013-10-18T07:32:25.143 回答