home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / printer / post17b.lzh / postlj.doc < prev    next >
Text File  |  1992-03-09  |  6KB  |  155 lines

  1. PostScript LaserJet printing driver (PostLJ, with Post V1.7)
  2. ============================================================
  3.  
  4. Copyright Adrian Aylward 1990, 1992.
  5.  
  6. You may freely copy, use and modify this program (postlj).  The source is
  7. included in the distribution.
  8.  
  9. The program calls the PostScript interpreter library to render a series of
  10. PostScript files to a LaserJet printer connected to the parallel port.  It
  11. supports all the possible page sizes, in portrait or landscape orientation.
  12.  
  13. It is designed to run on a LaserJet II, or IIP/III etc., and also on a
  14. DeskJet. It will likely also work on LaserJet emulations.
  15.  
  16. It is run from the CLI command line. There is no workbench startup.
  17.  
  18. The CLI interface is very simple.  No attempt has been made to provide fancy
  19. keywords for the options; if you can't remember them write yourself a script.
  20.  
  21. There are no status checks on the printer device, so if the output hangs
  22. check that your printer is plugged in and switched on.  Is is advisable
  23. to switch the printer on before starting, otherwise the first few characters
  24. may be lost, and the printout corrupted.
  25.  
  26. Usage
  27. =====
  28.  
  29.     postlj -options [files...] [TO tofile] [MEM fhlv..]
  30.  
  31. The options are indicated by an initial "-".  They are single letters,
  32. followed by a numeric value.
  33.  
  34.     -sn      Page size     (Default: A4)
  35.                  0   Letter
  36.                  1   Legal
  37.                  2   Executive
  38.                  3   A4
  39.                  4   COM10
  40.                  5   Monarch
  41.                  6   C5
  42.                  7   DL
  43.     -an      Aspect        (Default: vertical)
  44.                  0   vertical
  45.                  1   horizontal
  46.     -jn      Model         (Default: LasetJet IIP, III, IIIP, IIIsi)
  47.                  0   DeskJet
  48.                  1   LaserJet II
  49.                  2   LaserJet IIP, III, IIIP, IIIsi etc.
  50.     -gn      Graphics compression
  51.                  0   Off
  52.                  1   On
  53.     -bnnnn   Page number to begin printing at
  54.     -ennnn   Page number to end printing after
  55.     -cnn     Number of copies
  56.     -xnnnnn  Paper x size, in dots (300 per inch)
  57.     -ynnnnn  Paper y size
  58.     -lnnnnn  Left  margin, in dots
  59.     -rnnnnn  Right margin
  60.     -unnnnn  Upper margin, in dots
  61.     -dnnnnn  Lower margin
  62.     -hnnnnn  Horizontal offset registration, in dots
  63.     -vnnnnn  Vertical   offset registration
  64.  
  65. The "files..." are the PostScript files to be interpreted.  Usually these
  66. will be the standard startup "psfonts:init.ps" followed by the file you
  67. wish to print.
  68.  
  69. The TO filename defaults to "par:" the parallel device handler.  You can
  70. specify an alternative name if you want to save the output in a file, or
  71. send it to a different handler.
  72.  
  73. The MEM options are passed directly to Post.  Up to 5 are allowed; later
  74. values override earlier values.  See the file post.doc for details.
  75.  
  76. LaserJet models
  77. ---------------
  78.  
  79. Earlier LaserJets, notably the model II, had a slightly smaller imaging area
  80. than newer models, such as the IIP, III, IIIP, IIIsi. They also lacked the
  81. offset registration facility. If you have a LaserJet clone you may need to
  82. experiment to see which value of the -j option works best. (N.B. this has
  83. nothing to do with whether the printer supports PCL4 or PCL5). All newer
  84. HP laser printers ought to be at least as capable as the IIP.
  85.  
  86. From the IIP onwards, LaserJets support compression of bitmapped graphics.
  87. This considerably reduces the amount of data that has to be passed through
  88. the printer's parallel port, making printing much faster. The graphics
  89. compression option is automatically set if you use the -j2 option. If
  90. however you printer is a clone which looks like a IIP but does not support
  91. compression you will need to turn compression off. Otherwise your printer
  92. will likely hang or print garbage, possibly many pages thereof.
  93.  
  94. DeskJets are a little different, in that margins are fixed at 0.5 inches,
  95. or 150 dots. They are also restricted to vertical aspect only, though you
  96. could print lanbdscape by adjusting your PostScript code.
  97.  
  98. Page sizes
  99. ----------
  100.  
  101. If you are using one of the standard page sizes then just set the size
  102. using the -s option, there is no need to supply the x and y values as they
  103. are built in to the code.
  104.  
  105. If however you want to use a custom paper size then you should specify its
  106. dimensions using the -x and -y options. Then the poscript interpreter can
  107. know the actual size of the paper you are using. You should also set the -s
  108. option to a page size at least as great as the paper you are actually using.
  109. Otherwise your LaserJet might refuse to print off the edge of where it
  110. thinks the paper ought to be. The default (A4) should usually be OK, unless
  111. your paper is large, when you might need Legal (8.5 by 14 inches). Values
  112. are in dots, and there are 300 of them to an inch.
  113.  
  114. The paper margins are set automatically, so you will not usually need to
  115. set the -l, -r, -u, or -d options. The driver sets these to the limits of
  116. the printable area as per the LaserJet technical manual. The PostScript
  117. interpreter then uses these values to set up its initial clip path. You
  118. will only need to change these values if you have a non-standard printer
  119. or you want to adjust the location of the clip path. Values are in dots,
  120. defaults according to the printer.
  121.  
  122. If you have a LaserJet IIP or III etc. you can use the -h anv -v options to
  123. adjust the exact registration of the print image on the page. (The LaserJet
  124. manual suggests this may be useful to allow for binding. Or it may be that
  125. the paper path in you printer is not exactly aligned.) Values are in dots,
  126. defaults the same as to the left and upper margins. Lower values move the
  127. image to the left and top. There is no provision for values smaller than zero.
  128.  
  129. Examples
  130. --------
  131.  
  132. Print a document on a LaserJet IIP, III etc. on A4 paper:
  133.  
  134.     postlj psfonts:init.ps doc.ps
  135.  
  136. Print pages 10 through 15 (inclusive) on a LaserJet IIP, III etc. connected
  137. to the serial port:
  138.  
  139.     postlj -b10e15 psfonts:init.ps doc.ps to ser:
  140.  
  141. Print a picture on a LaserJet II on letter paper in landscape format:
  142.  
  143.     postlj -j1 -s0 a1 psfonts:init.ps picture.ps
  144.  
  145. Print a letter on a LaserJet IIP, III etc. on 9 by 7 inch paper:
  146.  
  147.     postlj -x2100y2400 psfonts:init.ps letter.ps
  148.  
  149. Print a letter on a DeskJet on letter paper
  150.  
  151.     postlj -j0 -s0 psfonts:init.ps letter.ps
  152.  
  153. Once you have worked out the right options for you favourite paper size,
  154. write a shell script so you don't need to remember them again.
  155.