No part of this document may be reproduced without the express permission of Ricoh
Printing Systems America, Inc.
The material in this document is for informational purposes and is subject to change
without notice. Ricoh Printing Systems America, Inc., assumes no responsibility for
errors or omissions in this document. No liability is assumed for any damages resulting
from the use of the information it contains.
TRADEMARK
Digital Document Publisher, DDP, DDP 70, DDP 70e, DDP 92, and their associated
logo marks are trademarks of Ricoh Printing Systems America, Inc. All rights reserved.
All other terms and product names may be trademarks or registered trademarks of their
respective owners, and are hereby acknowledged.
NOTICE TO USER
In an effort to meet the demands of a rapidly changing technology, the manufacturer is
continually developing new features and functions to meet your changing printing or
printer needs. As a result, this manual may not exactly reflect future changes made to
the product. Please be sure to consult all manual updates or addenda when using this
product’s documentation.
Through the Fonts and Forms Installer you can download, edit, and delete fonts and
macros. The Fonts and Form Installer is accessed from the Windows printer driver:
Fonts folder for fonts or Forms and Watermarks folder for macros.
In order to use a font or a macro (form), it must first be installed on either the host or
on the printer’s hard disk. The accessibility of the fonts/macros depends on their
installed location. Host installed fonts/macros are visible only to a user on that host.
Printer disk fonts/macros are visible to all network users that have the Fonts and Forms
Installer on their system and have access to the Global Printer Information File.
Additionally, once fonts/macros have been installed on the host, they can be
downloaded to the printer’s RAM to improve performance.
Installed PCL fonts appear as printer-resident fonts in applications. Windows may
substitute an appropriate screen font for the selected printer font, but the printed
document will contain the real font.
Chapter 1
Fonts and Forms Installer
Installed macros appear in the printer driver’s Forms and Watermarks folder and can be
selected as overlay macros.
When selecting a font or macro for use in an application, be aware that its location has
an impact on performance. A font or macro can reside in three different locations:
n
Host
n
Printer hard disk
n
Printer RAM
Host - Host based fonts and macros are downloaded to the printer along with each print
job that requests the use of that font or form. Print time may increase because of the
extra overhead of having to download the font or form in addition to the print job itself.
However, you are guaranteed that this font is available to your print job because it is
essentially part of your print job.
Printer Hard Disk - Fonts and forms installed on the printer’s hard disk provide the
advantage of being visible to all users in a network environment. Eliminating the need
to download also helps printing speed, but there is still some overhead as fonts and
forms must be uploaded to printer RAM.
Printer RAM - Printer memory based fonts and forms provide the best performance.
However, they are subject to deletion if the printer’s power is turned off, and, therefore,
there is a possibility that they may not be available when requested. Fonts and forms
must first be installed on the host or the printer’s hard disk in order to download them
to printer memory. Printer memory-resident fonts and forms are visible only to the host
that performed the download. In a network environment, they are not be visible to other
users.
Fonts and Forms Installer 1-1
Supported Font Formats
PCL Bitmap Fonts - The Fonts and Forms Installer recognizes PCL bitmap font files.
PCL Scalable Fonts - Scalable font files are recognized only when accompanied by
AutoFont support files. AutoFont support files are included with scalable soft font
products. You may have to install the soft font product before the Fonts and Forms
Installer recognizes these fonts.
Supported Macro Formats
Any file containing a valid PCL macro definition is supported. PCL macros can be
created from any document by selecting the “PCL Macro” output in the Job Options
folder of the Windows printer driver (Page Description Language must be set to PCL5e
in the Advanced folder).
Files Created During Installation
The Fonts and Forms Installer creates a Printer Font Metric (PFM) file for each font
installed. For host installed fonts, the PFM is created in the directory where the font is
installed (e.g., C:\Mercury\Fonts\PCL).
For printer disk fonts installed from your system, the PFM is created in your Mercury
PCL fonts directory (i.e., C:\Mercury\Fonts\PCL) and then copied to the same directory
in which the selected Printer Information File resides (so there are two copies of this
file).
When an Update is performed, PFM files for printer disk fonts not installed from your
system are copied from the directory in which the selected Printer Information File
resides to your Mercury PCL fonts directory. All copies of a PFM file for a given font
are deleted when the font is deleted.
When you select a Printer Information File that was created by the system
administrator, a copy of this file is created in your Mercury PCL fonts directory with
the same name but with a .LOC extension. The Fonts and Forms Installer does not
provide any means for deleting this local copy of the Printer Information File.
NOTE:
No additional files are created for macros.
PFM File - Windows printer drivers rely on Printer Font Metric (PFM) files for a
description of printer fonts.
GLUE.TXT File - GLUE.TXT is a file included with scalable soft font products that
describes each font in the product and links each font file to its associated Tagged Font
Metric (TFM) file. TFM files are used by the Fonts and Forms Installer to create PFM
files. See your font product documentation for additional information.
1-2Fonts and Forms Installer
Overlay Macro
An overlay macro is a PCL macro that is called at the end of each page of a print job.
It can be used to place a logo on the page or to print forms.
Network Issues
Downloading, Editing, and Deleting Printer Disk Fonts and Macros - If you have the
appropriate access rights and you attempt to download, edit, or delete a printer disk font
or macro, and the Fonts and Forms Installer determines that the Printer Information File
and its local copy are different, a message informs you that the action has been denied
and an update is performed automatically. You can then attempt the download, edit, or
delete again.
Printer Information File - Be sure to use Universal Naming Convention (UNC) names
when selecting the Printer Information File
Access Rights
Access rights are implemented to limit the operations that can be performed on printer
disk fonts and macros that many users may rely upon. To attain access rights, use the
Hidden Key (Ctrl > Shift) when clicking Install on the Install PCL Fonts Dialog box.
Contact your system administrator for additional information.
. (For example:\\myfileserver\public\filename.)
PCL Fonts Dialog
The PCL Fonts dialog includes the basic tools for the installation and management of
printer fonts. In addition to displaying the names and locations of fonts installed using
the Fonts and Forms Installer, it provides functions for downloading, editing, deleting,
updating, and installing fonts.
Fonts and Forms Installer1-3
Installed Fonts - The Installed Fonts lists the names and locations of all fonts installed
using the Fonts and Forms Installer (if no Printer Information File has been selected via
the Configure dialog, only host installed fonts appear in this list). You can download
,
edit, or delete any font in this list by selecting the entry and clicking on the appropriate
button. The download, edit, and delete buttons are disabled for printer disk fonts unless
you have the appropriate access rights.
Additional information about a particular font appears in a status line below the list box
when that font is selected.
The fonts listed in this window appear in the list of available fonts in your application.
Font Status Line - This line displays additional information about the font currently
selected in the Installed Fonts list. This information consists of the font name, the ID
assigned by the Fonts and Forms Installer, orientation, the installed location (either host
or printer disk), and the file name of the installed font (host installed fonts include a
path). The font name and ID can be modified by editing the font.
Download - Copies the selected font to printer memory (RAM) and makes it
permanent. Once downloaded, the selected font is denoted with the word memory, and
the Memory resident checkbox in the Edit Installed Font window is enabled (checked).
NOTE:
Fonts that you download from your system appear as memory-resident on
your system only.
1-4Fonts and Forms Installer
All fonts have an identification number (ID) associated with them that is automatically
generated by the Fonts and Forms Installer at the time of installation. In assigning IDs,
the system will not introduce conflicts by assigning an ID that is already used by a hostinstalled font on your system or a printer disk-installed font.
However, it is possible to install a font on your system which has the same ID as a font
installed on another user’s system. The Fonts and Forms Installer does not know which
IDs are used by host-installed fonts on other systems and therefore cannot prevent
duplicates at installation time. This allows for the possibility of ID conflicts when
multiple users download host-installed fonts to RAM. If you download a host font that
has the same ID as a host font previously downloaded by another user, your font will
still be downloaded but it will overwrite the other user’s font.
To avoid such conflicts, it is advised that the system administrator allocate a unique
range of ID values for each user. Then, before downloading a host font or macro, edit
it and change the Font ID to one of the IDs allocated to you.
Note that fonts residing in printer memory are deleted when the printer’s power is
cycled. If you suspect that a font you downloaded is no longer in printer memory, you
should edit it and uncheck the Memory resident checkbox. Failure to do so will result
in a different printer font being selected when the font is used in your document.
NOTE:
The Download button will be disabled for printer disk fonts.
Edit - Enters the Edit Installed Font dialog.
NOTE:
The Edit button will be disabled for printer disk fonts unless you have the
appropriate access rights
.
Delete - Removes the highlighted, installed item. The printer driver, Fonts and Forms
Installer, and your applications will no longer be aware of deleted items. In addition to
deleting the reference, delete provides the option to delete the actual font (and PFM file
file from its installed location. Answering YES to the prompt will delete the reference
and the file, NO will delete only the reference, and CANCEL will not delete anything.
NOTE:
The Delete button will be disabled for printer disk fonts unless you have
the appropriate access rights
.
Update - Causes your local system to be updated with information from the Printer
Information File
. An update is performed automatically each time you enter the Fonts
and Forms Installer, and when a Printer Information File is selected via the Configure
button. However, while in the Fonts and Forms Installer, you will not be aware of any
fonts or macros installed on the printer disk by another user unless you perform an
update by pressing the Update button. The Installed Fonts (or Installed Macros) list box
will reflect any changes resulting from the update.
)
The Update button is only enabled if a Printer Information File has been selected via
the Configure button in either the PCL Fonts dialog or the PCL Macros dialog.
Fonts and Forms Installer1-5
Update is only necessary in a network environment.
NOTE:
In addition to explicitly selecting the Update button, automatic (and
sometimes transparent) updates occur under the following conditions:
• When a Printer Information File is selected.
• Each time the Fonts and Forms Installer is entered when a Printer
Information File is selected.
• When you attempt to download, edit, or delete a printer disk font and
the local copy of the Printer Information File is out of date.
Install fonts - Enters the Install PCL Fonts dialog.
Configure - Enters the Configure dialog. See Configure Dialog on page 1-18.
Edit Installed Font Dialog
The Edit Installed Font window allows modification of some basic attributes of
installed fonts.
Description - Identifies the font as described in the Installed Fonts list box of the PCL
Fonts dialog. The description is made up of the fonts face name and attributes such as
point size, style, and weight.
Font File - Identifies the file name of the installed font as it appears on the hard disk
(host or printer). The file name of a host installed font will include the path. Printer diskinstalled fonts are identified by name only.
Name - The face name of the font
a face name then this name is used by default at installation time. If the font file did not
contain a face name, then the name is the one chosen at installation. This name appears
in the Font Description field of this dialog, the Installed Fonts list box and status line of
the PCL Fonts dialog, and in the fonts list box of your application. Editing this field
effectively edits the face name field of the fonts PFM file
1-6Fonts and Forms Installer
(maximum of 64 characters)-If the font file contained
.
Font ID - This field contains the ID automatically generated and assigned to the font
by the Fonts and Forms Installer during installation. Editing of this field should only be
necessary to avoid or eliminate ID conflicts among fonts downloaded to printer RAM.
If you select an ID that is already in use, a message will inform you that the ID is in use
and cannot be used, and the ID will revert to the previous value.
NOTE:
(Range 0 - 32767)
Automatically generated font IDs are in the range of 1000-1999 for fonts
installed to the host and 3000-3999 for fonts installed to the printer disk.
When a font is installed the Fonts and Forms Installer determines which IDs are used
by looking in the HOSTINFO.INI file (located in the Mercury dBase directory) for all
IDs assigned to host installed fonts on your system and the Printer Information File (if
one is selected) for all IDs assigned to printer disk installed fonts. It then selects the
lowest numerical value in the range that is not used and assigns this as the default ID.
If a font is memory resident (as the result of a download performed on your system) and
its ID changes, whether explicitly or as the result of an Update, the memory resident
reference in the HOSTINFO.INI file will be removed and the font will no longer appear
as memory resident.
NOTE:
In addition to explicitly selecting the Update button, automatic (and
sometimes transparent) updates occur under the following conditions:
• When a Printer Information File is selected.
• Each time the Fonts and Forms Installer is entered when a Printer
Information File is selected.
• When you attempt to download, edit, or delete a printer disk font and
the local copy of the Printer Information File is out of date.
Memory resident - If checked, this indicates that the font was previously downloaded
to printer RAM. However, it does not guarantee that the font is in printer RAM, as the
printer’s power may have been cycled, nor may it be used to make a font memory
resident. It is only enabled if the box is checked. Unchecking this checkbox will remove
the information from the Windows HOSTINFO.INI file indicating that this font is
memory resident and the checkbox will become disabled.
This checkbox is intended to allow the user to remove the memory resident status of a
font if they know or suspect that the font is no longer present in printer RAM.
Family - Allows selection of the family name of the font being edited. This selection
may influence the accuracy of the Windows screen font substitution mechanism.
Editing this field effectively edits the family field of the fonts PFM file
.
Windows groups typefaces into five “families,” based on the general appearance of the
type. These families are called Modern, Swiss, Roman, Script and Decorative. The
most common typefaces are categorized as Modern, Swiss, or Roman, depending on
two characteristics.
Fonts and Forms Installer1-7
The first characteristic involves “stroke width” -- the width of the lines that make up the
characters -- which can be constant or variable. Typefaces in the Modern family have
constant stroke widths. Typefaces in the Swiss and Roman families have variable stroke
widths. (Most typefaces with constant stroke widths are also of “fixed pitch,” which
means that all the characters in the font are the same width. Typefaces with variable
stroke widths are generally of “variable pitch,” which means that the characters have
variable widths. However, it is the stroke width rather than the use of fixed or variable
pitch that determines the family of a particular typeface.)
The second characteristic involves “serifs,” which are small lines that finish off the
character strokes. The Swiss family comprises “sans serif” typefaces (typefaces with no
serifs); the Roman family comprises serif typefaces.
The Script family comprises typefaces that resemble cursive handwriting. The
Decorative family includes typefaces of elaborate design (such as Old English). At one
time, symbol fonts were considered to be in the Decorative family, but they are now
generally identified as symbol fonts by a character-set attribute of the font -- the
character set is Symbol rather than ANSI or OEM.
The following table summarizes the grouping of typefaces into families and shows the
identifiers (defined in WINDOWS.H) that programs can use to specify the font family.
Font FamilyStrokeUsual PitchSerifsTypical Typefaces
FF_MODERN FixedFixed--Courier, Elite, Pica
FF_SWISSVariableVariableNoHelvetica, Avant Garde
Times Roman, Palatino,
FF_ROMANVariableVariableYes
FF_SCRIPT------
FF_DECORATIVE------Old English
New Century Schoolbook
Cursive, Zapf Chancery,
Old English
Cursive, Zapf Chancery,
Old English
WINDOWS.H also includes a sixth font-family identifier, FF_DONTCARE, which a
program can use when it wants to select a font but doesn’t care which family it comes
from.
1-8Fonts and Forms Installer
PCL Fonts Install Dialog
The Install PCL Fonts dialog allows for the selection and installation of fonts.
Select font to install - The Available Fonts list contains the names of all valid fonts
residing in the currently specified directory. If a valid file font does not contain a face
name for the font, the file name of the font is used and will appear in the Available Fonts
list enclosed in parentheses. The user will be prompted to enter a face name if the user
attempts to install a font whose name is enclosed in parentheses. If installing a font
requires entering a face name, the face name entered will appear in the Installed Fonts
list when the installation is complete.
NOTE:
In a given directory, the Fonts and Forms Installer will first look for a file
named GLUE.TXT, which is included with scalable soft font products. This
file, if present, is used to enumerate all scalable fonts available for
installation. Font files in this directory that are not referenced in
GLUE.TXT are not recognized if GLUE.TXT is present. If the directory
does not contain GLUE.TXT, the Fonts and Forms Installer looks at all
files in the directory, displaying only PCL bitmap fonts.
Fonts and Forms Installer1-9
Install font to - Install Font To indicates the destination for the font installation. There
are two possible destinations:
Host directory - This radio button is the default setting and indicates that the font
selected in the Available Fonts list is to be installed on the host system.
Name on Printer disk - This radio button indicates that the font selected in the
Available Fonts list is to be installed on the printer’s hard disk with the name specified
in this field. By default, the field contains the font’s name as it appears in the Available
Fonts list plus the font’s file name. The Printer disk option is disabled unless you have
the appropriate access rights and a Printer Information File is currently selected
(maximum 99 characters).
Install - Performs the actual installation of the selected font. If the font selected for
installation does not have a valid face name (e.g., it is enclosed in parentheses), the user
will be prompted to enter a face name.
If installing to the host, the font file is copied to the location specified in the Host
directory field. The user will be prompted if the host directory field is blank or contains
a directory that does not exist. The Installed Fonts list in the PCL Fonts window will
now show that this font is installed on the host.
If installing to printer disk, the font file is copied to the printer’s hard disk and given the
name specified in the Name on Printer disk field. The Installed Fonts list in the PCL
Fonts window will now show that the font is installed on the printer’s hard disk.
NOTE:
This button is enabled only if a font is selected.
Only one font may be installed at a time.
1-10Fonts and Forms Installer
Missing Font Information Dialog
This dialog is presented when attempting to install a font which has no face name. To
complete the installation, a face name must be entered in the Name field of this dialog.
The face name entered in this field, which may be anything, is stored in the PFM file
created for this font during installation.
PCL Macros Dialog
The PCL Macros dialog includes basic tools for the installation and management of
printer macros. In addition to displaying installed macros, it provides functions for
downloading
, editing, deleting, updating, and installing macros.
Fonts and Forms Installer1-11
The Installed Macros box lists the names and locations of all macros installed using the
Fonts and Forms Installer. You may download, edit, or delete any macro in this list by
selecting the entry and clicking on the appropriate button. The download, edit, and
delete buttons will be disabled for printer disk macros unless you have the appropriate
access rights.
Additional information about a particular macro will appear in a status line below the
list box when that macro is selected.
The macros listed in this window will appear in the list of available Forms in the printer
driver’s Forms and Watermarks folder.
Macro Status Line - This line displays additional information about the macro
currently selected in the Installed Macros list. This information consists of the macro’s
name, the ID assigned by the Fonts and Forms Installer, the installed location (either
host or printer disk), and the file name of the installed macro (host-installed macros will
include a path). The macros name and ID may be modified by editing the macro.
Download - Copies the selected macro to print memory (RAM) and makes it
permanent. Only host-installed macros may be downloaded to printer memory. Once
downloaded, the selected macro will be denoted with the word ‘memory’ and the
Memory resident checkbox in the Edit Installed Macro window will become enabled
and checked.
NOTE:
Macros that you download from your system appear as memory resident
only on your system.
All macros have an identification number (ID) associated with them that is
automatically generated by the Fonts and Forms Installer at the time of installation. In
assigning IDs, the system will not introduce conflicts by assigning an ID that is already
used by a host- installed macro on your system or a printer disk installed macro.
However, it is possible to install a macro on your system which has the same ID as a
macro installed on another user’s system. The Fonts and Forms Installer does not know
which IDs are used by host-installed macros on other systems and therefore cannot
prevent duplicates at installation time. This allows for the possibility of ID conflicts
when multiple users download host-installed macros to RAM.
If you download a host macro that has the same ID as a host macro previously
downloaded by another user, your macro will still be downloaded but it will overwrite
the other user’s macro. To avoid such conflicts, it is advised that your system
administrator allocate a unique range of ID values for each user. Then, before
downloading a host font or macro, edit it and change the Font ID to one of the IDs
allocated to you.
Note that macros residing in printer memory are deleted when the printer’s power is
cycled. If you suspect a macro you downloaded is no longer in printer memory, you
should edit it and uncheck the Memory resident checkbox. The overlay will not occur
if Memory resident is checked and the macro is not in RAM.
NOTE:
The Download button will be disabled for printer disk macros.
1-12Fonts and Forms Installer
Edit - Enters the Edit Installed Macro dialog.
NOTE:
The Edit button will be disabled for printer disk macros unless you have
the appropriate access rights.
Delete - Removes the installed item from the Installed list. The printer driver, Fonts and
Forms Installer, and your applications will no longer be aware of deleted items. In
addition to deleting the reference, Delete provides the option to delete the actual macro
file from its installed location. Answering YES to the prompt will delete the reference
and the file; NO will delete only the reference; and CANCEL will not delete anything.
NOTE:
The Delete button will be disabled for printer disk macros unless you have
the appropriate access rights.
Update - Causes your local system to be updated with information from the Printer
Information File. An update is performed automatically each time you enter the Fonts
and Forms Installer, and when a Printer Information File is selected via the Configure
button. However, while in the Fonts and Forms Installer, you will not be aware of any
fonts or macros installed on the printer disk by another user unless you perform an
update by pressing the Update button. The Installed Fonts (or Installed Macros) list box
will reflect any changes resulting from the update.
The Update button is only enabled if a Printer Information File has been selected via
the Configure button in either the PCL Fonts dialog or the PCL Macros dialog.
Update is only necessary in a network environment.
NOTE:
In addition to explicitly selecting the Update button, automatic (and
sometimes transparent) updates occur under the following conditions:
• When a Printer Information File is selected.
• Each time the Fonts and Forms Installer is entered when a Printer
Information File is selected.
• When you attempt to download, edit, or delete a printer disk font and
the local copy of the Printer Information File is out of date.
Install macros - Enters the Install PCL Macros dialog.
Configure - Enters the Configure dialog. See Configure Dialog on page 1-18.
Fonts and Forms Installer1-13
Edit Installed Macro Dialog
The Edit Installed Macro window allows modification of some basic attributes of
installed macros.
Description - Identifies the macro as it is described in the Installed Macro list box of
the PCL Macros dialog. The description is made up of the macro’s name as chosen
during installation.
Macro file - The file name of the macro as it appears on the disk where it was installed.
Name - The name of the macro as chosen during installation. Unless the user selects
another name, the file name of the macro is used by default at installation time. This
name appears in the Macro Description field of this dialog, the Installed Macros list box
and status line of the PCL Macros dialog, and in the Overlay Macros list in the driver’s
Options dialog. (Maximum length for a Macro Name is 64 characters)
Macro ID - This field contains the ID automatically generated and assigned to the
macro by the Fonts and Forms Installer during installation. Editing of this field should
only be necessary to avoid or eliminate ID conflicts among macros downloaded to
printer RAM. If you select an ID that is already in use, a message will inform you that
the ID is in use and may not be used, and the ID will revert to the previous value (range
0 - 32767).
NOTE:
Automatically generated macro IDs are in the range of 1000-1999 for
macros installed to the host and 3000-3999 for macros installed to the
printer disk.
When a macro is installed the Fonts and Forms Installer determines which IDs are used
by looking in the Windows HOSTINFO.INI file (located in the Mercury dBase
directory) for all IDs assigned to host-installed macros on your system and the Printer
Information File (if one is selected) for all IDs assigned to printer disk installed macros.
It then selects the lowest numerical value in the range that is not used and assigns this
as the default ID.
1-14Fonts and Forms Installer
If a macro is memory resident (as the result of a download performed on your system)
and its ID changes, whether explicitly or as the result of an Update, the memory resident
reference in the HOSTINFO.INI file will be removed and the macro will no longer
appear as memory resident.
NOTE:
In addition to explicitly selecting the Update button, automatic (and
sometimes transparent) updates occur under the following conditions:
• When a Printer Information File is selected.
• Each time the Fonts and Forms Installer is entered when a Printer
Information File is selected.
• When you attempt to download, edit, or delete a printer disk font and
the local copy of the Printer Information File is out of date.
Memory resident - If checked, this indicates that the macro was previously
downloaded to printer RAM. However, it does not guarantee that the macro is in printer
RAM, as the printer’s power may have been cycled, nor may it be used to make a macro
memory resident. It is only enabled if the box is checked. Unchecking this checkbox
will remove the information from the HOSTINFO.INI file that was designating the
macro as memory resident, and the checkbox will become disabled.
This checkbox is intended to allow the user to remove the memory resident status of a
macro if the user knows or suspects that the macro is no longer present in printer RAM.
Fonts and Forms Installer1-15
Install PCL Macros Dialog
The Install PCL Macros dialog allows for the selection and installation of macros.
Select macro to install - The Available Macros list contains the file names of the all
files residing in the currently specified directory. By default the macro’s name is its file
name. The user will be prompted to accept or change the macro name when installing
a macro.
NOTE:
It is the user’s responsibility to make sure the file selected for installation
contains a valid PCL macro definition. The Fonts and Forms Installer will
accept any file and assume it contains a macro definition.
Install macro to - Install Macro To indicates the destination for the macro installation
(Maximum 99 characters). There are two possible destinations:
Host directory - This radio button is the default setting and indicates that the macro
selected in the Available Macros list is to be installed on the host system.
Name on Printer disk - This radio button indicates that the macro selected in the
Available Macros list is to be installed on the printer’s hard disk with the name specified
in this field. By default this field contains the macro’s name as it appears in the
Available Macros list. The Printer disk option is disabled unless you have the
appropriate access rights and a Printer Information File is currently selected.
1-16Fonts and Forms Installer
Install - Performs the actual installation of the selected macro. The user will be
prompted to accept or change the macro name. If installing to the host, the macro file
is copied to the location specified in the Host directory field. The user will be prompted
if the host directory field is blank or contains a directory that does not exist.
The Installed Macros list in the PCL Macros window now shows that this macro is
installed on the host. If installing to printer disk, the macro file is copied to the printer’s
hard disk and given the name specified in the Name on Printer disk field. The Installed
Macros list in the PCL Macros window will now show that the macro is installed on the
printer’s hard disk.
NOTE:
This button is enabled only if a file is selected.
Only one macro may be installed at a time.
Network - Opens the standard Connect Network Drive dialog if the system is
connected to a network.
Macro Information Dialog
This dialog is presented when installing a macro to allow modification of the default
name given to the macro. The user may change the name in the Name field or choose
to accept the default name presented. Selecting OK will complete the installation.
Fonts and Forms Installer1-17
Configure Dialog
The Configure dialog allows selection of a Printer Information File that describes
which fonts and/or macros are installed on the printer.
Printer Information File - The Printer Information File contains information about
fonts and macros installed on the printer’s hard disk. This file must be created by your
system administrator and is intended to reside on a network drive that is accessible to
all users.
You may select a Printer Information File via the Configure button in either the PCL
Fonts or PCL Macros dialog. Each time anyone installs a font or macro on the printer’s
hard disk, information about that font or macro is recorded in the currently selected
Printer Information File.
When a user selects a Printer Information File or an update occurs, this file is copied to
the user’s Windows directory (and given the extension .LOC). This local copy of the
Printer Information File is maintained to improve performance.
Upon selection of a Printer Information File, the Installed Fonts list (or Installed Macros
list) will automatically be updated to reflect any fonts (or macros) installed on the
printer’s hard disk.
Contact your system administrator for the name and location of this file.
This field and the Browse button are only enabled if the None checkbox is unchecked.
NOTE:
Universal Naming Convention (UNC) names should be used, not specific
drive letters as these may change. UNC example: \\fileserver\public\myfile.
None - If checked, this indicates that no Printer Information File is specified. With no
Printer Information File selected, you may not install fonts or macros on the printer’s
hard disk, and you will not see any fonts or macros that are installed on the printer’s
hard disk.
Checking this box clears the Printer Information File field above and disables the
Browse button.
Browse - Opens the standard Browse dialog.
1-18Fonts and Forms Installer
HP PCL5e Language Printer Commands
Additional PCL5e printer codes and commands needed to use the unique features of the
printer are included in this section.
NOTE:
HP 4000 Series printers use the HP Printer Command Language, Level
5e. This language, usually referred to as PCL5e, includes both the PCL
and HP-GL/2 command structures.
For a detailed description of HP PCL 5, see HP PCL5 Comparison Guide Edition 1, E1097.
About PCL5e
PCL5e is Hewlett Packard’s Printer Command Language. PCL5e adds scalable fonts
and GL/2 vector graphics to the basic text and raster graphics capabilities of earlier
levels of HP’s printer emulations.
PCL5e printer language commands can be divided into three different groups: printer
control codes, PCL commands, and HP-GL/2 commands.
Chapter 2
Within the PCL5e context, there are two types of commands: control codes and escape
code sequences. Escape codes are described in detail in the following pages.
Unprintable control codes cause the printer to do some function such as eject a sheet of
paper. These codes and their functions are listed below.
CodeASCIIDescription
BackspaceBSMove one column left or take no action if already at left margin.
Carriage Return CR
EscapeESCBegin a special control sequence.
Form FeedFF
Line FeedLF
Horizontal TabHTMove to the next horizontal tab stop.
Shift InSI
Shift OutSO
Move to the left margin on the current print line. May be modified
by an escape sequence code.
Move to the same column in first line at the top of the next page.
May be modified by an escape sequence.
Move to the same column in the next line. May be modified by an
escape sequence.
Select the current primary font for the printable characters that
follow. Use this font until SO is received.
Select the current secondary font for the printable characters that
follow. Use this font until SI is received.
HP PCL5e Language Printer Commands 2-1
PC-DOS Application Escape Character Commands
The following lists the escape character commands for some of the more familiar MSDOS applications. Escape characters can be entered from the application.
DOS ApplicationKeys To EnterWhat You See
Lotus 1-2-3 and Symphony Type \027027
Microsoft Word for DOS
WordPerfect for DOSType 027<27>
MS-DOS EditorHold down CTRL P then ESC¨
MS-DOS EdlinHold down CRTL V then [ ^[
dBase??CHR(27)+‘‘command’’//CHR(27)+‘‘ ’’
Hold down ALT key and type 027
on the numeric keypad
Using PCL5e Printer Escape Sequences
A printer command escape sequence always begins with the escape character (ESC).
The escape sequence is a command that tells the printer to perform a certain function.
It consists of an ESC code (27 decimal or 1B hexadecimal) followed by one or more
printable characters (48 through 126 decimal, 30 through 7E hexadecimal).
Most escape sequence printer commands consist of the ESC code followed by a
character (within the range of 33 through 47 decimal, 21 through 2F hexadecimal), a
group character (within the range of 96 through 126 decimal, 60 through 7E
hexadecimal), a value field, and a terminating character.
The value field specifies a number whose interpretation depends on the command. A
value field is indicated by [#] in the escape sequences. In general, numbers can start
with a plus (+) or minus (-) sign indicating a positive or negative value.
¨
NOTE:
In this manual, a value field is indicated by [#] in the escape sequence.
When sending data for a value field, do not include the brackets ([ ]).
The + or - sign is followed by one or more ASCII numerals followed by a decimal point
(ASCII period) and more numerals. The sign and decimal point can be omitted if not
needed.
Value fields without a sign are treated as positive numbers. Value fields without decimal
points are treated as integers. If an integer value is required, fractions are truncated.
Spaces within the value field are ignored.
The terminating characters indicate that the escape sequence command is complete.
The emulation uses characters within the range of 64 through 94 decimal (40 through
5E hexadecimal) as terminators. When escape sequences are combined, group
characters are used instead of terminating characters.
Some escape sequences must be followed by binary data. Usually the number of bytes
of binary data is specified within the command.
2-2HP PCL5e Language Printer Commands
Combining Escape Sequence Commands
The amount of data sent to the printer can be reduced by combining related escape
sequence commands. To combine the escape sequence commands, omit the ESC
character, group character, and character from all but the first command. Change the
terminating character to lower case for all but the last command.
For example, ESC * c 12.34 H, ESC * c 56.78 V, ESC * c 75 G, and ESC * c 2 P can
be combined into ESC * c 12.34 h 56.78 v 75 g 2 P.
NOTE:
In this manual, escape code sequences are printed with spaces between the
individual characters for clarity. Do not include these spaces when using
the commands.
Escape Sequences Syntax
The escape sequence syntax includes the lower case letters “l” and “o” that are easily
confused with the numbers one (1) and zero (0). For clarity, the lower case “l” is
italicized (l ) in the escape sequence descriptions and listings.
If escape sequence does not work correctly, make sure that you did not use a “0" (zero)
or “1" (one) where a letter “o” or “l” is needed.
Note that the spaces shown in the escape sequences should not be included when a
command is sent to the printer. The brackets ([ and ]) used to show value fields or data
are also not part of the escape sequences.
When you see [#] in an escape code sequence, you must supply a parameter value.
Replace the [#] with a decimal or hexadecimal value. When using a quoted string in
BASIC, replace the [#] with an ASCII decimal value or character. In both cases, do not
include the brackets.
HP PCL5e Language Printer Commands2-3
HP PCL5e Escape Code Sequences
Job Controls
ESC % -12345XUniversal exit/start of PJL.
ESC EReset printer to user defaults. All temporary fonts and macros are deleted. Any
remaining data is printed using the user default values.
ESC & l [#]XSelect [#] of copies (1 to 32,767).
ESC & l [#]USet left (long edge) offset registration in decipoints (1/720") to adjust the
logical page position on the width of the physical page. Both positive and
negative values are accepted.
ESC &
l [#] ZSet top (short edge) offset registration in decipoints (1/720") to adjust the
logical page position on the length of the page. Both positive and negative
values are accepted.
ESC & l [#] SSelect simplex or duplex printing mode.
#Printing Mode
0 Simplex.
1 Duplex, Long-Edge Binding.
2 Duplex, Short-Edge Binding.
ESC & a [#] GSelect page side [#] for printing. If duplex printing is not supported, a page
eject is performed.
# Page Side
0 Next side is selected.
1 Front side is selected.
2 Back side is selected.
2-4HP PCL5e Language Printer Commands
ESC | x [#] JThis command can modify several different job control settings.
n
PCL image offset*
n
Page mode jog*
n
Input tray selection mode*
n
Output tray mask
* These settings are persistent, meaning they stay in effect after a power cycle.
To change all of these settings back to Standard, execute a “Restore to
Factory Defaults” via the OCP or Web. To change a specific setting back to
Standard, reenter the command with the Standard value field.
#PCL Image Offset
0 Standard (default).
1 MicroPress.
Use with early versions of MicroPress systems only.
#Page Mode Jog
20 Standard (default).
21 Enable page mode jog.
When Page Mode Jog is enabled, Job Offset (Jog) enabled, multiple copies selected,
and collation is disabled, a jog operation occurs between the printing of pages. For
example, if a job prints 10 pages (simplex), 3 copies, with collation off and Page Mode
Jog disabled, the output is offset at the end of the job. That is, if two such jobs are
printed, the second job is offset from the first. If Page Mode Jog is enabled for this same
job, sheet 11 is offset from sheet 10, sheet 21 is offset from sheet 20, and the first sheet
of the next job is offset from sheet 30 (the last sheet of this job).
HP PCL5e Language Printer Commands2-5
#Input Tray Selection Mode
100Standard (default).
101 Option 1.
102 Option 2.
103 Option 3.
104 Option 4.
105 Option 5.
106Custom Mapping 6
107Custom Mapping 7
200Standard (default).
201Option 1
Setting the tray selection mode with a 10X code makes
the mode persistent. The selected mode will be active
immediately and it will be reestablished whenever PJL
environment values are set to their default values. This
happens when:
- PJL mode is entered with a Universal Exit Language
(UEL) command.
- a PJL End of Job (EOJ) command is processed.
- a PJL initialize command is processed.
- the printer is reset to the Factory default from the OCP or
SNMP.
202Option 2
203Option 3
204Option 4
205Option 5
206Custom Mapping 6
207Custom Mapping 7
Setting the tray selection mode with a 20X code makes
the selected mode active immediately, but it is not
persistent. The tray selection mode will revert to the last
persistent selection whenever PJL environment values are
set to their default values. See the comments above.
NOTE: Refer to “Paper Source” on page 2-12 for input tray option definitions.
#Output Tray Mask
15 Disable auto cascading for Stacker 5
16 Disable auto cascading for Stacker 6
17 Disable auto cascading for Stacker 7
18 Disable auto cascading for Stacker 8
25 Enable auto cascading for Stacker 5 (default)
26 Enable auto cascading for Stacker 6 (default)
27Enable auto cascading for Stacker 7 (default)
28Enable auto cascading for Stacker 8 (default)
Refer to “Output Bin” on page 2-10 for output tray selections. These settings
stay in effect until they are changed or the printer is reset.
2-6HP PCL5e Language Printer Commands
Alphanumeric ID
ESC & n # W <operation> <string>
n
Maximum length of <string> data is 99 bytes.
n
Range of # value is 1 to 100 inclusive (length of <string> data + one operation
byte).
The following are supported values for the <operation> byte.
Value Description
(0 Dec, 0x00 Hex, \000 Oct)
^@
Sets the current Font ID to <string>.
(1 Dec, 0x01 Hex, \001 Oct)
^A
Associates the current Font ID to the font referred to by <string>.
(2 Dec, 0x02 Hex, \002 Oct)
^B
Selects the font referred to by <string> as primary.
(3 Dec, 0x03 Hex, \003 Oct)
^C
Selects the font referred to by <string> as secondary.
(4 Dec, 0x04 Hex, \004 Oct)
^D
Sets the current Macro ID to <string>.
(5 Dec, 0x05 Hex, \005 Oct)
^E
Associates the current Macro ID to the macro referred to by <string>.
(20 Dec, 0x14 Hex, \024 Oct)
^T
Deletes the font association named by the current Font ID.
(21 Dec, 0x15 Hex, \025 Oct)
^U
Deletes the macro association named by the current Macro ID.
For example, the media called Letterhead, can be selected by the PCL5e Alphanumeric
ID command in the following form:
<esc>&n11WdLetterhead
HP PCL5e Language Printer Commands2-7
Page Controls
Paper Size
ESC & l [#] ASet physical page size to [#]. A tray with the selected paper size must be
installed and selected as a paper source.
# Paper Size
1Executive (7.25’’ x 10.5’’)
2Letter (8.5" x 11")
3Legal (8.5" x 14")
6Ledger (11" x 17")
7Statement (8.5” x 5.5”)
26A4 (297mm x 210mm)
27A3 (297mm x 420mm)
40Folio (216mm x 330mm)
45JIS B5 (182mm x 257mm)
46JIS B4 (257mm x 364mm)
Universal or Custom. Media size must be set to
101
Custom and physical media dimensions must be
entered through the operator control panel or SNMP.
102Letter SEF (8.5” x 11”)
115A5 SEF (149mm x 210mm)
126A4 SEF (210mm x 297mm)
202LetterTab Stock (9” x 11”)
226A4 Tab Stock (297mm x 225mm)
2006 SuperB (12” x 18”)
Page Length
ESC & l [#] PSet logical page length to [#] lines. This is an alternate, but not recommended,
method for selecting a page length. The page length selected is the smallest
logical page length that is greater than the specified number of lines multiplied
by the current VMI.
2-8HP PCL5e Language Printer Commands
Orientation
ESC & l [#] OSelect print orientation (#).
#Print Orientation
0 Portrait.
1 Landscape.
2 Reverse portrait.
3 Reverse landscape.
ESC & a [#] PSelect print direction [#]. Rotate the logical page coordinates counterclockwise
in 90 degree increments from the current logical page orientation.
#Rotation
0Do not rotate.
90Rotate 90 degrees.
180Rotate 180 degrees.
270Rotate 270 degrees.
HP PCL5e Language Printer Commands2-9
Output Bin
ESC & l [#] GSelect Output Bin [#]. For Auto cascade, when the Stacker 5, 6, 7 and 8 of
Container Stacker is full, the output bin can be switched to another output bin
and the Stacker 5, 6, 7 and 8 can be individually enabled or disabled auto
cascading. (Refer to “Output Tray Mask” on page 2-6.) This command is
ignored for any selection that is not installed or supported.
#No Finisher
Engine Output Tray
1
Face Down
2 -Elevator Tray Face down Elevator Tray Face down Elevator tray Face down
3 -Upper Tray Face downUpper Tray Face downUpper Tray Face down
4 --Booklet Holder Face down
5--
6--
7--
8--
9--
10 --
Engine Output Tray
11
Face Up
12 -Elevator Tray Face upElevator Tray Face upElevator Tray Face up
13 -Upper Tray Face upUpper Tray Face upUpper Tray Face up
14 --Booklet Holder Face up
Advanced Finisher
(70 ppm only)
-
-
Standard Finisher
(108H)
(92 ppm only)
Booklet Finisher
(108HBM)
(92 ppm only)
15 --
16 --
17 --
18 --
19 --
* Autocascade can be enabled/disabled for each stacker individually. Refer to “Output Tray Mask” on page 2-
5.
Table continues on the following page.
2-10HP PCL5e Language Printer Commands
#Publishing FinisherContainer Stacker
0-
2--
3--
4 Booklet Stacker Face down -
5 -Stacker 5 Face down
6 -Stacker 6 Face down
7 -Stacker 7 Face down
8 -Stacker 8 Face down
9 -Sample Tray Face down
10 -
11 --
12 --
13 --
14 Booklet Stacker Face up-
15 -Stacker 5 Face up
16 -Stacker 6 Face up
17 -Stacker 7 Face up
Auto cascade*
Face down
Auto cascade*
Face up
18 -Stacker 8 Face up
19 -Sample Tray Face up
* Autocascade can be enabled/disabled for each stacker
individually. Refer to “Output Tray Mask” on page 2-5.
HP PCL5e Language Printer Commands2-11
Paper Source
ESC & l [#] HSelect Paper (Media) Source Input Tray [#]. This command is ignored for any
selection that is not installed or supported.
.
Input Tray Selection Mode*
Standard
#
Mode
Option 1Option 2Option 3Option 4Option 5
(default)
012351235321521000
1131112 11
2242224 44
3343334 44
4424331 55
5515553 22
612355321521444
712351235321521123512351235
812351235321521123533
912351235321521123500
1066321521123500
1177321521123500
1212351235321521123500
------- --
1912351235321521123500
2088321521444
2112351235321521555
2212351235321521123500
------- --
6912351235321521123500
Custom
Mapping
6
Custom
Mapping
7
NOTES:
Refer to Valid Tray Group Codes on page 2-13.
Refer to the escape sequences on page 2-5 to modify the input tray selection mode.
All other values default to 0.
Custom Mapping 6 & 7 are displayed on the status page in the printer general information
section. The mappings are reported as a comma separated list of tray group codes.
2-12HP PCL5e Language Printer Commands
Input Tray Mapping and Grouping
Input Tray Mapping and Grouping provides a method for the PCL Paper
Source control sequence to select any paper tray or any valid group of paper
trays. It allows the printer administrator to define and manage two sets of
mappings, and provides the administrator the ability to select and set one of the
mappings from the paper source control sequence to paper trays or groups of
trays as the default mapping. It allows the printer user to select different
mappings for the duration of the user’s print job.
Tray Group Code
Decimal digits 1-8 are used to represent the input trays of the printer as shown
in the table below. Groups of trays are selected using the code numbers. The
number of trays in a group is limited to four and the priority order is from left
to right. For example, a tray group consisting of the HCF and Tray 3 with the
HCF having the highest priority is represented by the number 53. Any
combination of trays is valid with the following exceptions:
n
The MBT (4) cannot be used in any group.
n
Inserter trays (6, 7 and 8) cannot be grouped with printer trays (1, 2, 3, or
5).
CodeTrays Listed in Priority Order
0Special code indicating Eject Page. The existing tray group selection is retained
1Tray 1 only (lower tray)
2Tray 2 only (middle tray)
3Tray 3 only (upper tray)
4MBT only
5HCF only
6PF Tray 1 only
7PF Tray 2 only
8HBM Tray only
Valid Tray Group Codes
NOTE:
If the group being specified is in numeric ascending order, the input trays
will be used in the order specified and each tray will be used until the tray
is empty. At that time the next tray in sequence that contains the same
paper definition will be selected. At any time where a higher priority tray
is filled with the same paper, that tray will be selected after the current
tray becomes empty.
If the group being specified is in a non-ascending order, then where a tray
of higher order priority becomes empty the next lower priority tray will be
selected. In this case if a higher priority tray is filled and the tray goes
“Ready” before the current tray becomes empty, the printer will
automatically switch back to the higher priority tray.
HP PCL5e Language Printer Commands2-13
Character Text Path Direction
ESC & c [#] TVertically rotate text for use in vertical writing applications.
#Print Direction
0Horizontal.
1Vertical.
Margin Controls
ESC & a [#] LSet left margin at the left edge of column [#].
ESC & a [#] MSet right margin at the right edge of column [#].
ESC 9 Clear left and right margins.
ESC & l [#] ESet top margin to [#] lines. Top margin is the number of lines between the top
of the logical page and the text area.
ESC & l [#] FSet text length to [#] lines.
Perforation Skip
ESC & l [#] LPerforation skip is enabled or disabled. Printing skips from the end of the text
area to the top of the text area on the next page.
#Perforation Skip Mode
0 Disable perforation skip.
1 Enable perforation skip.
Horizontal Column Spacing
ESC & k [#] HSet the Horizontal Motion Index (HMI) to [#]/120th inch. The value of [#] is
valid to four decimal places.
Vertical Line Spacing
ESC & l [#] CSet Vertical Motion Index (VMI) to [#]/48th inch. The value of [#] is valid to
four decimal places.
ESC & l [#] DSet line spacing to [#] lines-per-inch. The values for [#] can be 1, 2, 3, 4, 6, 8,
12, 16, 24 or 48. This is an alternate method for setting VMI.
2-14HP PCL5e Language Printer Commands
Cursor Controls
Cursor control commands are used for relative or absolute cursor positioning. To make
a relative cursor move, insert a plus (+) or minus (-) sign before the value of [#] in the
escape sequence. The cursor is moved relative to the current cursor position.
To make an absolute cursor move, do not insert a plus (+) or minus (-) sign in front [#].
An absolute horizontal position is referenced from the left edge of the logical page. An
absolute vertical position is referenced from the top margin.
Vertical and Horizontal Movement
ESC & a [#] CMove the cursor to column [#]. Column width is determined by the current
HMI value.
ESC & a [#] HMove the cursor horizontally [#] decipoints (a decipoint = 1/720th inch). The
value of [#] is valid to two decimal places.
ESC & a [#] RMove the cursor [#] lines within the same column. The actual distance is
determined by the current VMI value.
ESC & a [#] VMove the cursor vertically [#] decipoints (a decipoint = 1/720th inch). The
value of [#] is valid to four decimal places.
ESC * p [# ] XMove the cursor horizontally [#] dots (a dot = 1/300th inch).
ESC * p [#]YMove the cursor vertically [#] dots (a dot = 1/300th inch).
ESC =Stay in the same character position and move the cursor down a half-line feed.
The actual distance depends on the current VMI value.
Push/Pop Position
ESC & f [#] SESC & f 0 S pushes a cursor position on the stack. ESC & f 1 S pops the last
saved cursor position from the stack. Up to 20 cursor positions can be saved.
HP PCL5e Language Printer Commands2-15
End-of-Line Termination
ESC & k [#] GDefine line termination code mode as shown in the table below.
ModeCode Functions
0 CR=CR, LF=LF, FF=FF
1 CR=CR+LF,LF=LF, FF=FF
2 CR=CR, LF=CR+LF,FF=CR+FF
3 CR=CR+LF, LF=CR+LF, FF=CR+FF
CR = Carriage Return
LF = Line Feed
FF = Form Feed
Font Selection
Fonts can be selected by their attributes. The printer then chooses the resident or
downloaded font that most closely matches the desired attributes according to
established search priority.
When changing from one font to another, the attributes that are the same as the current
font do not have to be specified again. However, it is recommended that all attributes
be specified to make sure that the correct font is selected. Font attributes are ranked
according to the following priorities:
AttributeDescription
Font IDNumber assigned to the font.
Symbol setRoman-8, Math-8, etc.
Spacing typeFixed or proportional.
PitchCPI (fixed spacing only).
HeightPoint size.
StyleUpright or italic.
Stroke weightLight through bold.
TypefaceCourier, Lineprinter, etc.
SourceSoft then resident.
OrientationPortrait or landscape.
NOTE:
The printer can print resident and downloaded fonts in portrait,
landscape, reverse portrait or reverse landscape orientation. Scalable
fonts from any source can be oriented to any angle.
2-16HP PCL5e Language Printer Commands
Symbol Set Selection
The following lists the symbol set table. The selected symbol set must be supported by
a resident or downloaded font.
ESC ( [##]Select the primary font symbol set according to the value of [##] from column
one in the table below.
ESC ) [##]Select the secondary font symbol set according to the value of [##]. Use the
primary font symbol set list for selections (see the HP PCL5 Comparison
Guide Edition 1, E1097).
ID #Symbol Set
0DISO 60 Norwegian v1
1EISO 4 United Kingdom
9EWindows Latin 2
1FISO 69 French
1GISO 21 German
0IISO 15 Italian
6JMicrosoft Publishing
7JDesktop
10JPostScript Text
13JVentura International
14JVentura US
5MPostScript Math
6MVentura Math
8MMath-8
0NECMA-94 Latin 1
2NECMA-94 Latin 2
5NECMA-94 Latin 5
0SISO 11 Sweden: names
2SISO 17 Spanish
5TWindows Latin 5
9TPC-8 Turkish
0UUSASCII
1UUS Legal
8URoman-8
9UWindows
10U PC-8 US
11UPC-8 Danish/Norwegian
12UPC-850
15UPiFont
17UPC-852
19UWindows Latin 1
HP PCL5e Language Printer Commands2-17
Font Spacing and Pitch
ESC ( s [#] PSelect proportional or fixed spacing.
#Spacing
0 Fixed spacing
1 Proportional spacing
ESC ( s [#] HSelect character pitch (Characters Per Inch) for a monospaced font.
Font Character Size and Style
ESC ( s [#] VSet primary point size to [#]/72nd inch.
ESC ( s [#] SSelect character style [#]:
#Character Style
0Upright font
1Italic font
4Condensed
5Condensed Italic
8Compressed
24Expanded, extra condensed
32Outline
64Inline
128Shadowed
160Outline shadowed
As per the HP PCL5 Comparison Guide Edition 1, E1097.
NOTE:
The selected character style must be supported by a resident or
downloaded font.
2-18HP PCL5e Language Printer Commands
Font Character Stroke Weight
ESC ( s [#] BSelect stroke weight [#]:
#Stroke Weight
-7 Ultra thin
-6 Extra thin
-5 Thin
-4 Extra light
-3 Light
-2 Demi light
-1 Semi light
0 Medium
1Semi bold
2Demi bold
3Bold
4Extra bold
5Black
6Extra black
7Ultra black
As per the HP PCL5 Comparison Guide Edition 1, E1097.
NOTE:
The selected stroke weight must be supported by a resident or
downloaded font.
Secondary Font Character Size and Style
To select the font character size and style for a secondary font, replace the open
parenthesis “(” in a primary font sequence with a close parenthesis “)”.
HP PCL5e Language Printer Commands2-19
Typeface Selection
ESC ( s [#] TSelect primary font typeface [#]. The table below lists the code numbers of
internal typefaces that are available.
#Typeface
0Line Printer-Bitmap
4099Courier
4101CG Times
4102Letter Gothic
4113CGn Omega
4116Coronet
4140Clarendon
4148Univers
4168Antique Olive
4197Garamond Antiqua
4297Marigold
4362Albertus
4822Wingdings
16602Arial
16686Symbol
16901Times New Roman
ESC ) s[#]TSelect secondary font typeface [#]. Use the primary font typeface values to
select [#}.
Primary/Secondary Font Selection
ESC ( 3 @ Select default primary font.
ESC ) 3 @ Select default secondary font.
ESC & k [#] SSelect print pitch mode by the alternate method.
#Pitch
010.0 characters per inch.
216.67 characters per inch.
412.0 characters per inch.
2-20HP PCL5e Language Printer Commands
Auto Underline
ESC & d [#] D Enable auto underline mode [#].
#Underline Mode
0 Enable fixed underline.
3Enable floating underline.
ESC & d @ Disable auto underline mode.
Transparent Print
ESC &p[#]X[data] Transparent print [#] bytes of character data. This command allows access to
all characters in a font including those defined as unprintable.
Text Parsing
ESC &t[#] PThis command informs the PCL parser whether character codes should be
interpreted as 1-byte or 2-byte character codes as described below.
#Parsing Method
0, 1 All character codes are processed as 1-byte characters.
Character codes in the range 0x21-0xFF are processed as the first byte of a 2-byte
21
character. The following byte is processed as the second byte of the 2-byte
character. All character codes outside this range are processed as 1-byte values.
Character codes in the range 0x81-0x9F and 0xE0-0xFC are processed as the first
byte of a 2-byte character. The following byte is processed as the second byte of
31
the 2-byte character. All character codes outside this range are processed as
1-byte values.
Character codes in the range 0x80-0xFF are processed as the first byte of a 2-byte
38
character. The following byte is processed as the second byte of the 2-byte
character. All character codes outside this range are processed as 1-byte values.
HP PCL5e Language Printer Commands2-21
Font Management
ESC * c [#] DAssign font ID number [#] (0 to 32,767) to a font to be downloaded. The font
with this ID number will be used for the next font management command.
ESC ( [#] XAssign downloaded font with identification [#] as primary font (0-32,767).
ESC ) [#] XAssign downloaded font with identification [#] as secondary font (0-32,767).
ESC * c [#] FSelect a font or character management operation [#] from the following list:
#Operation
0Delete all soft fonts.
1Delete all temporary soft fonts.
2Delete soft font specified by the last ID#.
Delete character code specified by the last ID# and
3
character code.
4Make the soft font specified by the last ID# temporary.
5Make the soft font specified by the last ID# permanent.
6Copy or assign the current font as temporary.
Soft Font Creation
ESC ) s[#]W [data] Create font header for a soft font. There are [#] bytes of data in the header. The
data follows the command.
ESC *c [#] EAssign decimal value to a character to be downloaded (0 to 32,767).
ESC ( s[#]W [data] Download [#] bytes of binary character data.
2-22HP PCL5e Language Printer Commands
PCL Vector Graphics Switching/Set-up
ESC * c [#] XSet horizontal size of picture frame to [#] decipoints (1/720th inch).
ESC * c [#] YSet vertical size of picture frame to [#] decipoints (1/720th inch).
ESC * c 0 TSet picture frame anchor point to the PCL cursor position.
ESC * c [#] KSet HP-GL/2 horizontal plot size to [#] inches.
ESC * c [#] LSet HP-GL/2 vertical plot size to [#] inches.
ESC % [#] BEnter HP-GL/2 mode and position pen according to the value of [#]. If [#]
equals:
#Pen Position
0Place pen to previous HP-GL/2 pen position.
1Place pen to current PCL cursor position.
ESC % [#] AEnter PCL mode and position cursor according to the value of [#]. If [#] equals:
Paper lengthNumber of linesESC & l [#] P1B 26 6C [#] 5027 38 108 [#] 80
Page orientationPortrait
Page side selectionNext side
Paper (media) source*
(without High Capacity
Feeder)
Paper (media) source*
(with High Capacity
Feeder; selected tray
must be installed)
* Standard mode input tray selection is shown here. Refer to “Paper Source” on page 2-12 for information on additional
mode selections.
Modified mode
Letter (8.5" x 11")
Legal (8.5" x 14")
Ledger (11" x 17")
Statement (8.5’ x 5.5’)
A4 (210mm x 297mm)
A3 (297mm x 420mm)
Folio (216 x 330)
JIS B5 (182mm x 257mm)
JIS B4 (257mm x 364mm)
Universal or Custom
Letter SEF (8.5" x 11")
A5 SEF (149mm x 210mm)
A4 SEF (210mm x 297mm)
Letter Tab Stock (9” x 11”)
A4 Tab Stock
SuperB (12” x 18”)
Tray 1 (Lower)
Tray 2 (Middle)
Tray 3 (Upper)
Multi Bypass Tray
High Capacity Feeder
ESC | x 0 J
ESC | x 1 J
ESC | x 20 J
ESC | x 21 J
ESC | x 100 J
ESC | x 101 J
ESC & l 1 A
ESC & l 2 A
ESC & l 3 A
ESC & l 6 A
ESC & l 7 A
ESC & l 26 A
ESC & l 27 A
ESC & l 40 A
ESC & l 45 A
ESC & l 46 A
ESC & l 101 A
ESC & l 102 A
ESC & l 115 A
ESC & l 126 A
ESC & l 202 A
ESC & l 226 A
ESC & l 2006 A
ESC & l 0 O
ESC & l 1 O
ESC & l 2 O
ESC & l 3 O
ESC & a 0 G
ESC & a 1 G
ESC & a 2 G
ESC & l 0 H
ESC & l 1 H
ESC & l 2 H
ESC & l 3 H
ESC & l 4 H
ESC & l 0 H
ESC & l 1 H
ESC & l 2 H
ESC & l 3 H
ESC & l 4 H
ESC & l 5 H
ISO 4 United Kingdom
Windows Latin 2
ISO 69 French
ISO 21 German
ISO 15 Italian
Microsoft Publishing
Desktop
PS Text
Ventura International
Ventura US
PS Math
Ventura Math
Math-8
ECMA-94 (Latin 1)
ECMA-94 (Latin 2)
ECMA-94 (Latin 5)
ISO 11 Sweden names
ISO 17 Spanish
Windows Latin 5
PC-8 TK
ISO 6 ASCII
US Legal
Roman-8
Windows
PC-8
PC-8 (D/N)
PC-850
Pi Font
PC-852
Windows Latin 2
Secondary font symbol
set
Primary font character
spacing
Secondary font
character spacing
Primary font pitch# = font pitch.ESC ( s [#] H1B 28 73 [#] 4827 40 115 [#] 72
Secondary font pitch# = font pitch.ESC ) s [#] H1B 28 73 [#] 4827 40 115 [#] 72
Primary font point size ESC ( s [#] V1B 28 73 [#] 5627 40 115 [#] 86
Secondary font point
size
Primary font styleUpright
Secondary font styleSee primary font for [#].ESC ) s [#] S1B 28 73 [#] 5327 40 115 [#] 83
See primary font for [##].ESC ) [##] 1B 29 [##] 27 41 [##]
Extra thin
Thin
Extra light
Light
Demi light
Semi light
Medium
Semi bold
Demi bold
Bold
Extra bold
Black
Extra black
Ultra black
ESC ( s - 7 B
ESC ( s - 6 B
ESC ( s - 5 B
ESC ( s - 4 B
ESC ( s - 3 B
ESC ( s - 2 B
ESC ( s - 1 B
ESC ( s 0 B
ESC ( s + 1 B
ESC ( s + 2 B
ESC ( s + 3 B
ESC ( s + 4 B
ESC ( s + 5 B
ESC ( s + 6 B
ESC ( s + 7 B
Secondary font weight See primary font for [#].ESC ) s [#] B1B 29 73 [#] 4227 41 115 [#] 66
Primary font typeface
values [#] for all
installed fonts are listed
on the Font List printout
Line Printer
Courier
CG Times
Letter Gothic
CGn Omega
Coronet
Clarendon
Univers
Antique Olive
Garamond Antiqua
Marigold
Albertus
Arial
Symbol
Times New Roman
Wingdings
ESC ( s 0 T
ESC ( s 4099 T
ESC ( s 4101 T
ESC ( s 4102 T
ESC ( s 4113 T
ESC ( s 4116 T
ESC ( s 4140 T
ESC ( s 4148 T
ESC ( s 4168 T
ESC ( s 4197 T
ESC ( s 4297 T
ESC ( s 4363 T
ESC ( s 16602 T
ESC ( s 16686 T
ESC ( s 16901 T
ESC ( s 4822 T
Secondary font typeface See primary font typeface list.ESC ) s [#] T1B 29 73 [#] 5427 41 115 [#] 84
Select font by ID #Primary font
Secondary font
ESC ( [#] X
ESC ) [#] X
1B 28 [#] 58
1B 29 [#] 58
Primary font selectedSI0F15
Secondary font selectedSO0E14
Font defaultPrimary font
Secondary font
Primary & secondary
font pitch (alternate
method)
10.00 pitch
16.67 pitch
12.00 pitch
ESC ( 3 @
ESC ) 3 @
ESC & k 0 S
ESC & k 2 S
ESC & k 4 S
1B 28 33 40
1B 29 33 40
1B 26 6B 30 53
1B 26 6B 32 53
1B 26 6B 34 53
FONT MANAGEMENT
Assign Font ID# = font ID number (0- 32767)ESC * c [#] D1B 2A 63 [#] 4427 42 99 [#] 68
Character and font
control
Delete all fonts
Delete all temporary fonts
Delete font with last ID #
Delete character with last ID #
Make font temporary
Make font permanent
Copy/assign font as temporary
ESC * c 0 F
ESC * c 1 F
ESC * c 2 F
ESC * c 3 F
ESC * c 4 F
ESC * c 5 F
ESC * c 6 F
Stop macro definition
Execute macro
Call macro
Enable auto macro overlay
Disable auto macro overlay
Delete all macros
Delete all temporary macros
Delete last specified macro
Make last macro temporary
Make last macro permanent
Disable
Disable
ESC * v 0 N
ESC * v 1 N
ESC * v 0 O
ESC * v 1 O
ESC * v 0 T
ESC * v 1 T
ESC * v 2 T
ESC * c [#] A
ESC * c [#] H
ESC * c [#] B
ESC * c [#] V
ESC * c 0 P
ESC * c 1 P
ESC * c 2 P
ESC * c 3 P
ESC * c 2 G
ESC * c 5 P
ESC * c 1 G
ESC * c 2 G
ESC * c 3 G
ESC * c 4 G
ESC * c 5 G
ESC * c 6 G
ESC & f 0 X
ESC & f 1 X
ESC & f 2 X
ESC & f 3 X
ESC & f 4 X
ESC & f 5 X
ESC & f 6 X
ESC & f 7 X
ESC & f 8 X
ESC & f 9 X
ESC & f 10 X
To ensure that PJL commands are properly recognized and processed, insert the
following command immediately before the first of a series of PJL commands:
<esc>%-12345X@PJL<CR><LF>
For example:
<esc>%-12345X@PJL
@PJL JOB NAME = “JOB1"
@PJL SET PAPER = LETTER
@PJL SET OUTBIN = UPPER
@PJL ENTER LANGUAGE = PCL
PCL Data<esc>E<esc>%-12345X@PJL
@PJL EOJ
<esc>%-12345X@PJL
@PJL JOB NAME = “JOB2"
@PJL SET PAPER = LEGAL
@PJL SET OUTBIN = LOWER
@PJL ENTER LANGUAGE = PostScript
%!PostScript Data^D<esc>%-12345X@PJL
@PJL EOJ
<esc>%-12345X
(If last entry, no <CR> <LF> following.)
JOB Command and Parameters
The JOB command informs the printer of the insert page information. The JOB
command parameter INSERT provides an insert status that directs the sheet to be blank.
The command parameter INSERTMEDIA can designate the insert media size, source,
and/or type for the following INSERT option, that would otherwise depend on the PDL
without this option.
The INSERTMEDIA and INSERT parameters can be set multiple times in the JOB
commands, but the total number of parameters in each PJL JOB command must be less
than seven (7). Refer to page 2-45 for the command syntax.
INSERTMEDIA=”media size, media source, media type”
INSERT=”sheet #1, sheet #2,,,”
* When CUSTOM is used, two numbers must indicate the paper dimensions, expressed in units of 1/72
inch. For example: @PJL JOB NAME-”sample” INSERTMEDIA=”CUSTOM,612,792,INSERT1”
INSERT=”1”
media type (PLAIN, RECYCLED, COLOR, PREPUNCHED,
LETTERHEAD, PREPRINTED, SPECIAL, OTHER, TRANSPARENCY,
LABEL, TRANSPARENCYPREPUNCHED)
Maximum 32 numeric characters, comma (,), and space ( ) enclosed in
double quotation marks. Maximum 4 digit page number parts divided by
comma.
HP PCL5e Language Printer Commands2-37
PJL Environment Variable Differences
The following describes the PJL environmental variable differences.
COPIES Environment Variable
The COPIES environment variable sets the number of uncollated copies for each page
of a job. The range of valid values is 1 to 65535 inclusive.
CLIP Environment Variable
ValueEdge to Edge Printing
ONDisable.
OFFEnable.
CMAPTBL Environment Variable
PJL environment vairables CMAPTBL 6 and CMAPTBL 7 hold the custom tray
mapping definition.
A custom tray mapping definition consists of a comma separated list of Tray Group
Codes. A Tray Group Code may optionally be proceeded by a repeat count and a colon
to define a sequence of identical mapping entries. The first value in the list corresponds
to the Paper Source control sequence with a parameter of 0. The next item in the list
corresponds to the Paper Source control sequence with a parameter of 1 and so on up
to 69. If an item in the list is empty or contains an invalid Tray Group Code it will be
replaced with a Tray Group Code of 0. The list may have a maximum of 70 entries and
a length of no longer than 72 characters. Excess entries will be discarded and undefined
entries will have a Tray Group Code of 0.
For example, if you want to change Custom Mapping 6 to be the same as its factory
default except you want the paper source control sequence <ESC>&l58H to select
either of the Publishing Finisher Trays, you would send the following PJL command
(refer to the table on page 2-12):
The DOCPASSWORD command is a PDF-specific PJL Variable. There are two
passwords available for PDF files:
User password - controls opening and/or printing of the file.
Owner password - controls printing/editing/annotating of the file.
When an encrypted PDF is presented to the printer, the “DOCPASSWORD” is
processed. The Owner password is checked first. If there is a match, then the document
will be printed. If the Owner password is not matched, the User password is checked.
If there is a match, the printing permissions are checked. The following table shows the
password combination printing results:
USER
PASSWORD
1YN---User Yes
2YYHRUserYe s
3NYHROwnerYe s
4NN---OwnerYes
5NN---UserYes
6YYHRUserYe s
7YYNoneUserNo
8YYNoneOwnerYes
9YN------No
10NYHR---Yes
11NYNone---No
12NYNoneOwnerYe s
---
No printing permissions set
HR
High Resolution printing allowed
None
No printing allowed
OWNER
PASSWORD
PRINT
PERMISSION
DOCPASSWORDPRINT?
HP PCL5e Language Printer Commands2-39
FINISH Environment Variable
Value
Staple ModeStaple PositionPublishing Finisher
NONEDisabledNoneNone
STAPLE0Enabled Front -
STAPLE1EnabledRear-
STAPLE2EnabledCenter-
STAPLE3--Saddle Stitch
Note: All other corner and edge staple positions provided by the Controller are for
Mercury driver use only.
FITTOMEDIA Environment Variable
NOTE:
Available in S/W v3.0 and above.
FITTOMEDIA is a PDF-specific PJL variable. Use the following syntax to make sure
the command is recognized by the PJL:
Finisher Option
@PJL SET LPARM:PDF FITTOMEDIA=OFF
@PJL SET LPARM:PDF FITTOMEDIA=ON
@PJL SET LPARM:PDF FITTOMEDIA=FORCE
VALUEPDF/TIFF Printing
OFFSelect the next larger paper size; do not scale the page to fit.
ONSelect the nearest available paper size; scale the page to fit.
FORCEFollow PJL PAPER command; scale page to fit the selected media.
AUTONot designated Not designated Not designated Not designated
LOWER
UPPER
OPTIONALOUTPUTBIN1
OPTIONALOUTPUTBIN4
LOWERFACEUP
UPPERFACEUP
OPTIONALOUTPUTBIN1FACEUP
OPTIONALOUTPUTBIN4FACEUP
ValuePublishing FinisherContainer Stacker
Engine Output
Tray Face down
Engine Output
Tray Face up
Finisher
(70 ppm only)
Elevator
TrayFace down
Upper Tray
Face down
Elevator Tray
Face up
Upper Tray
Face up
Standard
Finisher
(92 ppm only)
Elevator Tray
Face down
Upper Tray
Face down
Elevator Tray
Face up
Stacker 3
Face up
Booklet Finisher
(92 ppm only)
Elevator Tray Face
down
Upper Tray Face
down
Booklet Holder
Face down
Elevator Tray
Face up
Upper Tray
Face up
Booklet Holder
Face up
AUTONot designatedAuto cascade Face down
OPTIONALOUTPUTBIN4Booklet Stacker Face down
OPTIONALOUTPUTBIN5Stacker 5 Face down
OPTIONALOUTPUTBIN6Stacker 6 Face down
OPTIONALOUTPUTBIN7Stacker 7 Face down
OPTIONALOUTPUTBIN8Stacker 8 Face down
OPTIONALOUTPUTBIN0Sample Tray Face down
AUTOFACEUPAuto cascade Face up
OPTIONALOUTPUTBIN4FACEUP Booklet Stacker Face up
OPTIONALOUTPUTBIN5FACEUPStacker 5 Face up
OPTIONALOUTPUTBIN6FACEUPStacker 6 Face up
OPTIONALOUTPUTBIN7FACEUPStacker 7 Face up
OPTIONALOUTPUTBIN8FACEUPStacker 8 Face up
OPTIONALOUTPUTBIN0FACEUPSample Tray Face up
NOTE: All other values default to Auto.
2-42HP PCL5e Language Printer Commands
PAPER Environment Variable
Value Physical Media Size
LETTERLetter (8.5" x 11")
LEGALLegal (8.5" x 14")
A4A4 (210mm x 297mm)
LEDGERLedger (11" x 17")
A3A3 (297mm x 420mm)
EXECUTIVEExecutive (7.25’’ x 10.5’’)
A5A5 (149mm x 210mm)
STATEMENTStatement (8.5" x 5.5")
FOLIOFolio (8.5" x 13")
SUPERBSuperB (12” x 18”)
Universal or Custom. Media Size must be set to
CUSTOM
LETTER SEFLetter SEF (8.5” 11”)
A5SEFA5SEF (149mm x 210mm)
A4SEFA4SEF (210mm x 297mm)
Custom and physical media dimensions must be
entered through the operator panel or SNMP.
LETTERTABLetter Tab Stock (9” x 11”)
A4TABA4 Tab Stock (225mm x 297mm)
PDFORIENTATION Environment Variable
NOTE:
Available in S/W v3.0 and above.
This environment variable is used in PDF printing. It accepts the same values as PJL
ORIENTATION (PORTRAIT, LANDSCAPE, RPORTRAIT, RLANDSCAPE).
Setting PDFORIENTATION to either PORTRAIT or LANDSCAPE has the same
effect on the printed output. Similarly RPORTRAIT and RLANDSCAPE are treated
the same and are printed 180 degrees from PORTRAIT and LANDSCAPE. This feature
can be used to control which edge of the printed sheets is stapled.
Use the following Syntax:
@PJL SET LPARM:PDF PDFORIENTATION=PORTRAIT
@PJL SET LPARM:PDF PDFORIENTATION=LANDSCAPE
@PJL SET LPARM:PDF PDFORIENTATION=RPORTRAIT
@PJL SET LPARM:PDF PDFORIENTATION=RLANDSCAPE
QTY Environment Variable
The QTY environment variable sets the number of collated copies of a job. The range
of valid values is 1 to 65535 inclusive.
HP PCL5e Language Printer Commands2-43
TRIM Environment Variable
OFFNo trim
ONTrim
Publishing Finisher only. All other values
default to OFF.
File System Command
Value Description
Appends data to an existing file on the printer’s hard disk; if the file
does not exist, it is created with the data provided.
FSAPPEND
FSDOWNLOAD
Syntax:
@PJL FSAPPEND FORMAT:BINARY SIZE =
integer NAME = “filename” <CR><LF>
<binary data><esc>%-12345X
Downloads data to a file on the printer’s hard disk; if a file with the
same name exists, it is overwritten with the data provided.
Syntax:
@PJL FSDOWNLOAD FORMAT:BINARY SIZE =
integer NAME = “filename” <CR><LF>
<binary data><esc>%-12345X
Val uePublishing Finisher
Deletes a file from the printer’s hard disk.
FSDELETE
FSDIRLISTDisplalys a directory listing.
FSMKDIRCreates a directory.
FSQUERYDetermines if a file exists.
FSUPLOADUploads data from a file on the printer’s hard disk.
Syntax:
@PJL FSDELETE NAME = “filename” <CR><LF>
Maximum length of string value to the NAME option is 40 characters.
Valid values to the
NAME option are strings containing ASCII printable characters (0x20
0x7E hex, inclusive).
Trailing white spaces in string value to the
FORMAT modifier is ignored and not required; all file transfers are executed in binary
NAME option are discarded.
mode.
The integer value specifies the number of data bytes in <binary data>.
The range is 0 to (2
31
-1)
2-44HP PCL5e Language Printer Commands
HP 4000 Series Emulation PJL Command Summary
The following table lists the PJL commands supported by the printer.
CommandPJL CommandSupport ?
COMMENT
DEFAULT
DINQUIRE
ECHO
ENTER
EOJ
INFO*
@PJL COMMENT <words> [<CR>] <LF>
@PJL DEFAULT [LPARM : personality] variable = value [<CR>] <LF>
@PJL INQUIRE [LPARM : personality] variable
[<CR>] <LF> value <FF>
@PJL JOB [NAME = “job name”] [START = first page]
[END = last page] [INSERTMEDIA = “[media size,
media source, media type]”] [INSERT = ”sheet #n,
sheet #m,,,”][PASSWORD = number] [<CR>] <LF>
@PJL [<CR>] <LF>
@PJL RESET [<CR>] <LF>
@PJL SET [LPARM : personality] variable = value
[<CR>] <LF>
<ESC>%-12345x
@PJL USTATUS variable = value [<CR>] <LF>
Unsolicited Status Message returned when printer events occur.
@PJL USTATUS variable[<CR>] <LF> [1 or more
lines of printable characters or <WS>
followed by [<CR>] <LF>] <FF>
USTATUSOFF
@PJL USTATUSOFF [<CR>] <LF>
* INQUIRE PASSWORD is not supported.
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
HP PCL5e Language Printer Commands2-45
HP-GL/2 Differences
The following HP-GL/2 commands are not supported.
CommandDescription
MC [mode [, opcode] ] ;Merge control.
PP [mode] ;Pixel placement.
Disk Storage and Management of PCL Fonts and Macros
Disk storage and management of PCL resources such as fonts and macros require the
use of the new PJL file system commands defined in the LaserJet 5si PJL
implementation. These commands and their features related to supporting PCL fonts
and macros downloaded to the printer’s hard disk are briefly described below. Consult
the Printer Job Language Technical Reference Manual for more information.
The PJL File System Interface
n
The maximum number of characters in a file name is 40 characters; the minimum
number of characters is 1.
n
Only those printable ASCII characters in the range 0x20 and 0x7E (inclusive)
may be used in a file name.
The following subsections briefly describe each file system command.
FSAPPEND
This command appends incoming data to an existing named file. If the named file does
not exist on the printer’s hard disk, a file is created with the name provided and the
given data is stored in it.
FSDELETE
This command is used to delete a named file from the printer’s hard disk.
FSDOWNLOAD
This command creates a file in the printer’s hard disk with the name provided and stores
in it the given data. If a file with the name provided already exists on the printer’s hard
disk, this file is overwritten by the new one.
FSINIT
This command is used to initialize the printer’s hard disk. All user accessible files will
be erased.
Naming Disk Fonts and Forms
The PCL interpreter expects disk fonts and forms to be named in a certain fashion. That
is, each disk font should have “/fonts/” as the first part of its filename and each disk
form should have “/pcl/macros/” as the first part of its filename. Refer to the next
section “Example: Using the File System Commands” for examples.
2-46HP PCL5e Language Printer Commands
Format of Disk Fonts and Forms
Disk fonts created using the Mercury Font and Forms Installer are the correct format
for storing on the printer’s hard disk drive. See Chapter 1 for information on the Font
and Forms Installer.
Disk forms must be stored in PCL macro format without the ESC&f0X (Start Macro
Definition) and ESC&f1X (Stop Macro Definition) commands.
Consult the PCL 5 Printer Language Technical Reference Manual for more information
on the structure PCL soft fonts and macros.
Example: Using the File System Commands
Storing a Font on the Printer’s Hard Disk
The following PJL job stores a font in a file called “/fonts/myDiskFont” on the printer’s
hard disk:
ESC%-12345X@PJL
@PJL FSDOWNLOAD FORMAT:BINARY NAME =
“0:/fonts/myDiskFont” SIZE = 51200
<<< 50K of soft font data >>>ESC%-12345X
Storing a Form on the Printer’s Hard Disk
The following PJL job stores a simple form in a file called “/macros/myDiskForm” on
the printer’s hard disk:
ESC%-12345X@PJL
@PJL FSDOWNLOAD FORMAT:BINARY NAME =
“0:/pcl/macros/myDiskForm” SIZE = 33
ESC*p900x1500YThis is my Disk Form.ESC%-12345X
Removing Files from the Printer’s Hard Disk
Files can be removed from the printer’s hard disk by sending the PJL FSDELETE
command:
ESC%-12345X@PJL
@PJL FSDELETE NAME = “0:/fonts/myDiskFont”
@PJL FSDELETE NAME = “0:/pcl/macros/myDiskForm”
ESC%-12345X
Using PCL Fonts and Macros Stored on Disk
The primary interface to using PCL fonts and macros downloaded to the printer’s hard
disk is the new Alphanumeric ID command defined in the LaserJet 5si PCL5e
implementation. This command and its features related to supporting PCL fonts and
macros downloaded to the printer’s hard disk are described below. Consult the PCL 5 Comparison Guide for more information.
HP PCL5e Language Printer Commands2-47
The Alphanumeric ID Command
In general, the Alphanumeric ID command is used to manage, select and/or use PCL
fonts, macros and various media types by referring to these objects with a specified
string ID.
Command Syntax
ESC&n#W[operation byte][string data]
The maximum number of characters in a string data parameter is 99. This maximum
length plus 1 for the operation byte sets the maximum value (100) for the # parameter
which specifies the number of data bytes following the command.
The Alphanumeric ID command supports a number of different operations that
determine how to handle the string ID supplied to the command.
Set Current Font ID
The current font ID can be set to the given string data by specifying an operation byte
value of ^@ (control-@ or 0x00 hex). This is analogous to the Font ID [ESC * c # D]
command. Whereas the Font ID command sets the current font ID to a specified
numeric value, the Alphanumeric ID ^@ operation sets the current font ID to a specified
string value.
Associate Current Font ID
The current font ID can be associated to the font identified by the given string data by
specifying an operation byte value of ^A (control-A or 0x01 hex). The font ID currently
in effect could be a numeric value (as specified by the Font ID command) or a string value
(as specified by the Alphanumeric ID ^@ operation). An association is made between the
current font ID to the given string ID ( the string data parameter) such that selection
operations on the current font ID refer to the font identified by the string ID and
management operations refer to the original font identified by the current font ID.
Select Primary Font
The font associated to the given string ID (the string data parameter) can be selected as
the primary font by specifying an operation byte value of ^B (control-B or 0x02 hex).
This is analogous to the Primary Font Selection by ID [ESC ( # X] command. Whereas
the Primary Font Selection by ID command selects a primary font by specifying its
numeric ID, the Alphanumeric ID ^B operation selects a primary font by specifying its
string ID.
Select Secondary Font
The font associated to the given string ID (the string data parameter) can be selected as
the secondary font by specifying an operation byte value of ^C (control-C or 0x03 hex).
This is analogous to the Secondary Font Selection by ID [ESC ) # X] command.
Whereas the Secondary Font Selection by ID command selects a secondary font by
specifying its numeric ID, the Alphanumeric ID ^C operation selects a secondary font
by specifying its string ID.
2-48HP PCL5e Language Printer Commands
Set Current Macro ID
The current macro ID can be set to the given string data by specifying an operation byte
value of ^D (control-D or 0x04 hex). This is analogous to the Macro ID [ESC & f # Y]
command. Whereas the Macro ID command sets the current macro ID to a specified
numeric value, the Alphanumeric ID ^D operation sets the current macro ID to a
specified string value.
Associate Current Macro ID
The current macro ID can be associated to the macro identified by the given string data
by specifying an operation byte value of ^E (control-E or 0x05 hex). The macro ID
currently in effect could be a numeric value (as specified by the Macro ID command)
or a string value (as specified by the Alphanumeric ID ^D operation). An association
is made between the current macro ID to the given string ID (the string data parameter)
such that usage operations on the current macro ID refer to the macro identified by the
string ID and management operations refer to the original macro identified by the
current font ID.
Delete Font Association
The font association identified by the current font ID can be deleted by specifying an
operation byte value of ^T (control-T or 0x14 hex). Again, the font ID currently in
effect could be a numeric value (as specified by the Font ID command) or a string value
(as specified by the Alphanumeric ID ^@ operation). This command merely removes
the information associating the current font ID to a particular font. The font itself,
either in RAM or on disk, is not removed.
Delete Macro Association
The macro association identified by the current macro ID can be deleted by specifying
an operation byte value of ^U (control-U or 0x15 hex). Again, the macro ID currently
in effect could be a numeric value (as specified by the Macro ID command) or a string
value (as specified by the Alphanumeric ID ^D operation). This command merely
removes the information associating the current macro ID to a particular macro. The
macro itself, either in RAM or on disk, is not removed.
Example: Using a Disk Font or Macro
The role of the Alphanumeric ID command in the disk based PCL fonts and macros
feature centers on its ability to identify PCL resources by means of alphanumeric string
IDs. Although this is just another way of referring to some fonts and macros
downloaded to RAM, it provides a means by which fonts and macros downloaded to
the printer’s hard disk can be selected and/or used in subsequent PCL operations. This
is done with the Alphanumeric ID command by using the font or macro association
operation on the current font or macro ID to a disk font or macro resource and
specifying the disk resource’s file name as the command’s string ID parameter.
Selecting Disk Fonts
For example, when a user wants to use a font which has already been downloaded to
the printer’s hard disk (assume it is saved in a file named “/fonts/myDiskFont”), the
user must first associate that font with a new font ID.
HP PCL5e Language Printer Commands2-49
Set the current font ID to a new font ID called “myNewFontID”.
ESC&n12W^@myNewFontID
Associate the disk font contained in the file “/fonts/myDiskFont” to the current font ID
(in this case, it is “myNewFontID”)
ESC&n11W^AmyDiskFont
Select the disk font as the primary font by setting its associated name as the primary
font ID.
ESC&n12W^BmyNewFontID
All printable characters following this command should print in the disk font selected.
Selecting Disk Macros
Suppose then that a user wants to use a form which has already been downloaded to the
printer’s hard disk (assume it is saved in a file named “/macros/myDiskForm”). As in
using disk fonts, the user must first associate this disk form with a new macro ID.
Set the current macro ID to a new macro ID called “myNewMacroID”.
ESC&n13W^DmyNewMacroID
Associate the disk form contained in the file “/macros/myDiskForm” to the current
macro ID (in this case, it is “myNewMacroID”)
ESC&n11W^EmyDiskForm
At this point, whenever the current macro ID “myNewMacroID” is referenced, the disk
form contained in the file “/macros/myDiskForm” is invoked.
ESC&f2X(execute macro)
ESC&f3X(call macro) or
ESC&f4X(enable macro for automatic overlay)
or
Removing Font and Macro Associations
Disk font and macro associations can be explicitly removed by sending the
Alphanumeric ID ^T and ^U (Delete Font Association and Delete Macro Association)
operations.
Disk font and macro associations are automatically removed upon receipt of the Printer
Reset command (
ESCE).
2-50HP PCL5e Language Printer Commands
Overview
The Startup File increases the overall capability of the printer by allowing you to place
any required PCL soft fonts and/or macros in a single file to be processed each time the
printer starts the PCL Page Description Language. The file is stored on the printer’s
hard disk drive with a filename of /pcl/startup.
When the printer controller encounters a PCL data stream for the first time, it processes
the Startup File as if it were coming from a normal printer input port. The PCL Page
Description Language processes the PCL data stream contained in the Startup File in
the normal manner.
The data stream contains soft fonts and/or macros to be processed. During the
processing of the data stream, the soft fonts and/or macros are stored in the printer’s
RAM. These soft fonts and macros are then available to all PCL data streams sent to the
printer.
By using the Startup File, the host is no longer required to transmit any special data
streams to the printer in order to make soft fonts or macros available.
Chapter 3
Using the Startup File
PCL requires all soft fonts (*.sfp or *.sfs) to be used by a print data stream to reside in
RAM. From a user perspective, the application being run on the host assumes the
required internal and soft fonts are in RAM.
Soft fonts have an associated Font ID as well as the normal font attributes. Once
installed in RAM, you can select a soft font for use by ID or by attribute. For example,
to select a soft font by ID, use:
<esc>(nX
where n is the assigned soft font ID .
The following example selects the Postnet Bar Code soft font by attribute:
<esc>(15Y<esc>(s1p12.00v0s0b0T
Refer to “Startup File Examples” on page 3-3 for a sample of how the Postnet Bar Code
font can be stored in the Startup File, as well as the sample test job to be sent after a
power cycle.
Using the Startup File 3-1
Procedure to Install and Test a Soft Font
1. Order the font(s) in HP Soft Font format from a font vendor. (File type.sfp or.sfs.)
2. Build a job stream to load the soft font(s) in memory as permanent fonts. (Refer to
Example 1.)
Send the job stream to load the font in memory.
3. Build a job stream to test the font after being loaded into memory. (Refer to
Example 2.)
Send the test file.
4. Once the soft fonts are proved to print correctly, build the Startup File. (Refer to
Example 3.)
5. Send the Startup File to the printer.
6. Power cycle the printer.
7. To print a list of all printer fonts, make the following selections from the OCP:
Reports / Fonts
Page 7 of the Font List Report contains the soft fonts loaded via the Startup File.
8. Send the test file (from Step 3) to the printer and verify the output.
Procedure to Install and Test a Macro
1. Build a job stream to load the macro(s) in memory as permanent. (Refer to
Example 4.)
Send the job stream to load the macro in memory.
2. Build a job stream to test the macro after being loaded into memory. (Refer to
Example 5.)
Send the test file.
3. Once the macros are proved to process correctly, build the Startup File. (Refer to
Example 6.)
4. Send the Startup File (from Step 3) to the printer.
5. Power cycle the printer.
6. Send the test file (from Step 2) to the printer and verify the output.
3-2Using the Startup File
Startup File Examples
NOTE:
In the following examples, <esc> represents 0x1B.
Example 1: Loading a Single Font into RAM
The following command loads a single font into RAM.
<esc>E<esc>*cfontIDD<esc>)s100W
Where:
<esc>*cfontIDDassigns a unique font ID to the soft font.
<esc>)s100Wis the beginning of the actual HP standard soft font.
<esc>*c5Finforms PCL to make the soft font permanent in RAM
until a reset or power cycle.
To load multiple fonts into RAM, concatenate the individual files created (per the
example above) into a single file.
...more font data...<esc>*c5F<esc>E
Example 2: Testing the Postnet Font
The following job tests the Postnet font after it has been loaded into memory.
Printer Font Metric (PFM) 1-2
fixed spacing 2-18
font attributes 2-16
font description 1-6
font family 1-8
font file 1-6
font ID 1-5, 1-7, 2-22
font identification (ID) 1-5, 1-7, 2-22
font management 2-22
JOB command and parameters 2-37
job controls 2-4
jog 2-5
L
landscape orientation 2-9
M
macro controls 2-26
macro description 1-14
macro file 1-14
macro formats, supported 1-2
macro ID 1-14
Macro Information dialog 1-17
Index-1
macro name 1-14
margin controls 2-14
memory resident fonts 1-1, 1-7
memory resident macros 1-15
miscellaneous controls 2-26
Missing Font Information dialog 1-11