HP OpenVMS Systemsask the wizard |
The Question is: How do I configure a LN17 to print in landscape? The Answer is :
With the OpenVMS DCPS package installed for Postscript printing (and
with supported Postscript printers), you can use PRINT qualifiers such
as: /PARAMETER=(PAGE_ORIENTATION=LANDSCAPE). This assumes this LN17
is the Postscript variant.
With a PCL-compatible printing device, the sequences used to control
portrait and landscape orientation are organized as follows:
Esc & l Ps O
Where Esc is the ASCII escape character, the ampersand character, a
lowercase l, the selector, and an uppercase O character. Ps is the
selector; Ps is the character 0 for Portrait and 1 for Landscape.
There are no space characters in this sequence. As with various
similar mechanisms, these sequences are often case-sensitive.
This sequence assumes a PCL printer, and various LN17 printers use PCL.
For information on printer device control libraries, please see topics
such as (1020), and see the related referenced topics.
A PCL command reference follows:
--
PCL Command Summary
Table 1: Commands listed by function
Command strings are shown separated by spaces for ease in reading.
_____________________________________________________________________
Duplex and Tray Selection
_____________________________________________________________________
<esc>& l Ps S Simplex/duplex mode
Ps = 0 Simplex
Ps = 1 Duplex, long edge binding
Ps = 2 Duplex, short edge binding
<esc>& a Ps G Duplex Page Side Selection
Ps = 0 Select the next side
Ps = 1 Select the front side
Ps = 2 Select the back side
<esc>& l Ps H Paper Source
Ps = 0 Print the current page
Ps = 1 Upper tray
Ps = 2 Manual Input paper
Ps = 3 Manual input envelope
Ps = 4 Lower tray
_____________________________________________________________________
Sheet size and margins
_____________________________________________________________________
<esc>& l Ps A Page Size
Ps = 1 Executive 7.25 x 10.5 inches
Ps = 2 Letter 8.5 x 11 inches
Ps = 3 Legal 8.5 x 14 inches
Ps = 26 A4 210mm x 297mm
Ps = 80 Monarch Envelope 3 7/8 x 7 1/2 inches
Ps = 81 Commercial Size 10/ 4 1/8 x 9 1/2 inches
Ps = 90 International DL 110mm x 220mm
Ps = 91 International C5 162mm x 229mm
<esc>& l Pn P Page Length
Pn = Number of Lines
<esc>& a Pn L Left Margin
Pn = Column Number
<esc>& a Pn M Right Margin
Pn = Column Number
<esc>& 9 Clear Left And Right Margins
<esc>& l Pn E Top Margin
Pn = Number of Lines
<esc>& l Pn F Text Length
Pn = Number of Lines
<esc>& l Ps L Perforation Region
Ps = 0 Disable
Ps = 1 Enable
<esc>& l Pn U Left Offset Registration
Pn = Number of decipoints to shift the logical
page across the width of the physical page.
<esc>& l Pn Z Top Offset Registration
Pn = Number of decipoints to shift the logical
page down the length of the physical page.
section title 1
PCL Command Summary
Table 1 (Cont.): Commands listed by function
_____________________________________________________________________
Type size and spacing, managing implicit cursor motion
_____________________________________________________________________
<esc>& s Ps C End of line Wrap
Ps = 0 Enables end of line wrap
Ps = 1 Disables end of line wrap
<esc>& k Ps G Line Termination
Ps = 0 CR -> CR; LF -> LF; FF -> FF
Ps = 1 CR -> CRLF; LF -> LF; FF -> FF
Ps = 2 CR -> CR; LF -> CRLF; FF -> CRFF
Ps = 3 CR -> CRLF; LF -> CRLF; FF -> CRFF
<esc>& k Pn H Horizontal Motion Index
Pn = Number of 1/120 inch increments
<esc>& l Pn C Vertical Motion Index
Pn = Number of 1/48 inch increments
<esc>& l Pn D Line Spacing
Pn = 1 Lines Per Inch
Pn = 2 " " "
Pn = 3 " " "
Pn = 4 " " "
Pn = 6 " " "
Pn = 8 " " "
Pn = 12 " " "
Pn = 16 " " "
Pn = 24 " " "
Pn = 48 " " "
<esc>( s Ps P Primary Spacing
<esc>) s Ps P Secondary Spacing
Ps = 0 Fixed Spacing
Ps = 1 Proportional Spacing
<esc>( s Pn H Primary Pitch
<esc>) s Pn H Secondary Pitch
Pn = Number of characters per inch
<esc>) s Pn V Primary Height
<esc>) s Pn V Secondary Height
Pn = Height in points
_____________________________________________________________________
Font management and attribute selection
_____________________________________________________________________
<esc>( s Ps S Primary Style
<esc>) s Ps S Secondary Style
Ps = 0 Upright
Ps = 1 Italic
<esc>( s Ps B Primary Stroke weight
<esc>) s Ps B Secondary Stroke weight
Ps = -3 Light
Ps = 0 Medium or Book
Ps = +3 Bold
2 section title
PCL Command Summary
Table 1 (Cont.): Commands listed by function
_____________________________________________________________________
Font management and attribute selection (Cont.)
_____________________________________________________________________
<esc>& d Ps D Enable Underline
Ps = 0 Fixed Position
Ps = 3 Floating Position
<esc>& d @ Disable Underline
<esc>( s Ps T Primary Typeface
<esc>) s Ps T Secondary Typeface
Ps = 0 Line Printer
Ps = 3 Courier
Ps = 4 Helvetica
Ps = 5 Times-Roman
Ps = 6 Letter Gothic
Ps = 8 Prestige
Ps = 11 Presentation
Ps = 45 ITC Zapf Dingbats**
Ps = 52 Univers**
**These typeface names are registered trademarks of a third party
<esc>( 3 @ Default Primary Font Characteristics
<esc>) 3 @ Default Secondary Font Characteristics
<esc>* c Pn D Font ID (This font number used for subsequent
actions such as delete, load, make permanent)
Pn = Font ID Number
<esc>* c Ps F Font Control
Ps = 0 Delete All Soft Fonts
Ps = 1 Delete All Temporary Soft Fonts
Ps = 2 Delete Soft Font (Last ID Specified)
Ps = 3 Delete Character Code
(Last Character Code and ID Specified)
Ps = 4 Make Soft Font Temporary
(Last ID Specified)
Ps = 5 Make Soft Font Permanent
(Last ID Specified)
Ps = 6 Copy/Assign Current Invoked Font as
Temporary (Last ID Specified)
<esc>& p Pn X Transparent Print Data
Pn = Number of Bytes of Transparent Data
<esc>( Pn X Font Selection by ID - Primary
<esc>) Pn X Font Selection by ID - Secondary
Pn = Font ID Number
<esc>) s Pn W [font descriptor]
Font Descriptor Command
Pn = Number of bytes in the font descriptor
<esc>* c Pn E Character Code Command
Pn = Character code, decimal
<esc>( s Pn W [character descriptor and data]
Character Descriptor and Data Command
Pn = Number of bytes in the character descriptor
& data
section title 3
PCL Command Summary
Table 1 (Cont.): Commands listed by function
_____________________________________________________________________
Selecting character sets
_____________________________________________________________________
<esc>( Ps Symbol Set - Primary, Ps = set number
<esc>) Ps Symbol Set - Secondary, Ps = set number
Symbol Set Name Symbol Set Number
BarCode 3of9 0Y
DeskTop 7J
DownLoad Font n nX
ECMA-94 Latin 1 0N
EAN/UPC 8Y
*HP German 0G
HP Legal 1U
HP Line Draw 0B
HP Math-7 0A
HP Math-8 8M
HP Pi Font 15U
HP Roman-8 8U
*HP Spanish 1S
ISO 2 Interntl Refer Vers 2U
ISO 4 UK 1E
ISO 6 ASCII 0U
ISO 10 Swedish 3S
ISO 11 Swedish 0S
ISO 14 JIS ASCII 0K
ISO 15 Italian 0I
ISO 16 Portuguese 4S
ISO 17 Spanish 2S
ISO 21 German 1G
ISO 25 French 0F
ISO 57 Chinese 2K
ISO 60 Norwegian version 1 0D
ISO 61 Norwegian version 2 1D
ISO 69 French 1F
ISO 84 Portuguese 5S
ISO 85 Spanish 6S
OCR A 0O
OCR B 1O
PC Line 4Q
PC-8 10U
PC-8 (Danish/Norwegian) 11U
PC 850 12U
Z-Bats 11L
ZipCode 15Y
*Not recommended for future use
4 section title
PCL Command Summary
Table 1 (Cont.): Commands listed by function
_____________________________________________________________________
Explicit cursor movement
_____________________________________________________________________
<esc>& a Pn C Horizontal Cursor Positioning - Columns
Pn = Number of Columns
<esc>& a Pn H Horizontal Cursor Positioning - Decipoints
Pn = Number of Decipoints (1/720 inch)
<esc>* p Pn X Horizontal Cursor Positioning - Dots
Pn = Number of Dots
<esc>& a Pn R Vertical Cursor Positioning - Rows
Pn = Number of Rows
<esc>& a Pn V Vertical Cursor Positioning - Decipoints
Pn = Number of Decipoints (1/720 inch)
<esc>* p Pn Y Vertical Cursor Positioning - Dots
Pn = Number of Dots
<esc>= Half-Line Feed (down)
<esc>& f Ps S Push/Pop Cursor Position
Ps = 0 Push (Store Cursor Position)
Ps = 1 Pop (Recall Cursor Position)
_____________________________________________________________________
Raster Graphics
_____________________________________________________________________
<esc>* t Pn R Raster Graphics Resolution
Pn = Dots per inch, 75, 100, 150, or 300.
<esc>* r Ps F Raster Graphics Presentation Mode
Ps = 0 Raster Graphics will be printed in the
orientation of the logical page.
Ps = 3 Raster Graphics will be printed along the
width of the physical page, regardless of
logical page orientation.
<esc>* b Ps M Set Compression Mode
PS = 0 Not Encoded (Binary)
PS = 1 Run Length Encoding
PS = 2 Tagged Image File Format
<esc>* r Ps A Start Raster Graphics
Ps = 0 Left graphics margin is x-position 0
Ps = 1 Left graphics margin is current x-position
<esc>* b Pn W [raster data]
Transfer Raster Data
Pn = Number of bytes in the raster row.
<esc>* r B End Raster Graphics
section title 5
PCL Command Summary
Table 1 (Cont.): Commands listed by function
_____________________________________________________________________
Rectangles
_____________________________________________________________________
<esc>* c Pn H Horizontal Rectangle Size - Decipoints
Pn = Number of Decipoints
<esc>* c Pn A Horizontal Rectangle Size - Dots
Pn = Number of Dots
<esc>* c Pn V Vertical Rectangle Size - Decipoints
Pn = Number of Decipoints
<esc>* c Pn B Vertical Rectangle Size - Dots
Pn = Number of Dots
<esc>* c Ps P Fill Rectangle Area
Ps = 0 Solid Fill
Ps = 2 Shaded Fill
Ps = 3 HP defined pattern fill
<esc>* c Ps G Area Fill Id
Ps = 1 - 6 Pattern number to use for fill
Ps = 1 - 100 level of shading to use for fill.
_____________________________________________________________________
Macros
_____________________________________________________________________
<esc>& f Pn Y Macro ID (This number used for subsequent macro
commands)
Pn = Macro ID number
<esc>& f Ps X Macro Control (Use Last ID Specified)
Ps = 0 Start macro definition
Ps = 1 Stop macro definition
Ps = 2 Execute macro
Ps = 3 Call macro
Ps = 4 Enable macro for automatic overlay
Ps = 5 Disable automatic overlay
Ps = 6 Delete all macros
Ps = 7 Delete all temporary macros
Ps = 8 Delete macro (Last ID Specified)
Ps = 9 Make macro temporary
Ps = 10 Make macro permanent
_____________________________________________________________________
Miscellaneous
_____________________________________________________________________
<esc>& l Pn X Number of Copies
Pn = the number
<esc>& l Ps O Orientation
Ps = 0 Portrait
Ps = 1 Landscape
<esc> Y Enables Display Functions Mode
<esc> Z Disables Display Functions Mode
6 section title
PCL Command Summary
Table 1 (Cont.): Commands listed by function
_____________________________________________________________________
Resets and Emulation Mode Changes
_____________________________________________________________________
<esc>E Reset
<esc>@ Emulation Mode Reset
<esc>% @ Return to DEC mode
<esc>[ ? 58 l DECIPEM
<esc>[ ! p DECSTR
<esc>%> LJ11 mode
<esc>%8 LJ11D mode
<esc>%? LJ11P mode
<esc>%= X24E mode
<esc>[?58h X24E mode
section title 7
PCL Command Summary
Commands in Alphabetical Order by Final Character
_____________________________________________________________________
Table 2: ESC Sequences Sorted by Final Character
_____________________________________________________________________
Coding Name
_____________________________________________________________________
<esc>& l Ps A Page Size
Ps = 1 Executive 7.25 x 10.5 inches
Ps = 2 Letter 8.5 x 11 inches
Ps = 3 Legal 8.5 x 14 inches
Ps = 26 A4 210mm x 297mm
Ps = 80 Monarch Envelope 3 7/8 x 7 1/2 inches
Ps = 81 Commercial Size 10/4 1/8 x 9 1/2 inches
Ps = 90 International DL 110mm x 220mm
Ps = 91 International C5 162mm x 229mm
<esc>* c Pn A Horizontal Rectangle Size - Dots
Pn = Number of Dots
<esc>* r Ps A Start Raster Graphics
Ps = 0 Left graphics margin is x-position 0
Ps = 1 Left graphics margin is current x-position
<esc>( s Ps B Primary Stroke weight
<esc>) s Ps B Secondary Stroke weight
Ps = -7 Ultra Thin
Ps = -5 Thin
Ps = -3 Light
Ps = 0 Medium or Book
Ps = +3 Bold
Ps = +5 Black
Ps = +7 Ultra Black
<esc>* c Pn B Vertical Rectangle Size - Dots
Pn = Number of Dots
<esc>* r B End Raster Graphics
<esc>& a Pn C Horizontal Cursor Positioning - Columns
Pn = Number of Columns
<esc>& l Pn C Vertical Motion Index
Pn = Number of 1/48 inch increments
<esc>& s Ps C End of line Wrap
Ps = 0 Enables end of line wrap
Ps = 1 Disables end of line wrap
<esc>& d Ps D Enable Underline
Ps = 0 Fixed Position
Ps = 3 Floating Position
<esc>& l Pn D Line Spacing
Pn = 1 Lines Per Inch
Pn = 2 " " "
Pn = 3 " " "
Pn = 4 " " "
Pn = 6 " " "
Pn = 8 " " "
Pn = 12 " " "
Pn = 16 " " "
Pn = 24 " " "
Pn = 48 " " "
8 section title
PCL Command Summary
Table 2 (Cont.): ESC Sequences Sorted by Final Character
_____________________________________________________________________
Coding Name
_____________________________________________________________________
<esc>* c Pn D Font ID (This font number used for subsequent
actions such as delete, load, make permanent)
Pn = Font ID Number
<esc>E Reset
<esc>& l Pn E Top Margin
Pn = Number of Lines
<esc>* c Pn E Character Code Command
Pn = Character code, decimal
<esc>& l Pn F Text Length
Pn = Number of Lines
<esc>* c Ps F Font Control
Ps = 0 Delete All Soft Fonts
Ps = 1 Delete All Temporary Soft Fonts
Ps = 2 Delete Soft Font (Last ID Specified)
Ps = 3 Delete Character Code
(Last ID and Character Code Specified)
Ps = 4 Make Soft Font Temporary (Last ID Specified)
Ps = 5 Make Soft Font Permanent (Last ID Specified)
Ps = 6 Copy/Assign Current Invoked Font as
Temporary (Last ID Specified)
<esc>* r Ps F Raster Graphics Presentation Mode
Ps = 0 Raster Graphics will be printed in the
orientation of the logical page.
Ps = 3 Raster Graphics will be printed along the
width of the physical page, regardless of
logical page orientation.
<esc>& a Ps G Duplex Page Side Selection
Ps = 0 Select the next side
Ps = 1 Select the front side
Ps = 2 Select the back side
<esc>& k Ps G Line Termination
Ps = 0 CR -> CR; LF -> LF; FF -> FF
Ps = 1 CR -> CRLF; LF -> LF; FF -> FF
Ps = 2 CR -> CR; LF -> CRLF; FF -> CRFF
Ps = 3 CR -> CRLF; LF -> CRLF; FF -> CRFF
<esc>* c Ps G Area Fill Id
Ps = 1 - 6 Pattern number to use for fill
Ps = 1 - 100 level of shading to use for fill.
<esc>& a Pn H Horizontal Cursor Positioning - Decipoints
Pn = Number of Decipoints (1/720 inch)
<esc>& k Pn H Horizontal Motion Index
Pn = Number of 1/120 inch increments
<esc>& l Ps H Paper Source
Ps = 0 Print the current page
Ps = 1 Upper tray
Ps = 2 Manual Input paper
Ps = 3 Manual input envelope
Ps = 4 Lower tray
Ps = 6 Envelope feeder
section title 9
PCL Command Summary
Table 2 (Cont.): ESC Sequences Sorted by Final Character
_____________________________________________________________________
Coding Name
_____________________________________________________________________
<esc>( s Pn H Primary Pitch
<esc>) s Pn H Secondary Pitch
Pn = Number of characters per inch
<esc>* c Pn H Horizontal Rectangle Size - Decipoints
Pn = Number of Decipoints
<esc>& a Pn L Left Margin
Pn = Column Number
<esc>& l Ps L Perforation Region
Ps = 0 Disable
Ps = 1 Enable
<esc>& a Pn M Right Margin
Pn = Column Number
<esc>& l Ps O Orientation
Ps = 0 Portrait
Ps = 1 Landscape
<esc>& l Pn P Page Length
Pn = Number of Lines
<esc>( s Ps P Primary Spacing
<esc>) s Ps P Secondary Spacing
Ps = 0 Fixed Spacing
Ps = 1 Proportional Spacing
<esc>* c Ps P Fill Rectangle Area
Ps = 0 Solid Fill
Ps = 2 Shaded Fill
Ps = 3 HP defined pattern fill
<esc>& a Pn R Vertical Cursor Positioning - Rows
Pn = Number of Rows
<esc>* t Pn R Raster Graphics Resolution
Pn = dots per inch, 75, 100, 150, or 300.
<esc>& f Ps S Push/Pop Cursor Position
Ps = 0 Push (Store Cursor Position)
Ps = 1 Pop (Recall Cursor Position)
<esc>& l Ps S Simplex/duplex mode
Ps = 0 Simplex
Ps = 1 Duplex, long edge binding
Ps = 2 Duplex, short edge binding
<esc>( s Ps S Primary Style
<esc>) s Ps S Secondary Style
Ps = 0 Upright
Ps = 1 Italic
<esc>( s Ps T Primary Typeface
<esc>) s Ps T Secondary Typeface
Ps = 0 Line Printer
Ps = 3 Courier
Ps = 4 Helvetica
Ps = 5 Times-Roman
Ps = 6 Letter Gothic
Ps = 8 Prestige
Ps = 11 Presentations
Ps = 45 ITC Zapf Dingbats**
**These typeface names are registered trademarks of a third party
10 section title
PCL Command Summary
Table 2 (Cont.): ESC Sequences Sorted by Final Character
_____________________________________________________________________
Coding Name
_____________________________________________________________________
<esc>& l Pn U Left Offset Registration
Pn = Number of decipoints to shift the logical
page across the width of the physical page.
<esc>& a Pn V Vertical Cursor Positioning - Decipoints
Pn = Number of Decipoints (1/720 inch)
<esc>) s Pn V Primary Height
<esc>) s Pn V Secondary Pitch
Pn = Height in points
<esc>* c Pn V Vertical Rectangle Size - Decipoints
Pn = Number of Decipoints
<esc>) s Pn W [font descriptor] Font Descriptor Command
Pn = Number of bytes in the font descriptor
<esc>( s Pn W [character descriptor and data]
Character Descriptor and Data Command
Pn = Number of bytes in the character descriptor
& data
<esc>* b Pn W [raster data] Transfer Raster Data
Pn = Number of bytes in the raster row.
<esc>& f Ps X Font Control (Use Last ID Specified)
Ps = 0 Start macro definition
Ps = 1 Stop macro definition
Ps = 2 Execute macro
Ps = 3 Call macro
Ps = 4 Enable macro for automatic overlay
Ps = 5 Disable automatic overlay
Ps = 6 Delete all macros
Ps = 7 Delete all temporary macros
Ps = 8 Delete macro (Last ID Specified)
Ps = 9 Make macro temporary
Ps = 10 Make macro permanent
<esc>& l Pn X Number of copies where Pn is replaced by the number
<esc>& p Pn X Transparent Print Data
Pn = Number of Bytes of Transparent Data
<esc>( Pn X Font Selection by ID - Primary
<esc>) Pn X Font Selection by ID - Secondary
Pn = Font ID Number
<esc>* p Pn X Horizontal Cursor Positioning - Dots
Pn = Number of Dots
<esc> Y Enables Display Functions Mode
<esc>& f Pn Y Macro ID (This number used for subsequent macro
commands)
Pn = Macro ID number
<esc>* p Pn Y Vertical Cursor Positioning - Dots
Pn = Number of Dots
<esc> Z Disables Display Functions Mode
<esc>& l Pn Z Top Offset Registration
Pn = Number of decipoints to shift the logical
page down the length of the physical page.
<esc>= Half-Line Feed (down)
<esc>( 3 @ Default Primary Font Characteristics
<esc>) 3 @ Default Secondary Font Characteristics
section title 11
PCL Command Summary
Table 2 (Cont.): ESC Sequences Sorted by Final Character
_____________________________________________________________________
Coding Name
_____________________________________________________________________
<esc>& 9 Clear Left And Right Margins
<esc>( Ps Symbol Set - Primary, Ps = set number
<esc>) Ps Symbol Set - Secondary, Ps = set number
Symbol Set Name Symbol Set Number
HP Math-7 0A
HP Line Draw 0B
ISO 60 Norwegian version 1 0D
ISO 61 Norwegian version 2 1D
ISO 4 UK 1E
ISO 25 French 0F
ISO 69 French 1F
*HP German 0G
ISO 21 German 1G
ISO 15 Italian 0I
DeskTop 7J
ISO 14 JIS ASCII 0K
ISO 57 Chinese 2K
Z-Bats 11L
HP Math-8 8M
ECMA-94 Latin 1 0N
OCR A 0O
OCR B 1O
PC Line 4Q
Special xQ
ISO 11 Swedish 0S
*HP Spanish 1S
ISO 17 Spanish 2S
ISO 10 Swedish 3S
ISO 16 Portuguese 4S
ISO 84 Portuguese 5S
ISO 85 Spanish 6S
ISO 6 ASCII 0U
HP Legal 1U
ISO 2 Interntl Refer Vers 2U
HP Roman-8 8U
PC-8 10U
PC-8 (Danish/Norwegian) 11U
PC 850 12U
HP Pi Font 15U
DownLoad Font n nX
BarCode 3of9 0Y
EAN/UPC 8Y
ZipCode 15Y
Reserved xY
*Not recommended for future use
|