prn2ps (lj2ps): manuale
LJ2PS(l) LJ2PS(l) June 30th, 1990 (Revision 1.2) NAME lj2ps - print LaserJet files on a PostScript printer SYNOPSIS ljlpr [ options ] [ files ] DESCRIPTION lj2ps is a translator that reads in a file of text and LaserJet PCL commands and converts it to PostScript. lj2ps can currently translate a subset of PCL 4. It will properly convert page motion, page setup, and primary font commands. Left out are macros, position stack commands, secondary font support, graphics (both bitmap and pattern/grayscale), and downloadable fonts. lj2ps is set up to mimic a LaserJet Series II with the Hewlett Packard F and G font cartridges plugged into the left and right ports, respectively. Command-line options are provided that duplicate the functions in the main menu, accessible from the front panel. If files are listed on the command line, then lj2ps will read each consecutively as if they were all one file. If no files are listed, then input will be read from the standard input. All output is written to the standard output, and errors to the standard error. OPTIONS LaserJet II Main Menu Options -c## Sets the numbers of copies to ##. The default is one copy. -mf Specifies that paper is to be fed in manually. The default is to automatically feed paper in from the tray. -fs? Change the default font source to ?, where ? is L (left cartridge), R (right cartridge), I (internal), or S (soft font). The default is I (internal). -fn## Use font number ## from the default font source. The default is font number zero. -fl## Set the form length to ## lines. The default is 60 lines. Page Orientation -p Print in portrait mode. This is the default. -l Print in landscape mode. Page Scaling and Offsets - 1 - Formatted: February 16, 2001 LJ2PS(l) LJ2PS(l) June 30th, 1990 (Revision 1.2) -xs## Scale the width of the page by ##. The default is 1.0 (no scaling). -ys## Scale the length of the page by ##. The default is 1.0 (no scaling). -xo## Offset the left margin by ## inches. The default is 0.0 inches. -yo## Offest the top margin by ## inches. The default is 0.0 inches. Miscellaneous -X Print a list of all options recognized. -w Do not print warning messages. SEE ALSO Please refer to your local printing software to determine how to send the PostScript output of lj2ps to your printer. RESTRICTIONS Only a subset of PCL 4 is currently recognized. DIAGNOSTICS ljlpr will return with exit code 0 if no errors are encountered or exit code 1 if a fatal error occurs. Four types of messages are printed: Warnings are printed to inform the user of possible problems with the output. Although warnings are never serious, they do indicate possible problems with the LaserJet commands, or features being used that are not actually implemented in lj2ps. Warnings can be turned off with the -w option. Errors indicate recoverable problems in the input or output that should be corrected. The program will continue running if an error is encountered, although the output will likely be missing some features. Fatal Errors are non-recoverable errors, and will cause the program to immediately terminate with a non-zero exit code. Fatal errors must be corrected before lj2ps will accept the entire input file. Internal Errors indicate that an internal consistency check has failed, and will cause immediate termination of execution. Please contact the person maintaining lj2ps and describe the internal error, so that she or he may fix it. - 2 - Formatted: February 16, 2001 LJ2PS(l) LJ2PS(l) June 30th, 1990 (Revision 1.2) BUGS Tabs do not work properly with proportional fonts. However, the LaserJet's scheme for handling tabs with proportional fonts is badly botched, so you shouldn't be using proportional fonts anyway. The behavior of the HMI command is different from the LaserJet. The PostScript file produced by lj2ps is not suitable as Encapsulated PostScript, because initclip is used to reset the right margin.