のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

How to use ghostscript

GS>/MS-Gothic-90ms-RKSJ-H findfont
Querying operating system for font files...
Loading a TT font from C:/Windows/Fonts/msgothic.ttc to emulate a CID font MS-Gothic ... Done.
GS<1>
GS<1>/MS-Gothic-83ms-RKSJ-H findfont
Can't find (or can't open) font file %rom%Resource/Font/MS-Gothic-83ms-RKSJ-H.
Can't find (or can't open) font file MS-Gothic-83ms-RKSJ-H.
Didn't find this font on the system!
Substituting font Courier for MS-Gothic-83ms-RKSJ-H.
Loading NimbusMon-Reg font from %rom%Resource/Font/NimbusMon-Reg... 6051068 4698401 2917920 1626893 1 done.
GS<2>








How to use Ghostscript

PS D:\Program Files\gs\gs9.16\bin> .\gswin64c.exe -?
GPL Ghostscript 9.16 (2015-03-30)
Copyright (C) 2015 Artifex Software, Inc.  All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =)
 -dNOPAUSE           no pause after page   | -q       `quiet', fewer messages
 -g<width>x<height>  page size in pixels   | -r<res>  pixels/inch resolution
 -sDEVICE=<devname>  select device         | -dBATCH  exit after last file
 -sOutputFile=<file> select output file: - for stdout, |command for pipe,
                                         embed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PostScriptLevel3 PDF
Default output device: display
Available devices:
   bbox bit bitcmyk bitrgb bj10e bj200 bjc600 bjc800 bmp16 bmp16m bmp256
   bmp32b bmpgray bmpmono bmpsep1 bmpsep8 cdeskjet cdj550 cdjcolor cdjmono
   cp50 declj250 deskjet devicen display djet500 djet500c eps2write eps9high
   eps9mid epson epsonc fpng ibmpro ijs ink_cov inkcov jetp3852 jpeg
   jpegcmyk jpeggray laserjet lbp8 lj250 ljet2p ljet3 ljet3d ljet4 ljet4d
   ljetplus m8510 mswindll mswinpr2 necp6 nullpage pam pamcmyk32 pamcmyk4
   pbm pbmraw pcx16 pcx24b pcx256 pcxcmyk pcxgray pcxmono pdfwrite pgm
   pgmraw pgnm pgnmraw pj pjxl pjxl300 pkmraw plan planc plang plank planm
   plib plibc plibg plibk plibm png16 png16m png256 pngalpha pnggray pngmono
   pngmonod pnm pnmcmyk pnmraw ppm ppmraw ps2write psdcmyk psdcmykog psdrgb
   pxlcolor pxlmono r4081 spotcmyk st800 stcolor t4693d2 t4693d4 t4693d8
   tek4696 tiff12nc tiff24nc tiff32nc tiff48nc tiff64nc tiffcrle tiffg3
   tiffg32d tiffg4 tiffgray tifflzw tiffpack tiffscaled tiffscaled24
   tiffscaled32 tiffscaled4 tiffscaled8 tiffsep tiffsep1 txtwrite uniprint
   xpswrite
Search path:
   d:\Program Files\gs\gs9.16\bin ; d:\Program Files\gs\gs9.16\lib ;
   d:\Program Files\gs\gs9.16\fonts ; %rom%Resource/Init/ ; %rom%lib/ ;
   c:/gs/gs9.16/Resource/Init ; c:/gs/gs9.16/lib ;
   c:/gs/gs9.16/Resource/Font ; c:/gs/fonts
Initialization files are compiled into the executable.
For more information, see c:/gs/gs9.16/doc/Use.htm.
Please report bugs to bugs.ghostscript.com.
gswin32c -q -dBATCH -sFONTDIR=c:/windows/fonts -sCIDFMAP=lib/cidfmap lib/mkcidfm.ps

$ cd /usr/share/ghostscript/ver
$ gs -q -dNODISPLAY -dBATCH -sFONTDIR=/cygdrive/c/windows/fonts -sCIDFMAP=lib/cidfmap lib/mkcidfm.ps