大森@千葉大です。 > GhostScript の HP LaserJet6L での利用に関して質問させて下さい。 > > Debian Hamm 2.0 付属の gs-alladin-vflib (Aladdin Ghostscript 5.10) > で、LaserJet6L への印刷を試みています。 (中略) > the proper page device parameters for this printer are set by > << /.HWMargins [ml mb mr mt] /Margins [x y] > >> setpagedevice > > と言われるのですが、これらってどこに書けば良いのでしょうか? 例えば、margins.ps という名前のファイルを作って、 << /.HWMargins [0.0 0.0 0.0 0.0] /Margins [0.0 0.0] >> setpagedevice などと中身を書きます。(単位はポイントで 1/72 inch です。 数字は 0.0 にしてあるので適当なものを入れて下さい) そして、margins.ps を Ghostscript の検索パスにおいて、 gs -q -dNOPAUSE -dSAFER -sDEVICE=ljet4 margins.ps hoge.ps のようにします。 または印刷したい PostScript ファイルの先頭のほうに margins.ps と同様の中身を追加しても同じ効果を得られます。 私の環境 (Ghostscript 5.50 + LIPS IV プリンタ + 自作ドライバ)だと /Margins ではなぜか期待した量動いてくれなかったりするので、 << /.HWMargins [0.0 0.0 0.0 0.0] /PageOffset [0.0 0.0] >> setpagedevice と /PageOffset を変わりに用いています。 # ちなみに私の環境ではなぜか align.ps では y 方向がうまく調整 # できません。 他の PostScript ファイルではピッタリとあっているので # 気にしてませんが。 > あるいは、他にページを offset するやり方がありましたら、 > 教えていただければ幸いです。 プリンタのパネルで設定できる機種もあるようです。 しかし、Ghostscript 以外からも印刷するなら極力さけたほうが よいでしょう。 -- 大森 紀人 千葉大学 薬学部 薬品物理化学研究室
Follow-Ups: References:
- Prev by Subject: [linux-users:38126] console login prompt
- Next by Subject: [linux-users:38128] Re: (Re: Re: /var/log/messages)
- Previous by thread: [linux-users:38122] page alignment with Ghostscript (& HP LaserJet6L)
- Next by thread: [linux-users:38217] [summary] page alignment with Ghostscript
- Indexes:[Main][Thread]