gs-vms.hlp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. 1 gs
  2. gs - AFPL Ghostscript interpreter/previewer
  3. ! $Id: gs-vms.hlp,v 1.12.2.2 2002/02/01 05:31:25 raph Exp $
  4. ! Ghostscript version 7.04, 31 January 2002
  5. Usage:
  6. $ gs [options] [file ...]
  7. Ghostscript is an implementation of Adobe Systems' PostScript (tm)
  8. and Portable Document Format (PDF) languages. Gs reads files in sequence
  9. and executes them as Ghostscript programs. After doing this, it reads
  10. further input from the standard input stream (normally the keyboard).
  11. Each line is interpreted separately. To exit from the interpreter,
  12. enter the `quit' command. The interpreter also exits gracefully if it
  13. encounters end-of-file. Typing the interrupt character (e.g. Control-C)
  14. is also safe.
  15. 2 Description
  16. The interpreter recognizes several switches described below, which
  17. may appear anywhere in the command line and apply to all files
  18. thereafter.
  19. You can get a help message by invoking Ghostscript with the -h
  20. or -? option. This message also lists the available devices.
  21. Ghostscript may be built with multiple output devices. Ghostscript
  22. normally opens the first one and directs output to it. To use
  23. device xyz as the initial output device, include the switch
  24. "-sDEVICE=xyz"
  25. in the command line. Note that this switch must precede the first
  26. .ps file, and only its first invocation has any effect. For example,
  27. for printer output in a normal configuration that includes an Epson
  28. printer driver, you might use the command
  29. gs "-sDEVICE=epson" myfile.ps
  30. instead of just
  31. gs myfile.ps
  32. Alternatively, you can type
  33. (epson) selectdevice
  34. (myfile.ps) run
  35. All output then goes to the printer instead of the display until
  36. further notice. You can switch devices at any time by using the
  37. selectdevice procedure, e.g.,
  38. (vga) selectdevice
  39. or
  40. (epson) selectdevice
  41. As yet a third alternative, you can define a logical name GS_DEVICE
  42. as the desired default device name. The order of precedence for these
  43. alternatives, highest to lowest, is:
  44. selectdevice
  45. (command line)
  46. GS_DEVICE
  47. (first device in build list)
  48. To select the density on a printer, use
  49. gs "-sDEVICE=<device>" -r<xres>x<yres>
  50. For example, on a 9-pin Epson-compatible printer, you can get the
  51. lowest-density (fastest) mode with
  52. gs "-sDEVICE=epson" -r60x72
  53. and the highest-density mode with
  54. gs "-sDEVICE=epson" -r240x72.
  55. If you select a printer as the output device, Ghostscript also
  56. allows you to control where the device sends its output. Normally,
  57. output goes directly to a scratch file on Unix and VMS systems. To
  58. send the output to a series of files foo1.xyz, foo2.xyz, ..., use
  59. the switch
  60. "-sOutputFile=foo%d.xyz"
  61. The %d is a printf format specification; you can use other formats
  62. like %02d. Each file will receive one page of output. Alternatively,
  63. to send the output to a single file foo.xyz, with all the pages con-
  64. catenated, use the switch
  65. "-sOutputFile=foo.xyz"
  66. To find out what devices are available, type
  67. devicenames ==
  68. after starting up Ghostscript. Alternatively, you can use the -h or -?
  69. switch in the command line; the help message also lists the available
  70. devices.
  71. To select a different paper size, use the command line switch
  72. "-sPAPERSIZE=a_known_paper_size"
  73. e.g.,
  74. "-sPAPERSIZE=a4"
  75. or
  76. "-sPAPERSIZE=legal"
  77. As of this printing, the known paper sizes, defined in gs_statd.ps, are:
  78. PAPERSIZE X" Y" X cm Y cm
  79. ____________________________________________________
  80. 11x17 11" 17" 27.94 43.18
  81. a0 33.0556" 46.7778" 83.9611 118.816
  82. a10 1.02778" 1.45833" 2.61056 3.70417
  83. a1 23.3889" 33.0556" 59.4078 83.9611
  84. a2 16.5278" 23.3889" 41.9806 59.4078
  85. a3 11.6944" 16.5278" 29.7039 41.9806
  86. a4 8.26389" 11.6944" 20.9903 29.7039
  87. a5 5.84722" 8.26389" 14.8519 20.9903
  88. a6 4.125" 5.84722" 10.4775 14.8519
  89. a7 2.91667" 4.125" 7.40833 10.4775
  90. a8 2.05556" 2.91667" 5.22111 7.40833
  91. a9 1.45833" 2.05556" 3.70417 5.22111
  92. archA 9" 12" 22.86 30.48
  93. archB 12" 18" 30.48 45.72
  94. archC 18" 24" 45.72 60.96
  95. archD 24" 36" 60.96 91.44
  96. archE 36" 48" 91.44 121.92
  97. b0 39.3889" 55.6667" 100.048 141.393
  98. b1 27.8333" 39.3889" 70.6967 100.048
  99. b2 19.6944" 27.8333" 50.0239 70.6967
  100. b3 13.9167" 19.6944" 35.3483 50.0239
  101. b4 9.84722" 13.9167" 25.0119 35.3483
  102. b5 6.95833" 9.84722" 17.6742 25.0119
  103. flsa 8.5" 13" 21.59 33.02
  104. flse 8.5" 13" 21.59 33.02
  105. halfletter 5.5" 8.5" 13.97 21.59
  106. ledger 17" 11" 43.18 27.94
  107. legal 8.5" 14" 21.59 35.56
  108. letter 8.5" 11" 21.59 27.94
  109. note 7.5" 10" 19.05 25.4
  110. Note that the B paper sizes are ISO sizes: for information about using
  111. JIS B sizes, see `Use.htm'.
  112. 2 Initialization_files
  113. When looking for the initialization files (gs_*.ps), the files related
  114. to fonts, or the file for the `run' operator, Ghostscript first tries
  115. opening the file with the name as given (i.e., using the current
  116. working directory if none is specified). If this fails, and the file
  117. name doesn't specify an explicit directory or drive, Ghostscript will
  118. try directories in the following order:
  119. 1. The directory/ies specified by the -I switch(es) in the command
  120. line (see below), if any;
  121. 2. The directory/ies specified by the GS_LIB logical, if any;
  122. 3. The directory/ies specified by the GS_LIB_DEFAULT macro in the
  123. Ghostscript makefile.
  124. Each of these (GS_LIB_DEFAULT, GS_LIB, and -I parameter) may be either
  125. a single directory, or a list of directories separated by a `:'.
  126. 2 X_resources
  127. Ghostscript looks for the following resources under the program name
  128. `Ghostscript':
  129. borderWidth
  130. The border width in pixels (default = 1).
  131. borderColor
  132. The name of the border color (default = black).
  133. geometry
  134. The window size and placement, WxH+X+Y (default is NULL).
  135. xResolution
  136. The number of x pixels per inch (default is computed from
  137. WidthOfScreen and WidthMMOfScreen).
  138. yResolution
  139. The number of y pixels per inch (default is computed from
  140. HeightOfScreen and HeightMMOfScreen).
  141. useBackingPixmap
  142. Determines whether backing store is to be used for saving display
  143. window (default = true).
  144. See the file `Use.htm' for a more complete list of resources.
  145. To set these resources, put them in a file (such as
  146. SYS$Login:ghostscript.dat) in the following form:
  147. Ghostscript*geometry: 612x792-0+0
  148. Ghostscript*xResolution: 72
  149. Ghostscript*yResolution: 72
  150. 2 Options
  151. Note that VMS will convert all command line arguments to lower case
  152. if they are not within quotes. Therefore, if a certain command does
  153. not work, try again but with quotes around it.
  154. -- filename arg1 ...
  155. Takes the next argument as a file name as usual, but takes all
  156. remaining arguments (even if they have the syntactic form of switches)
  157. and defines the name ARGUMENTS in userdict (not systemdict) as an
  158. array of those strings, before running the file. When Ghostscript
  159. finishes executing the file, it exits.
  160. -Dname=token
  161. -dname=token
  162. Define a name in systemdict with the given definition. The token must
  163. be exactly one token (as defined by the `token' operator) and must not
  164. contain any whitespace.
  165. -Dname
  166. -dname
  167. Define a name in systemdict with value=null.
  168. -Sname=string
  169. -sname=string
  170. Define a name in systemdict with a given string as value. This is
  171. different from -d. For example, -dname=35 is equivalent to the
  172. program fragment
  173. /name 35 def
  174. whereas -sname=35 is equivalent to
  175. /name (35) def
  176. -q
  177. Quiet startup - suppress normal startup messages, and also do the
  178. equivalent of -dQUIET.
  179. -gnumber1Xnumber2
  180. Equivalent to -dDEVICEWIDTH=number1 and -dDEVICEHEIGHT=number2. This is
  181. for the benefit of devices (such as X11 windows) that require (or allow)
  182. width and height to be specified.
  183. -rnumber
  184. -rnumber1Xnumber2
  185. Equivalent to -dDEVICEXRESOLUTION=number1 and -dDEVICEYRESOLUTION=number2
  186. This is for the benefit of devices (such as printers) that support
  187. multiple X and Y resolutions. (If only one number is given, it is used
  188. for both X and Y resolutions.)
  189. -Idirectories
  190. Adds the designated list of directories at the head of the search path
  191. for library files.
  192. Note that gs_init.ps makes systemdict read-only, so the values of names
  193. defined with -D/d/S/s cannot be changed (although, of course, they can
  194. be superseded by definitions in userdict or other dictionaries.)
  195. 2 Special_names
  196. -dDISKFONTS
  197. Causes individual character outlines to be loaded from the disk the
  198. first time they are encountered. (Normally Ghostscript loads all the
  199. character outlines when it loads a font.) This may allow loading more
  200. fonts into RAM, at the expense of slower rendering.
  201. -dNOCACHE
  202. Disables character caching. Only useful for debugging.
  203. -dNOBIND
  204. Disables the `bind' operator. Only useful for debugging.
  205. -dNODISPLAY
  206. Suppresses the normal initialization of the output device. This may be
  207. useful when debugging.
  208. -dNOPAUSE
  209. Disables the prompt and pause at the end of each page. This may be
  210. desirable for applications where another program is `driving'
  211. Ghostscript.
  212. -dNOPLATFONTS
  213. Disables the use of fonts supplied by the underlying platform (e.g.
  214. X Windows). This may be needed if the platform fonts look undesirably
  215. different from the scalable fonts.
  216. -dSAFER
  217. Disables the deletefile and renamefile operators, and the ability to
  218. open files in any mode other than read-only. This may be desirable
  219. for spoolers or other sensitive environments.
  220. -dWRITESYSTEMDICT
  221. Leaves systemdict writable. This is necessary when running special
  222. utility programs such as font2c and pcharstr, which must bypass normal
  223. PostScript access protection.
  224. -sDEVICE=device
  225. Selects an alternate initial output device, as described above.
  226. -sOutputFile=filename
  227. Selects an alternate output file for the initial output device, as
  228. described above.
  229. 2 Files
  230. !!! Change
  231. GS_Root:[Ghostscript.gs4_0]
  232. Startup-files, utilities, and basic font definitions.
  233. GS_Root:[Ghostscript.Fonts4_0]
  234. Additional font definitions.
  235. GS_Root:[Ghostscript.gs4_0.Examples]
  236. Demo Ghostscript files.
  237. GS_Root:[Ghostscript.gs4_0.Doc]
  238. Assorted document files.
  239. !!! Change
  240. 2 See_also
  241. The various Ghostscript document files (above).
  242. 2 Bugs
  243. See the network news group comp.lang.postscript.