HP 800, 700 manual HP PCL Code Samples, Formatting Program Example, 116

Page 116

HP PCL Code Samples

14.0HP PCL Code Samples

The following pages contain PCL code samples that are intended to address some of the most commonly asked support questions. Key among these questions are coding general page for- matting, 4-plane color graphics, and using Configure Raster Data (CRD).

14.1Page Formatting Program Example

The following example is old, but covers the essential page formatting commands. While there is no one best way to write a page formatting program, you can use this example as a starting point. When performed in the order given, the set of commands prints the output shown in the figure at the end of the example.

The example assumes the following formatting objectives:

 

4

Select US Letter size paper

 

 

 

4

Select portrait page orientation

 

 

 

4

Set 3/4 in. top, left, and right margins

 

 

 

4

Set 11/4 in. bottom margin

 

 

 

4

Establish a header centered approximately in the middle of the top margin

 

4

Establish a footer 5/8 inch from the bottom of the paper

 

4

Set line spacing at 8 lpi

 

 

 

 

4

Use Letter Gothic and CG Times typefaces

 

 

 

 

 

 

 

 

 

!

 

No assumption is made as to the status of the configuration switches.

 

 

 

 

 

Command Line,

 

 

 

 

 

Action

 

Command

Comment

 

 

 

 

 

 

 

 

 

 

Reset Printer

 

Esc E

Returns the printer to its default

 

 

 

 

 

 

 

settings.

 

 

* Set Paper Size

 

Esc & l 2 A

Selects U.S. Letter size paper 8 1/2

 

 

 

 

 

 

 

X 11 in.

 

 

* Set Portrait

 

Esc & l 0 O

 

 

 

Orientation

 

 

 

 

 

Enable Perforation

 

Esc & l 1 L

Default top margin is 1/2 in.

 

 

Skip Mode

 

 

 

 

 

Set Line Spacing

 

Esc & l 8 D

8 lpi is used for page length and

 

 

 

 

 

 

 

margin calculations.

 

 

Specify Page Length

 

Esc & l 88 P

11 in. X 8 lpi = 88 lines

 

 

Set Top Margin

 

Esc & l 6 E

3/4 in. margin X 8 lpi = 6 lines

 

 

 

 

 

 

 

 

 

116

HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide

Image 116
Contents Hewlett-Packard Vancouver Site Preface and Printing History Printing HistoryAbout this Developer’s Guide Which printers are covered by this guide1Special Notes Special Note HP DeskJet 710C, 720C and 820C Series printersTable of Contents HP PCL Commands Fonts HP LaserJet Bitmap Character Definition Printer Commands Setting How This Developer’s Guide WorksLength set to 66 lines Length is set, in numberCommand Summary D Command Usage Table ECommand Options F Command Option Recognition Grid GDetailed Command Description Important PointWhat are Printer Commands? HP PCL CommandsIntroduction to HP PCL History of HP PCL Printer LanguageParameterized Escape Sequences Syntax of Escape SequencesTwo-Character Escape Sequences Esc & l 1 O Esc Text Area Logical Page, PhysicalLayout Current Active Position CAPCAP Position CAP Reference PointPrint Environment Merged Text and Graphics Follow Specifications Priority of Feature Set CommandsProgramming Hints Leverage from Previous ProgramsPriority of Commands Time SaversProgramming Hints HP PCL Commands Testing CommandsControl Codes and Special Character Codes Print ModesDisplay Functions Mode on Display Functions Mode OFFDisplay Functions turned on Display Functions turned offText Enhancements CR = CR LF = LF FF = FF CR = CR, LF LF = LF FF = FFCR = CR LF = CR, LF FF = CR = CR, LF LF = CR, LF FFEnd-of-Line Wrap Enables End-of-Line WrapDisables End-of-Line Wrap Reset Esc E Job ControlGray Balance Gray Balance Default ModesPrinter Control Dry Timer Dry Timer DefaultsEconoFast mode selected Print QualityNormal quality selected Best quality selectedPlain paper Bond paperSpecial paper HP Premium Inkjet PaperHP PCL Commands Printer Diagnostics Self-Test Esc zControl Length Line ValuesSize Size set to that indicatedBy value index in the following TablesValue Description Load z-fold media banners Print current page source isUnchanged Load from trayOrientation PortraitLandscape Reverse PortraitIncrements Horizontal Motion IndexNumber of 1/120 inch Vertical Motion Index Number of 1/48 inch incrementsBetween rows Out of range valuesLine Spacing Sets the number of lines printedPer inch Clear Horizontal MarginsLeft Margin Sets the left margin to the leftEdge of the specified column Right MarginLines-per-inch setting Top MarginTop margin is set to specified Number of lines at the currentDisables perforation skip mode Enables perforation skip modeSets length of the text area, Lines, from the top marginHP PCL Commands Horizontal Positioning Commands BackspaceCarriage Return SpaceFormfeed Horizontal TabMove CAP Horizontal Decipoints Moves CAP horizontally bySpecified number of decipoints InchSpecified number of columns LimitSpecified number of HP PCL UnitsHP PCL Commands Vertical Positioning Commands Move CAP Vertical RowsMoves CAP to the same Column position on a new lineAlong the vertical axis Move CAP Vertical DecipointsMoves CAP to a new position Move CAP Vertical HP PCL Units Moves CAP specified numberHP PCL units along the Y AxisFont Selection by Attribute Font Symbol SetFont Selection Symbol Set Name TIS TAPCI23 Fixed spacing Proportional spacingInter character spacing for Current font is setFont Height Height for current font is setApplied to font style request Specified characteristics areFont Style Matching Algorithm Book or text weight Ultra thinExtra thin ThinSelected Font Selection by IDFont with indicated ID is Font ID Esc * c # D Downloading FontsDownload Font Esc s # W font definition Download FontCharacter Code Download CharacterDelete all fonts temp Permanent, and softDelete all temporary fonts Temp, permanent, and softRaster Mode Commands Locked Out of Raster ModeCommands Allowed in Raster Mode Raster GraphicsPrinter returns to text mode Command processingStart graphics at logical Left boundary current verticalGraphics data printed at 75 dpi Graphics data printed at 100 dpiGraphics data printed at 150 dpi Graphics data printed at 300 dpiCurrent resolutiona Source Raster WidthRaster region width is set to Specified number of pixels atOffset Cursor is moved specifiedNumber of raster lines of vertical MovementRaster Data Transfer Specified number of bytesGraphics data for a single plane Data is set to the printer.Transfer Raster by Row/Block Following specified numberData bytes sent to the printer as DataRaster Compression Method 2 Tagged Image File Format Encoding Tiff revision Has precedence if it is met before the literal run countReplacement count 1 Left offset from the current byte O Method 3 Delta Row EncodingDelta ROW Example Method 9 Compressed Replacement Delta Row Encoding Row 1 Esc * b 3 m 2 W 00000001Row 2 Esc * b 2 W Row 3 Esc * b 5 W 000000000000111100100010101010101010Control Bit Control Bit =HP PCL Commands Color Single plane K palettePlanes, device CMY palette Planes, device RGB paletteWhite no ink Black Black/Yellow Black/Magenta Current palette Foreground ColorSpecified by the given index Planes per Row Index Color Planes per Row Index Color Printed Format FontsStandard Bitmap Font Definition Resolution-Specified Bitmap Font Definition Descriptor Format Ubyte Symbol Set Type UbyteFont Descriptor Size Uint Font Type Ubyte Style MSB UintBaseline Position Uint Cell Width UintCell Height Uint Orientation UbyteSymbol Set Uint Spacing BoolCharacter Set UINT16 Pitch UintStroke Weight Sbyte Height UintXHeight Uint Width Type SbyteTypeface LSB/MSB Ubyte Typeface Family ValueSerif Style Ubyte QualityPlacement Underline Position SbyteUnderline Thickness Ubyte Text Height UintFirst Code Uint Last Code/Number of Chars UintPitch Extended Ubyte Height Extended UbyteResolution Uint Cap Height UintFont Number Uint Font Name ASC16Copyright Font Scaling TechnologySegment Size 102103 Bitmap Resolution SegmentResolution UINT16 Stroke Weight UINT32 Character Enhancement SegmentStyle UINT32 104Sizing UINT16 105Dual-Pitch-Space Char Segment Full-Width-Space Character Code UINT16Half-Width-Space Character Code 106107 HP LaserJet Bitmap Character DefinitionFormat Ubyte Continuation Bool Descriptor Size UbyteClass Ubyte 108109 Class 2 Compressed Bitmap Character Data 110 Left Offset Sint Top Offset SintCharacter Width Uint Character Height Uint112 Delta X SintCharacter Data 113 Banner PrintingEsc & l # H Command Sequence MarginsMoving to a New Logical Unloading Continuous MediaPower-On with Continuous Media Power-Off with Continuous MediaSample HP PCL for a Banner Print Job Printing Cutsheet with Z-Fold Media116 HP PCL Code SamplesFormatting Program Example 117 Commands Sent to Printer 11814.3 3-Plane Color Graphics 11914.4 4-Plane Color Graphics 120121 Printer Commands 122123 Other Resources for Assistance HP Developer ExchangeComments & Feedback 124
Related manuals
Manual 246 pages 32.59 Kb Manual 34 pages 38.92 Kb Manual 222 pages 2.69 Kb Manual 40 pages 59.65 Kb Manual 48 pages 4.46 Kb Manual 204 pages 53.59 Kb Manual 2 pages 13.44 Kb

800, 700 specifications

The HP 700 is a noteworthy addition to HP's lineup of enterprise-level printers, designed specifically to meet the demands of small to medium-sized businesses. With an emphasis on speed, efficiency, and high-quality printing, the HP 700 series has carved a niche for itself in the competitive printing market.

One of the standout features of the HP 700 is its impressive print speed, which can reach up to 40 pages per minute. This rapid output ensures that businesses can keep up with their demanding workloads without sacrificing quality. The printer also offers a fast first-page-out time, allowing users to access their prints more quickly, which is especially beneficial in busy office environments.

Connectivity is another important aspect of the HP 700 series. The printer supports multiple connectivity options, including USB, Ethernet, and Wi-Fi, allowing for versatile integration into existing office networks. The inclusion of mobile printing capabilities enhances user experience; employees can print directly from their smartphones or tablets using HP's Mobile Print Solutions, making it easier to meet on-the-go printing needs.

The HP 700 is equipped with advanced security features, such as secure boot and firmware integrity checking, ensuring that sensitive documents remain protected against unauthorized access. Additionally, it includes features like PIN printing, which provides an extra layer of security by requiring users to enter a PIN before their documents are released for printing.

In terms of sustainability, the HP 700 is designed with energy efficiency in mind. It employs HP’s EcoSmart Black Toner technology, which not only delivers exceptional print quality but also contributes to lower energy consumption and reduced environmental impact. The printer is also compatible with HP's Cartridge Recycling program, allowing businesses to responsibly dispose of used toner cartridges.

The print resolution of the HP 700 series is another strong selling point, offering up to 1200 x 1200 dpi. This high resolution ensures that text and images come out crisp and clear, making it suitable for a wide range of applications, from professional documents to vibrant marketing materials.

In summary, the HP 700 series combines high-speed printing, versatile connectivity, robust security features, and energy efficiency, all while delivering exceptional print quality. These attributes make it an ideal choice for businesses looking to enhance their productivity and streamline their printing processes. Whether for day-to-day operations or specialized tasks, the HP 700 stands out as a reliable and efficient printing solution.