Re: Ghostscript 7.07で ps->pdf 変換するときの用紙サイズの設定

名前: 小林
日時: 2004-09-04 17:47:50
IPアドレス: 219.29.30.*

>>31238 角籐様の助言をありがとうございました。 GSviewのOptions-> Advanced Configure にご提案の -sPAPERSIZE#a4 を書き込んでみましたが、A4サイズにはなりませんでした。 Ghostscript のマニュアルを読んではとのことで、Ghostscript Manual ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gs5man_e.pdf のChapter 4: Ghostscript Primer15 に次のように書いてあるのを見つけました。 Page size. Ghostscript uses U.S. letter size by default. To change this, use a text editor to locate the following line in the initialization file gs_init.ps: % (a4) /PAPERSIZE where { pop pop } { /PAPERSIZE exchdef } ifelse In this line, remove the “%” comment sign at the beginning to use A4 format. それで、C:\gs\gs7.07\lib にある gs_init.ps の67行目の次の文 % Optionally choose a default paper size other than U.S. letter. %(a4) /PAPERSIZE where { pop pop } { /PAPERSIZE exch def } ifelse の下側の%を消したら、無事A4サイズのpdfファイルが出来ました。 これで昨年12月から始めた dvi->ps->pdf ファイルへの変換が Guishell を使ってクリックだけでスムーズに行えるようになりました。 有益な助言を頂いた多くの方々に感謝します。

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます)