LJP(1) Aegis LJP(1)
NAME
help ljp - help in using an HP LaserJet printer. Use along with
help prf - help in using the prf command
SYNOPSIS
For Aegis environment use /sys/help/ljp.hlp
For UNIX BSD4.3 environment use /usr/man/cat1/ljp.1
For UNIX Sys5.3 environment use /usr/catman/a_man/man1/ljp.1m
USAGE
prf [pathname] [arguments]...
ljp [pathname] [arguments]...
DESCRIPTION
The ljp help file provides information useful for HP
LaserJet printer users on the following topics:
prf and ljp Command Arguments and Options Description
PCL Device Driver Features
PCL Device Filter Features
prf Command Options Summary
LASERJET 4 USERS
See BITMAP SUPPORT below for details on printing 200dpi and 600dpi bitmaps
in the Domain Aegis print environment.
See the file /sys/laserjet/laserjet_setup_instructions for hints on using
the unsupported LaserJet 4 series of printers.
prf and ljp Command Arguments and
The following is a list of ljp and prf arguments used for
setting up HP LaserJet printer I/O and the default state for
each:
[printer_name] Name of the printer used in prf command
default: p
[filename] Name of input file for ljp and prf
default: stdin
[-c [config_file_name]] Name of ljp config file
default: ~/laserjet.cfg
[-o output file name] Name of ljp output file
default: stdout (example: /dev/sio1)
The following is a list of ljp options used for setting up HP LaserJet printer
features and the default state for each:
[-model [II|IID|IIP|III|IIID|IIIP|IIISi|PJXL]]
Model number default: II
[-cop[ies] [1..32767]] Number of copies default: 1
[-duplex [long|short]] Duplex operation default: simplex
[-tray [tray_selection_name]] Paper tray default: default tray
[-paper[_size] [paper_size_name]] Paper size default: letter
[-orient[ation] [port|land]] Orientation default: port
[-col[umns] [1|2]] Multiple column, default: 1
[-margins [on|off]] En/dis-able margins default: on
[-top [0..page length]] Top margin default: 0.25
[-bot[tom] [0..page length] Bottom margin default: 0.25
[-left [0..page width]] Left margin default: 0.25
[-right [0..page width]] Right margin default: 0.25
[-sym[bol_set] symbol_set_name] Symbol set default: roman_8
[-spacing [f[ixed]|p[roportional]] Spacing default: fixed
[-pitch n] Pitch default: 10.00
[-point n] Point default: 12.00
[-style [u[pright]|i[talic]]] Style default: upright
[-weight [light|medium|bold]] Stroke weight default: medium
[-typeface typeface_name] Typeface default: courier
[-wrap [on|off]] End of line wrap default: off
[-underline [on|off]] Use _ as underline default: off
[-headers [on|off]] Print header/footers default: off
[-head[_string] l/c/r-string] Headers content default: NULL string
[-foot[_string] l/c/r-string] Footers content default: NULL string
[-page_reversal [on|off]] Enable page reversal default: off
[-trans[parent][on|off]] Enable PCL conversion default: off
PCL DEVICE DRIVER FEATURES
The PCL Device Driver implements features based on PCL printer (PCL IV or V)
capabilities:
Basic Driver (job control)
Provides the following capabilities:
a. Reset - Resets the printer when starting a print job,
and restores the User Default Environment, deletes
temporary fonts and macros, and prints any remaining data.
Use the prf or ljp command as follows:
prf -pr <printer_name> [filename]
ljp -o <output_file_name> [filename]
b. Number of copies - Prints the specified number of
copies of each page. Use the prf or ljp command as
follows:
prf -pr <printer_name> [filename] [-cop[ies] n]
ljp -o <output_file_name> [filename] [-cop[ies] n]
Where n is equal to values from 1 - 32767.
The default value is 1.
Model Number Selection
Selects the printer model number. Use the
prsvr config file and answer as follows:
model_number: n
Where n is one of the following values: II, IID, IIP, III,
IIID, IIIP, IIISi, and PJXL. The default value is II.
This selection affects the printer and filter
capabilities. If a capability is supported only in a
particular model printer, you can use it only if you
specify that model.
For example, duplex selection is only available in the
LaserJet IID, IIID, and IIISi printers (see below). If you
select any other model, your selection of duplex will be
ignored by the driver.
Simplex/Duplex Operation
Selects double- or single-sided printing. Use the prf or
ljp command as follows:
prf -pr <printer_name> [filename] [-duplex n]
ljp -o <output_file_name> [filename] [-duplex n]
Where n is equal to long or short. Long is duplex long-
edge binding printing, and short is duplex short-edge
binding printing. The default is simplex.
Duplex selection is available only in LaserJet IID, IIID,
or IIISi printers.
Paper Tray Selection
Selects your paper source for printing. Use the prf or
ljp command as follows:
prf -pr <printer_name> [filename] [-tray [tray_selection_name]]
ljp -o <output_file_name> [filename] [-tray [tray_selection_name]]
Where tray_selection_name is equal to the following for
the model indicated:
tray_selection_name tray used
------------------- ---------
For LaserJet II:
default Feed paper from internal tray
manual_feed Feed paper from manual tray
The default value is default (the internal tray).
For LaserJet IIP:
default Feed paper from Multi-Purpose (MP) tray
manual_feed Manual paper feed
manual_envelope Manual envelope feed
lower_tray Feed paper Lower Cassette (LC) tray
The default value is default (the Multi-Purpose tray).
For LaserJet IID, IIID, and IIISi:
default Feed paper from Multi-Purpose (MP) tray
manual_feed Manual paper feed
manual_envelope Manual envelope feed
lower_tray Feed paper from Lower tray
envelope_feeder Envelope feeder
upper_tray Feed paper from Upper tray
The default value is default (the Multi-Purpose tray).
For LaserJet III:
default Feed paper from internal tray
manual_feed Manual paper feed
envelope_feeder Manual envelope feed
The default value is default (the internal tray).
The manual feed operation (either paper or envelope) in LaserJet printers
is suitable in a personal printing environment, and not recommended
in a network printing environment for the following reasons:
1. There will be other users' jobs queued up for printing while manual
feed jobs are printing, waiting for paper or envelopes to be fed.
2. There is no way for users to know when to start a manual feed job, as
there is no way to find out how many jobs are already queued and how
long it will take to do those jobs before the printer starts the manual
feed job. That time is not predictable in a network printing environment.
PCL DEVICE FILTER FEATURES
The PCL Device Filter provides Support for ascii text printing, including
the following formatting features:
Paper Size Selects the physical size of the paper to be used for
printing, which in turn defines the logical pages.
The default paper size is specified in the prsvr
configuration file.
paper_size A
-OR-
paper_length 11
paper_width 8.5
Use the prf or ljp command as follows:
prf -pr <printer_name> [filename] [-paper_size]
ljp -o <output_file_name> [filename] [-paper_size]
Where paper size options are:
a
executive
letter
legal
a4
monarch
com10
dl
c5
NOTE: This option is available only for printers
that have multiple print trays.
These are the selection values available for the prf
command, along with their size in inches and millimeters:
Code Size in inches (mm)
a 8.50 x 11.00
b 11.00 x 17.00
legal 8.50 x 14.00
a3 11.69 x 16.54 (297mm x 420mm)
a4 8.27 x 11.69 (210mm x 297mm)
a5 5.38 x 8.27 (137mm x 210mm)
b4 9.84 x 13.90 (257mm x 364mm)
b5 5.93 x 9.89 (182mm x 257mm)
Users can also specify default paper size by using the
extensible option, lj_paper_size, in the prsvr configuration
file as follows:
ext_opt lj_paper_size letter
Use the prf or ljp command as follows:
prf -pr <printer_name> [filename] [-lj_paper_size value]
ljp -o <output_file_name> [filename] [-lj_paper_size value]
These are the selection values available for LaserJet
printers, along with their size in inches and millimeters:
Code Size in inches (mm)
(paper)
executive 7.25 x 10.50
letter 8.50 x 11.00
a 8.50 x 11.00
legal 8.50 x 14.00
a4 8.27 x 11.69 (210mm x 297mm)
(envelope)
monarch 3 7/8 x 7 1/2
com10 4 1/8 x 9 1/2
dl International DL (110mm x 220mm)
c5 International C5 (162mm x 229mm)
The default value is letter.
Always check the paper tray before printing to be sure
that the paper in the tray is the same as the paper you
specified. If they are not the same, a message is
displayed on the printer control panel requesting you
to install paper of the specified size.
Orientation Selects landscape or portrait orientation. Use the prf or
ljp command as follows:
prf -pr <printer_name> [filename] [-orient {port|land}]
ljp -o <output_file_name> [filename] [-orient {port|land}]
The selection values available are port or land, for
portrait or landscape orientation respectively. The
default value is portrait.
Multiple Columns
Specifies single- or double-column printing. Use the prf
or ljp command as follows:
prf -pr <printer_name> [filename] [-col[umns] {1|2}]
ljp -o <output_file_name> [filename] [-col[umns] {1|2}]
The selection values available are 1 or 2 columns. The
default value is 1 column.
Margins Enables/disables the margins generated by prf. Use the
prf or ljp command as follows:
prf -pr <printer_name> [filename] [-margins {on|off}]
ljp -o <output_file_name> [filename] [-margins {on|off}]
The selection values available are on or off.
Where [-margins off] resets the left and right margins.
The left margin is set to the left edge of the logical
page and the right margin is set to the right edge of the
logical page. The default value is on.
Top Margin Specifies the top page margin in inches. Use the prf or
ljp command as follows:
prf -pr <printer_name> [filename] [-top n]
ljp -o <output_file_name> [filename] [-top n]
The selection values available are 0 to the current
logical page length. The default value (n) is 0.25 or a
value specified in the prsvr configuration file.
Bottom Margin Specifies the bottom page margin in inches. Use the prf
or ljp command as follows:
prf -pr <printer_name> [filename] [-bot[tom] n]
ljp -o <output_file_name> [filename] [-bot[tom] n]
The selection values available are 0 to the current
logical page length. The default value (n) is 0.25 or a
value specified in the prsvr configuration file.
Left Margin Specifies the left page margin in inches. Use the prf or
ljp command as follows:
prf -pr <printer_name> [filename] [-left n]
ljp -o <output_file_name> [filename] [-left n]
The selection values available are 0 to the current
logical page width. The default value (n) is 0.25.
Right Margin Specifies the right page margin in inches. Use the prf
or ljp command as follows:
prf -pr <printer_name> [filename] [-right n]
ljp -o <output_file_name> [filename] [-right n]
The selection values available are 0 to the current
logical page width. The default value is 0.25.
If the right margin is set to the left of the left margin,
then the specified right margin value is ignored.
Headers Enables/disables page headers generated by prf. Use the
prf or ljp command as follows:
prf -pr <printer_name> [filename] [-headers {on|off}]
ljp -o <output_file_name> [filename] [-headers {on|off}]
The selection values available are on or off. The default
is on.
Head [-string] Specifies contents of left, center, and right components
of the page header generated by prf. Use the prf or ljp
command as follows:
prf -pr <printer_name> [filename] [-head[_string] l-string/c-string/r-string]
ljp -o <output_file_name> [filename] [-head[_string] l-string/c-string/r-string]
The selection values available (n) are the following
special characters, which return the values indicated when
they appear in the header strings:
Character Return Value
@ = Escape character
# = Current page number with 1 leading
and 1 trailing space
% = Current date
! = Filename
& = Filename's last time, date modified
* = Insert a space in text string
(literal spaces are not allowed)
The default header is a string specified in the prsvr
configuration file. Components can be empty strings.
For example:
-head !/Page#/%
produces a header with the filename in the left component,
the string "Page" followed by the current page number in
the center component, and the current date in the right
component.
Foot [-string] Specify contents of page footers. Use the prf or ljp
command as follows:
prf -pr <printer_name> [filename] [-foot[_string] l-string/c-string/r-string]
ljp -o <output_file_name> [filename] [-foot[_string] l-string/c-string/r-string]
The format is the same as for head -string above.
Wrap or Truncate
Enables/disables automatic line wrapping. Use the prf or
ljp command as follows:
prf -pr <printer_name> [filename] [-wrap {on|off}]
ljp -o <output_file_name> [filename] [-wrap {on|off}]
The selection values available are on or off. When on,
prf wraps lines that exceed the right margin. When off,
prf truncates lines that exceed the right margin. If this
option is specified without on or off, on is assumed. The
default is off.
Backspace Support
We support backspace (BS) in the ascii file. This support
is to enable us to print FMT, nroff, and troff formatted
files. In these files, backspace is used to allow underscore
and bold functions in the files.
Tab Support Each tab is translated into 8 spaces.
Page Reversal Enables/disables page reversal during printing. Use the
prf or ljp command as follows:
prf -pr <printer_name> [filename] [-page_reversal {on|off}]
ljp -o <output_file_name> [filename] [-page_reversal {on|off}]
The selection values available are on or off. When on,
prf prints from the last page of the document first. When
off, prf prints from the first page of the document first.
The default is off.
NOTE: Page reversal will not work with transparent mode.
Transparent Mode
Prints a PCL file without enabling PCL conversion processing.
Use the prf or ljp command as follows:
prf -pr <printer_name> [filename] [-trans[parent] {on|off}]
ljp -o <output_file_name> [filename] [-trans[parent] {on|off}]
The selection values available are on or off. On
specifies that the file being printed is passed directly
to the printer driver routine with no processing by the
print filter. If this option is specified without on or
off, on is assumed. The default is off.
BITMAP SUPPORT
The Aegis PCL Device Filter provides Support for bitmap PCL printing, including
both GPR bitmaps and X window dumps. The following formatting option is
supported:
Resolution Specifies the ouput plot resolution in dots per inch. Use
the prf command as follows:
prf -pr <printer_name> [bitmap_filename] [-res value]
The selection values available are the following:
All HP LaserJets:
75 75dpi
100 100dpi
150 150dpi
300 300dpi
HP LaserJet 4, 4P, 4Si:
200 200dpi
600 600dpi
The default value is 300dpi.
NOTE: This option is only available through the Aegis print
environment while using the "laserjet" device driver.
Also, it can only be used while printing bitmaps, not
text.
Bitmap printing cannot be performed with the ljp
standalone filter.
FONT MANAGEMENT
This software release supports printer resident fonts. Cartridge
and soft fonts may be supported in a future release.
FONT SELECTION
The ljp and prf commands support the capabilities listed below in font selection.
Font selections are made by providing combinations of the following options
listed in the order of their priority: orientation > symbol > spacing > pitch >
point > style > weight > typeface.
Symbol Selects the symbol set. Use the prf or ljp command as follows:
prf -pr <printer_name> [filename] [-sym[bol_set] symbol_set_name]
ljp -o <output_file_name> [filename] [-sym[bol_set] symbol_set_name]
The selection values available are documented in
/sys/laserjet/laserjet.cfg.sample
The default value is latin_1.
Spacing Selects either a fixed or proportional spaced font.
Use the prf or ljp command as follows:
prf -pr <printer_name> [filename] [-spacing {f[ixed]|p[roportional]}]
ljp -o <output_file_name> [filename] [-spacing {f[ixed]|p[roportional]}]
The selection values available are f[ixed] or p[roportional].
The default value is fixed.
Pitch Selects the horizontal spacing of a fixed spaced font in
terms of number of characters per inch. Use the prf or ljp
command as follows:
prf -pr <printer_name> [filename] [-pitch n]
ljp -o <output_file_name> [filename] [-pitch n]
The selection values available (n) are pitch in
characters/inch. The value field is valid to two decimal
places. The default value is 10 characters/inch.
If a pitch specified is not available, the next greater
available pitch is selected.
Point Selects the height of the font in points. Use the prf or
ljp command as follows:
prf -pr <printer_name> [filename] [-point n]
ljp -o <output_file_name> [filename] [-point n]
The selection values available (n) are valid to two
decimal places. The default value is 12 point.
If a point specified is not available, the next greater
available point is selected.
Style Selects either upright or italic style font. Use the prf
or ljp command as follows:
prf -pr <printer_name> [filename] [-style {u[pright]|i[talic]}]
ljp -o <output_file_name> [filename] [-style {u[pright]|i[talic]}]
The selection values available are u[pright] or i[talic].
The default value is upright.
If the requested style is not present, this characteristic
is ignored during font selection.
Weight Selects the thickness of the strokes that compose the
characters of a font. Use the prf or ljp command as follows:
prf -pr <printer_name> [filename] [-weight {light|medium|bold}]
ljp -o <output_file_name> [filename] [-weight {light|medium|bold}]
The selection values available are light, medium, or bold.
The default value is medium.
Typeface Selects the design of the font. Use the prf or ljp command
as follows:
prf -pr <printer_name> [filename] [-typeface [typeface_name]]
ljp -o <output_file_name> [filename] [-typeface [typeface_name]]
The selection values available are documented as in
/sys/laserjet/laserjet.cfg.sample
The default value is Courier.
If the requested typeface is unavailable, this characteristic
is ignored during font selection.
prf Command Options Summary
The following is a list of existing prf command functions that are supported in the ascii
to PCL driver and filter.
prf -pr <printer_name> [filename]
prf -pr <printer_name> [filename] [-cop[ies] n]
prf -pr <printer_name> [filename] [-paper_size {a|executive|letter|legal|a4|monarch|com10|dl|c5}]
prf -pr <printer_name> [filename] [-orient {port|land}]
prf -pr <printer_name> [filename] [-col[umns] {1|2}]
prf -pr <printer_name> [filename] [-margins {on|off}]
prf -pr <printer_name> [filename] [-top n]
prf -pr <printer_name> [filename] [-bot[tom] n]
prf -pr <printer_name> [filename] [-left n]
prf -pr <printer_name> [filename] [-right n]
prf -pr <printer_name> [filename] [-pitch n]
prf -pr <printer_name> [filename] [-point n]
prf -pr <printer_name> [filename] [-weight {light|medium|bold}]
prf -pr <printer_name> [filename] [-headers {on|off}]
prf -pr <printer_name> [filename] [-head[_string] l-string/c-string/r-string]
prf -pr <printer_name> [filename] [-foot[_string] l-string/c-string/r-string]
prf -pr <printer_name> [filename] [-wrap {on|off}]
prf -pr <printer_name> [filename] [-page_reversal {on|off}]
prf -pr <printer_name> [filename] [-trans[parent] {on|off}]
We support backspace (BS) in the ascii file.
The following is a list of new prf command functions created for supporting the ascii
to PCL driver and filter.
prf -pr <printer_name> [filename] [-duplex n]
prf -pr <printer_name> [filename] [-tray [tray_selection_name]]
prf -pr <printer_name> [filename] [-sym[bol_set] [symbol_set_name]]
prf -pr <printer_name> [filename] [-spacing {f[ixed]|p[roportional]}]
prf -pr <printer_name> [filename] [-style {u[pright]|i[talic]}]
prf -pr <printer_name> [filename] [-typeface [typeface_name]]
prf -pr <printer_name> [filename] [-underline[on/off]]
SEE ALSO
For information on setting up a PCL printer on your Domain print
environment and supported PCL printers, see the file
/sys/laserjet/laserjet_setup_instructions
More information is available. Type
help printer For general information about printers
supported in a Domain/OS network
help prf For information about the prf command in general
help prsvr For details about the print server
help prsvr/config
For an explanation of the prsvr configuration file and its
directives, including their default values
help prmgr For details about the print manager