0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ghost Script memo

Last updated at Posted at 2014-05-08

-sDEVICE

  • epson

    any.

    1. png16m

      any have [pngmonod, png16m, pnggray and pngalpha]
      注意: pngalpha にした時、背景は透明になる

      -dBackgroundColor=16#ffffff など指定が必要?よくわからん

    2. jpeg

       options:
       1. -dJPEGQ (0 to 100, default:75)
       	Quality Level
       2. -dQFactor (0 to 1.0)
       	QFactor quality scale
      
    3. epson

    4. ijs (InkJeT)

$ gs -dSAFER -sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel='DESKJET 990' -dIjsUseOutputFD -sOutputFile=/dev/usb/lp1 -dNOPAUSE -- examples/tiger.eps

$ gs -sDEVICE=epson example/tiger.ps

-OutputFile

出力ファイル

printf のに順次してた場合、ページ番号で連番で作成する。

-sOutput=test-%03d.png など。

-dFirstPage / -dLastPage

出力するページを限定させる

  • -dFirstPage ではじめのページ
  • -dLastPage で終わりのページ

-r

出力ファイルの解像度を変更させる。

-r400にした場合、400dpiになる。
-r400x300 にした場合、縦は400dpiになり、横は300dpiになる。

-dFIXEDMEDIA

何かページサイズに合わせるだって。

-dBATCH

つけることで、Postscriptのコマンド実行が終わった時にプロセスを終了する。

-dNOPAUSE

ページ出力が終わった時に、止まらない。よくわからん。

see:

http://ghostscript.com/doc/current/Use.htm
http://ghostscript.com/doc/current/Devices.htm
http://d.hatena.ne.jp/hoge49/20120607/1339040993
http://www.linuxjournal.com/content/tech-tip-extract-pages-pdf

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?