Copying or other reproduction of all or part of this manual, the computer programs, or any other copyrightable subject matter without the prior written consent of Kyocera Mita Corporation is prohibited. Any copies made of all or part of this manual, the computer programs, or any other copyrightable subject must contain the same copyright notice as the material from which the copying is done.
more than three printing systems, you need to acquire a multi-user license agreement which can be obtained from Agfa Japan. Agfa Japan retains all rights, title and interest to the Software and Typefaces and no rights are granted to you other than a License to use the Software on the terms expressly set forth in this Agreement. To protect proprietary rights of Agfa Japan, you agree to maintain the Software and other proprietary information con- cerning the Typefaces in strict confidence and to establish reasonable procedures regulating access to and use of the Software and Typefaces.
Introduction This manual contains information needed to use the firmware features provided by the Kyocera printing system. Among these features is PRESCRIBE, a highly accessible, human-readable command language that makes it easy for programmers to take full advantage of the printing system’s capability.
About the Technical Reference manual The Technical Reference manual is organized into eight chapters. The first four chapters of this manual constitute an tutorial introduction to PRESCRIBE. The rests mainly con- cern advanced utilities and setups: Chapter 1 Introduction to PRESCRIBE introduces some basic concepts of PRESCRIBE. Chapter 2 Graphics Tutorial outlines the graphic handling features of PRESCRIBE.
Table of Contents General Infomation ........................... i Introduction.............................iii Introduction to PRESCRIBE Format of PRESCRIBE Commands ....................1-4 Basic Concepts............................1-4 Edge Limits ..........................1-4 Margins ............................1-4 Page Orientation and Direction ....................1-5 Coordinate Systems ........................1-7 Text Positioning ...........................1-7 Character Spacing ........................1-8 Paths .............................1-9 Logical Page and Physical Page ....................1-9 Command Parameters .........................1-10 Numeric Parameters ........................1-10 Character Strings ........................1-11...
Font Selection ............................4-7 Font Selection by PRESCRIBE Commands ................4-7 Placement of Font Commands ....................4-11 Creation of New Symbols and Characters ..................4-12 Symbol Set............................4-13 International Characters......................4-14 Selecting HP Symbol Sets ......................4-14 Barcodes PDF417 Symbol Description...................... 5-10 Printing a Two-dimensional Barcode ..................
Chapter 1 Introduction to PRESCRIBE PRESCRIBE is the native language of the Kyocera printing systems including copiers (collectively referred to as printing systems hereafter). Consisting of easily remembered commands, such as ‘SLM’ for Set Left Margin, and ‘BOX’ to draw a box, it gives you the capability to control line and character spacing, adjust margins, change fonts, posi- tion text, draw graphics, and print multiple copies of each page.
Chapter 1 Introduction to PRESCRIBE Entry and Exit The printing system can be thought of as having a multiple personality. When its power is switched on, it performs the normal printing system functions of printing out files and other data. Application software can control the printing system using one of the seven emulations.
Figure 1. 2. Text Including PRESCRIBE Commands !R! RES; SLM 1; STM 1; SPD 0.03; FTMD 13; SFNT "Helvetica-Bd"; EXIT; WELCOME TO WINDFALL NATIONAL PARK !R! SFNT "Times-Rom"; EXIT; The park entrance is located in the rolling hills of the Northern Woods, a forested area abundant in deer, elk, squirrel, rabbit, opossum, lynx, wolf, and other wildlife.
Chapter 1 Introduction to PRESCRIBE Format of PRESCRIBE Commands The basic format of a PRESCRIBE command is: • • • or • • • • (command name) parameter, ..., parameter; The command names generally consist of three or four letters. In most commands, the parameters must be followed by commas.
Basic Concepts Figure 1. 4. Edge Limits and Margins Edge limits in HP emulation Portrait Orientation Edge limits in HP emulation Landscape orientation When the printing system passes the bottom margin while printing text, it prints the page and feeds to the next page. Spacing is carried over, so if the bottom margin does not occur at an exact number of lines, excess space is printed at the top of the next page.
Chapter 1 Introduction to PRESCRIBE Page Orientation Changing the page orientation automatically adjusts the margins so that they remain the same distance from the four edges of the paper. If the printing system cannot make these margin settings (for example, if the left margin would be to the right of the right margin), it sets the margins to the edge limits.
Basic Concepts Figure 1. 6. Print Direction Portrait print direction Landscape print direction Current Point margin Current Point margin Left margin Right margin Left margin Right margin Reverse landscape print direction Reverse portrait print direction Current point Top margin Top margin Current point Right margin Right margin...
Chapter 1 Introduction to PRESCRIBE cursor indicates where the next character will be printed or the next graphics will be drawn. (The printing system does not have separate cursors for text and graphics.) Text and graphics can be positioned at arbitrary locations on the page by moving the cur- sor with positioning commands (MAP, for example).
Basic Concepts Figure 1. 8. Character Spacing Font height Baseline Paths A path is a set of straight and curved line segments. Paths can be open, as in the case of lines, or closed, as in the case of rectangles, circles, or any fully enclosed area of any shape.
Chapter 1 Introduction to PRESCRIBE Figure 1. 9. Logical Page and Physical Page Standard Mode = Logical page (0,0) Path Mode −y −x With the standard mode logical page, any position specification that lies outside of the logical limits is automatically adjusted to bring it within the limits. For example, the page on the upper left in the preceding figure shows what happens if you attempt to draw a diagonal line from below the bottom edge limit to a point to the right of the right edge limit when the standard mode logical page is used.
Command Parameters For computer code values beyond four decimal places, the fifth and subsequent decimal places are ignored. Examples: Number output by computer Number used by printing system 1234.1234 1234.1234 -1234.1234 -1234.1234 0.123456 0.1234 Some commands have angle parameters. Angles are specified in degrees. (The printing system does not recognize radians).
Chapter 1 Introduction to PRESCRIBE TEXT "You’re about to enter PRESCRIBE."; TEXT ’ " " " ’; In the first command above, the character string starts with a double quotation mark. The printing system therefore expects the string to end with a double quotation mark, and regards the apostrophe in the word You’re as an ordinary character, not as the string ter- minator.
Command Parameters !R! Text ’A’; Cir 1; Exit; Each of these commands prints the capital letter ‘A’ inside a circle. In the printout shown above, the unit is centimeters. The reason that the letter ‘A’ is off center in the circle is that the cursor is not located at the center of the circle, but at left corner of the letter ‘A’.
Chapter 1 Introduction to PRESCRIBE Similarly, the PRESCRIBE command CSET 11U; designates use of the PC-8 Dan- ish/Norwegian symbol set. The corresponding Hewlett-Packard PCL command is ESC(11U. 1-14...
Chapter 2 Graphics Tutorial PRESCRIBE provides a wide variety of graphics operators, allowing you to easily con- struct and print almost any imaginable shape or pattern. This chapter introduces the various graphics concepts of PRESCRIBE, and illustrates how to use many of its graphic functions. It defines standard graphics mode, path mode graphics, and raster graphics.
Chapter 2 Graphics Tutorial Standard Graphics The standard graphics mode provides a number of operators for constructing a variety of filled shapes and lines. Using standard mode graphics, you can: • Draw lines of any desired width • Draw circles and rectangles •...
Figure 2. 1. Result of Draw Commands: Absolute Lines Edge limits Margins DAP 2, 0.5; MAP 0.5, 1; The initial !R! command switches the printing system to the PRESCRIBE mode. Remember that this command must always precede each sequence of PRESCRIBE com- mands.
Chapter 2 Graphics Tutorial Figure 2. 2. Result of Draw Commands: Zero-relative Lines Edge limits DZP 2, 0.5; MZP 0.5, 1; The first two lines switch the printing system to the PRESCRIBE mode, reset printing system parameters, and set the line width to 0.01 inch. On the third line, the MZP (Move to Zero-relative Position) differs from the MAP (Move to Absolute Position) command in one respect: the position specified is in relation to the top and left edge page limits of the page, rather than in relation to the top and left page margins.
Figure 2. 3. Result of Draw Commands: Relative Lines Edge limits In this command sequence, the PRESCRIBE mode begins with the !R!, resets the print- ing system defaults to permanent settings with RES;, and establishes a pen width of 0.01 inches with the SPD 0.01;.
Chapter 2 Graphics Tutorial Figure 2. 4. Result of Draw Commands: Lines in Angles The first two lines of this command sequence initiates the PRESCRIBE mode, resets printing system defaults to permanent settings, and sets the line width to 0.01 inches. Then the MZP command on line 3 moves the cursor to a point 5 inches to the right of the left edge limit and 4 inches below the top edge limit.
Figure 2. 5. An Example of a Box Line 1 places the printing system in the PRESCRIBE mode and resets printing system parameters. The UNIT C; command on the second line sets the unit of measurement to centimeters, and the SPD (Set Pen Diameter) command on line 3 sets the line width to 0.1 centimeters.
Chapter 2 Graphics Tutorial Figure 2. 6. Cursor Positioning Options BOX 4, 2, H; Moves the cursor to the horizontally adjacent corner Cursor position BOX 4, 2, V; Moves the cursor to the vertically adjacent corner BOX 4, 2, E; Moves the cursor to the diagonally opposite corner BOX 4, 2, L;...
Drawing Circles The CIR (draw circle) command draws a circle of a specified radius using the line thick- ness set by the SPD (set pen diameter) command. The circle drawn is centered on the current cursor position; the position of the cursor remains unaffected. See the following example: !R! RES;...
Chapter 2 Graphics Tutorial A filled block consists simply of a rectangle of any desired dimensions. A filled arc is an area enclosed by an arc segment and the line segments extending from the ends of the arc to the center of the circle of which the arc is a part. This section shows how to select a fill pattern and print a filled block or arc.
The BLK (draw filled-in BLocK) command on line 5 actually draws the filled in block. This command closely resembles the BOX command explained in the preceding section. However, whereas the BOX command draws a line around a rectangular area, the BLK command fills a rectangular area with the currently selected pattern.
Chapter 2 Graphics Tutorial Defining Fill Patterns With a little work, you can construct your own fill patterns. You can generate 8 × 8 dot patterns using the FPAT (generate Fill PATtern) command, or 16 × 16 dot patterns using the XPAT (generate eXpanded fill PATtern) command.
!R! RES; XPAT 100; @X0@ | 0Af0CC0FA8L@<X@6p@3p@3X@6L@<FA8CC0Af0@ | 0@X0; MZP 1, 1; PAT 100; BLK 1, 1; PAGE; EXIT; Lines 2 and 3 define the pattern shown in the figure on the next page, defining it as pat- tern 100. The PAT command on line 5 selects the pattern for use in fills. Line 6 prints the filled block.
Figure 2. 12. PIE Example The PIE command uses the format PIE radius, starting angle, size of slice, ...; In the example above, the radius is 2 centimeters (since we set the unit to centimeters with the UNIT command), and the starting angle is 0 degrees. Four pie slices are speci- fied, with sizes of 10, 20, 30, and 40.
Chapter 2 Graphics Tutorial Figure 2. 13. Pattern Filled PIE This program first draws four filled arcs, each using a different fill pattern, then prints the pie chart over the arcs. Each arc has an inner radius of zero, an outer radius of 2 (the same as the pie chart), and a starting angle and ending angle that correspond to the rela- tive size of the pie slices.
Path Mode Graphics There are no restrictions on the shape of a path. A single path may include multiple closed subpaths, representing several areas, and a path may intersect itself in an arbitrary manner. The order of the segments that define a path is significant. A pair of line segments is said to connect only if they are defined consecutively, with the second segment starting where the first one ends.
Chapter 2 Graphics Tutorial Drawing Lines The following example shows how to draw a line in the path mode. !R! RES; NEWP; PMZP 1, 1; PDZP 2, 3; STRK; PAGE; EXIT; Figure 2. 14. Drawing Lines in Path Mode (1, 1) (2, 3) Line 1 of the program switches the printing system to the PRESCRIBE mode and resets printing system parameters, including the unit (to inches), line width (to 3 dots), and var-...
Path Mode Graphics Two Lines The preceding example illustrated construction of a path between points specified in terms of absolute coordinates. The following program draws two lines, using both abso- lute coordinate specification and a new method: relative coordinate specification. !R! RES;...
Chapter 2 Graphics Tutorial Line Ends The line end type determines how PRESCRIBE renders the ends of lines when they are stroked onto the page. PRESCRIBE provides three kinds of line ends. These include: Figure 2. 16. Line Ends Square caps Butt caps Round caps The default line end type is butt caps.
Path Mode Graphics stroking the path. PRESCRIBE refers to the line cap type when the current path is stroked onto the page, rather than while the path is being constructed. Therefore, the pro- gram above renders the line with round caps rather than square ones. Line Joins When a path consists of multiple connected line segments, the manner in which they are stroked onto the page depends on the current line join type.
Chapter 2 Graphics Tutorial Figure 2. 19. Miter Limit W = line width L = miter length Miter limit = maximum ratio of If the angle at which lines join is such that this limit is exceeded, the lines are joined with a beveled join, rather than a mitered one.
Path Mode Graphics The following program illustrates use of this command. !R! RES; UNIT C; CMNT Sets unit to cm; NEWP; CMNT Starts new path; SPD .5; CMNT Sets line width to .5 cm; PMZP 2, 2; PDZP 4, 4; DPAT 5;...
Chapter 2 Graphics Tutorial Figure 2. 21. Printout of the SDP Example The SDP command on line 3 defines a dashed pattern consisting of two lengths of black, two lengths of white, five lengths of black, and two lengths of white. On line 11, the DPAT command selects this pattern for stroking.
Path Mode Graphics Figure 2. 22. Printout of the PARC Example After the arc is drawn, the cursor is located at the end of the arc. If you wish to eliminate the straight line segment in the above example, leaving only the arc, the cursor position must be moved in advance to the position at which drawing of the arc begins.
Chapter 2 Graphics Tutorial Figure 2. 24. Printout of a Circle Made with PMRA Drawing Complex Curves PRESCRIBE also provides a second curve-drawing operator for constructing complex curves that are referred to as Bézier curve segments. The PCRP (Path, Curve to Relative Position) uses the following format.
Path Mode Graphics The curve leaves the current position in the direction of x1, y1, and is tangent to the line between the current position and x1, y1. It bends towards x2, y2, then to x3, y3, and at the end point, is tangent to the line between x2, y2 and x3, y3.
Chapter 2 Graphics Tutorial !R! RES; UNIT C; NEWP; SPD .1; PMZP 3, 4; PCRP 4, 2, 5, 4, 6, 2; STRK; PAGE; EXIT; Figure 2. 28. Third PCRP Example Setting the Flatness of Curves When PRESCRIBE renders any curve, it actually converts the curve to a series of con- nected straight line segments.
Path Mode Graphics !R! RES; UNIT C; NEWP; SPD .1; FLAT 60; PMZP 5, 5; PCRP 4, 2, 5, 4, 4, 0; STRK; PAGE; EXIT; Figure 2. 30. Curve with Flatness 60 Both of these programs draw an identical curve. The only difference between the two is in the flatness, which is specified on line 2.
Chapter 2 Graphics Tutorial Figure 2. 31. A Closed Path Filled Areas !R! RES; UNIT C; NEWP; GPAT .5; PMZP 4, 2; PARC 3, 3, 1, 90, 270; PARC 5, 3, 1, 270, 90; FILL 1; PAGE; EXIT; This program is similar to the previous one. In this case, we choose to fill the path instead of stroking it.
Path Mode Graphics With simple convex paths such as that shown below, the entire enclosed area is filled. Figure 2. 32. Simple Filled Paths However, when a path consists of multiple closed subpaths or intersects itself as shown in the next two figures, the rule determines areas that are deemed to be inside the path. !R! RES;...
Chapter 2 Graphics Tutorial With 1 specified for the rule parameter of FILL, the method for determining whether a point is inside the path involves drawing a ray from that point in any direction and count- ing the number of times the ray crosses segments of the path. The point is said to be inside the path if the result is an odd number;...
Path Mode Graphics Figure 2. 34. Clipping Rectangle Example Printing with Character Paths When a resident scalable (outline) font is selected, you can treat a character as a path and add it to the current path. The PRESCRIBE command is CPTH (Character PaTH). Paths created with the CPTH command can be either stroked or filled.
Chapter 2 Graphics Tutorial Next, the SFNT (Select current FoNT by typeface) on line 5 selects Helvetica Bold, a scalable (outline) font as the current font and scales the font to a height of 54 points. Use of SFNT and other font selection commands are explained more fully in PRESCRIBE Commands Command Reference.
Raster Graphics raster data represents a repeating pattern or an uncompressed (unencoded) pattern. It also determines the number of pattern repetitions or bytes of uncompressed data. The control byte is a two’s complement value that can be either zero, positive, or nega- tive.
Chapter 2 Graphics Tutorial Figure 2. 36. Presentation Modes Presentation mode = 0 Current point Current point Height Width Landscape Portrait Presentation mode = 1 Current point Current point Width Width Landscape Portrait A secondary function of the SRO command specifies the width and height of the raster area.
Raster Graphics tagged image file format raster data. Both commands are used with the ENDR (END Raster) command. Printing Raster Data The normal sequence for printing raster data is to set the presentation mode (and, if desired, the height and width of the raster image area) with the SRO command, to set the dot resolution with the STR command, then to print the raster data with the RVRD or RVCD/ENDR command pair.
Raster Graphics Transparent Transparent Transparent Opaque Opaque Transparent Opaque Opaque With operation modes 1 and 2, the SIMG command addresses the transparency of the source image only. For operation mode 1, the white pixels of the source image do not overlay on the destination.
Chapter 2 Graphics Tutorial For example, construction of a filled and outlined shape such as that shown below requires that we draw the path and then fill it. However, filling the path also clears it, making it unavailable for stroking. Figure 2.
Chapter 3 Macros After you have gone to the trouble of creating (and debugging) a PRESCRIBE command sequence, it is inefficient to use it only once, but it is a nuisance to type the same sequence repeatedly. The solution is to make the sequence into a macro. Then you can execute the entire sequence with a single CALL command.
Chapter 3 Macros MCRO Command The MCRO command assigns a name to the sequence of PRESCRIBE commands that follows, until the ENDM (END Macro) command appears. Thereafter, the entire sequence of commands can be executed by specifying the assigned name in a single CALL or AMCR (Automatic MaCRo) command.
Examples of Macros Figure 3. 1. PRESCRIBE Macro Limitations Macro limitations are summarized as follows. Maximum number of macros downloadable Depends on the available printing sys- to the printing system tem’s memory Maximum nesting levels Maximum length of macro name 4 characters Maximum number of parameters Maximum length of CALL command...
Chapter 3 Macros Example 2 The next file presents a more ambitious project. It makes the graph-drawing commands in the preceding section into a pair of macros to draw multiple graphs. This file may help you to better understand the macro creating process. The DAM command in the first line is a safety precaution that clears any previous macros out of memory.
Examples of Macros Figure 3. 2. Macro Example 2...
Chapter 4 Fonts This chapter covers font-related topics, including the printing system’s resident and option fonts, character sets, and usage of font-selection and symbol creation commands. A font is a set of characters of a particular design. The design is referred to as a typeface. Several characteristics identify a font.
Chapter 4 Fonts Resident Fonts The printing system provides one bitmap font and 136 scalable (outline) fonts as the res- ident fonts. Also, fonts may be downloaded to the printing system’s memory from a computer or a memory card. These fonts are referred to as downloadable or soft fonts. The printing system accepts as many downloadable fonts as user memory allows.
LetterGothic-It CourierPS CourierPS-Bd CourierPS-Ob CourierPS-BdOb LinePrinterBM8.5-Roman (Bitmap) KPDL Fonts In KPDL (Kyocera Print-system Description Language) emulation, the printing system provides PostScript-compatible 47 scalable fonts. These fonts are also accessible by using the PRESCRIBE command. Font Name Albertus-ExtraBold Albertus-Medium AntiqueOlive AntiqueOlive-Bold...
(tabled on page 4-4), a scalable font is substituted. For example, if Dutch801BM10-Roman, which means a Dutch 801 style bitmap font of 10-point and Roman-style and was resident to the previous models of Kyocera printers, the printing system substitutes a Times Roman style scalable font. Other options include weights for bold and italic.
Font Selection Font Name Font Number Height (Pts.) Pitch (cpi) Port. Land. LetterGothicBM12-Italic LetterGothicBM12-Bold LetterGothicBM12-BoldItalic 51 LinePrinterBM8.5-Roman — 16.67 Swiss721BM14.4-Bold 14.4 Prop. Swiss721BM14.4-BoldItalic — 14.4 Prop. Swiss721BM12-Bold Prop. Swiss721BM12-BoldItalic — Prop. Swiss721BM10-Bold Prop. Swiss721BM10-BoldItalic — Prop. Swiss721BM8-Roman Prop. Swiss721BM8-Italic — Prop.
Chapter 4 Fonts • CSET (Change current symbol SET) • FTMD (set bitmap FonT MoDe) • FONT (select current FONT by number) • SFA (Set bitmap Font Attributes) The FTMD and SFA commands are only valid with bitmap fonts (which are simulated by resident scalable fonts).
Font Selection The parameters for symbol set, compression, and obliquing must be either all specified or all omitted. Selecting Fonts Using the FSET Command The FSET command provides a method of selecting fonts based on font characteristics and font location in the printing system. Font characteristics upon which selection is based appear in order of priority, from high- est to lowest as follows: Characteristic...
Chapter 4 Fonts Selecting Fonts with the FONT Command The FONT command uses font numbers to select fonts. A scalable font does not nor- mally have the font number, therefore, you must take one extra step using the SFNT (Select FoNT by typeface) command. See Selecting Fonts Using the SFNT Command above.
Font Selection !R! FTMD 13; FONT 19; EXIT; For making many font changes within a document, use the ALTF (change to ALTernate Font) and SETF (SET alternate Font) commands instead of FONT. To switch repeatedly between fonts 6 and 8, for example, place the following sequence at the beginning of your document: SETF 1,6;...
The Kyocera printing system internally assigns these typefaces to match similar typefaces already in the printing system. Kyocera users may reassign these fonts to create a custom font list. To make this change, refer to the SETF command in PRESCRIBE Commands Command Reference.
Symbol Set Figure 4. 1. Character dot pattern The pattern is 13 dots high and 13 dots wide. The pattern is encoded as a series of 16-bit words. If necessary, blank cells may be added on the right to make the width a multiple of 16.
(US ASCII). By simply using the INTL command with appropriate parameters for lan- guage and country code, the Kyocera user can access a wide variety of specific charac- ters.
Symbol Set • CSET (Change symbol SET) • SFNT (Select current FoNT by typeface) The CSET command selects a symbol set by specifying its identification code which closely resembles the command parameters of the HP printer control language. In the example below, the Windows symbol set is selected.
This page is left blank intentionally. 4-16...
Chapter 5 Barcodes This chapter is a tutorial for encoding data into linear barcode and two-dimensional bar- codes (PDF barcodes) by using PRESCRIBE commands. The former part of this chapter deals with how to implement the linear barcodes, the latter part explains the PDF417. They are step-by-step guide with a direct and practical approach.
Chapter 5 Barcodes Linear Barcodes The printing system is capable of printing a wide variety of barcodes, with human-read- able text if desired. The user need only specify the type of barcode and the data to be encoded. The printing system performs the rest of the work, including bar and space gen- eration, symbol translation, insertion of start and stop codes, checksum calculation, inter- leaving, padding, zero suppression, and parity reversal.
The short and tall parameters specify the short and tall bar heights in the unit designated by the UNIT command (default: inches). The short and tall parameters must be both specified or both omitted. If they are omitted, the default values as shown in Table 5.3. must be specified.
Chapter 5 Barcodes If the bar and space width parameters are omitted, the printing system uses suitable default values. Table 5.3. indicates the number of width classes and the default values for each barcode type. Barcode 19 (Code 39) has two width classes, which are set to 5 and 10 dots respectively in the example below.
Barcode 41 (USPS FIM) prints a Facing Identification Mark pattern which may be printed on the envelope adjacent to the stamp. The combination of a FIM and the POST- NET (barcode 39) barcode enables faster processing by the USPS. When generating a FIM pattern, all parameters except type, flag, and string are ignored. The flag parameter must be N.
Chapter 5 Barcodes Table 5.1. Barcode Types (Sheet 2 of 2) Type Ames with no checksum Delta distance ’a’ (IBM) with no checksum Delta distance ’a’ (IBM) with checksum EAN 8 with two-digit supplement EAN 8 with five-digit supplement EAN 13 with two-digit supplement EAN 13 with five-digit supplement POSTNET (USPS) FIM (USPS)
Table 5.2. Length, Character Set, and Default (Sheet 2 of 2) Type Length Character set Default 1–25 0123456789 1–25 1–25 1–25 -0123456789 1–25 0123456789KLMO 1–25 0123456789 0123456789 – One of the following FIM pattern types: A – Country Reply Mail with POSTNET. B –...
Chapter 5 Barcodes Table 5.3. Location of POSTNET and FIM 3” 2”± ” 1”- ” 1”- ” ” Stamp FIM (BARC 40) Clear Zone Preferred location for left-most bar Barcode read area POSTNET (BARC 39) ” Clear Zone ” × 4- ”) ”...
Chapter 5 Barcodes Two-dimensional Barcodes PDF 417 is a two-dimensional stacked barcode symbology capable of encoding over a kilobyte of data per label. This is important for applications where a barcode must be more than merely an identifier, an index to reference a database. The portable data file approach is well suited to applications where it is impractical to store item information in a database or where the database is not accessible when and where the item's barcode is read.
start pattern A unique pattern of light and dark elements which indicates the leftmost part of a bar- code label. stop pattern A unique pattern of light and dark elements which indicates the rightmost part of a bar- code label. A lateral set of elements made up of a start pattern, codewords, and a stop pattern.
Chapter 5 Barcodes Left row indicators Data codeword area Right row indicators dn-1 dn-2 Lm-2 Ck-1 Ck-2 Rm-2 Lm-1 Rm-1 Error correction area Printing a Two-dimensional Barcode XBAR, XBCP, XBUF, and ENDB commands support two-dimensional barcode printing. Each command does the following to put data together for printing a barcode. XBAR Prints a two-dimensional barcode from the given data string.
Positioning the Barcodes The following commands are positioning commands the PRESCRIBE language pro- vides. These commands are useful and sometimes essential for proper positioning of the barcodes onto a medium such as label. More detailed discussion on these (and some other) positioning commands can be found in the PRESCRIBE Commands Command Reference.
Chapter 5 Barcodes Macro PDF417 Macro PDF417 provides a powerful mechanism for creating a distributed representation of files too large to be presented by a single PDF417 barcode. Macro PDF417 barcodes differ from ordinary PDF417 barcodes in that they contain additional control options which are added by modes 10 through 19 of the XBCP command.
Some samples for Macro PDF417 are provided in PRESCRIBE Commands Command Reference on the XBCP page. 5-15...
Chapter 6 Permanent Parameters The printing system maintains a number of parameters in a non-volatile (flash) memory. These parameters control the initial state of the environment at power-up, including the initial emulation mode, page orientation, character set, buffer allocations in memory, interface parameters, and other options.
Chapter 6 Permanent Parameters FRPO Parameters The FRPO command changes the value of one parameter in permanent memory. A separate command is required for each parameter change. The parameters, their meanings, and the specifiable values are listed below. In these tables, the Interface-dependent parameters affect the environment on the current interface only.
Table 6.1. Interface-dependent Parameters (Sheet 2 of 3) Environment Parameter Value Factory setting KC-GL pen width G1 through G8 0 to 99 dot 01/02/03/04/ 05/06/07/08 Interface release time- 0 to 99 in units of 5 seconds KC-GL enlarge mode Duplex mode Simplex mode Long-edge binding Short-edge binding...
Chapter 6 Permanent Parameters Table 6.1. Interface-dependent Parameters (Sheet 3 of 3) Environment Parameter Value Factory setting Character spacing Characters per inch (fraction value) Country code US-ASCII France Germany Denmark Sweden Italy Spain Japan US Legal 10: IBM PC-850 (Multilingual) 11: IBM PC-860 (Portuguese) 12: IBM PC-863 (Canadian French) 13: IBM PC-865 (Norwegian)
Interface-independent Parameters Table 6.2. Interface-independent Parameters (Sheet 1 of 7) Environment Parameter Value Factory setting Downloadable PCL font 0 (countries excluding compression Asia) or 1 (Asia) Message language Automatically enters message language selection at power-on selection menu at the initial power-on. After a language is selected, B7=1 is set automatically.
Chapter 6 Permanent Parameters Table 6.2. Interface-independent Parameters (Sheet 2 of 7) Environment Parameter Value Factory setting ETX/ACK XON/XOFF recognized only as protocol Buffer nearly-full Percentage of the received data buffer size. threshold Buffer nearly-empty Percentage of the received data buffer size. threshold Total host buffer size 0 to 99 in units of the size defined by FRPO S5 5 (monochrome...
Table 6.2. Interface-independent Parameters (Sheet 3 of 7) Environment Parameter Value Factory setting Ecoprint level Duplex Normal Reverse output pages. Allows duplex from the MP tray. Allows duplex from the MP tray; reversing the output pages. Printing resolution 300 dpi 600 dpi 1200 dpi PCL resource protection N9...
Chapter 6 Permanent Parameters Table 6.2. Interface-independent Parameters (Sheet 4 of 7) Environment Parameter Value Factory setting 23: Main cassette, the first feeder cassette, the third feeder cassette, and the fourth feeder cassette. 24: Main cassette, the second feeder cassette, the third feeder cassette, and the fourth feeder cassette.
Table 6.2. Interface-independent Parameters (Sheet 5 of 7) Environment Parameter Value Factory setting Daisywheel data length R8 7-bit 8-bit Default envelope feeder Same as the R2 values except below paper size A4 or Letter A4/letter equation Host buffer size 10kB (x H8) 100kB (x H8) 1024kB (x H8) RAM disk capacity...
Chapter 6 Permanent Parameters Table 6.2. Interface-independent Parameters (Sheet 6 of 7) Environment Parameter Value Factory setting Rough Letterhead 10: Color 11: Prepunched 12: Envelope 13: Cardstock 21: Custom1 22: Custom2 23: Custom3 24: Custom4 25: Custom5 26: Custom6 27: Custom7 28: Custom8 Paper type for paper X1 –...
Table 6.2. Interface-independent Parameters (Sheet 7 of 7) Environment Parameter Value Factory setting Error message for Does not display an error message and pause device error the job when the device error occurs. Displays an error message when duplex printing is not executed because of a possible limitation.
Chapter 6 Permanent Parameters I0—Name of the partition in memory card The FRPO I0 specifies a memory card partition name to be automatically read at power up. Only one partition may be specified. The data read from the named partition at power up will be available to users accessing the currently-active interface.
Chapter 7 Emulation The printing systems emulate the operation of seven other printers: • HP LaserJet (mode 6) • HP 7550A (mode 8) • IBM Proprinter X24E (mode 1) • Epson LQ-850 (mode 5) • Diablo 630 (mode 2) • Standard line printer (mode 0) •...
Chapter 7 Emulation Selecting an Emulation When installing a printing system, you can select an emulation that best suits the require- ment by the application software. In most cases, the emulation will be the factory default setting (mode 6: HP LaserJet). Refer to the following diagram to locate the next level emulation in case you need to change the emulation.
Line Printer Emulation (Mode 0) Automatic emulation sensing In printing systems that permit the selection of KPDL emulation, the automatic emula- tion sensing (AES) can be activated so that print jobs using other emulations will auto- matically print in the correct emulation. Refer to the AES related FRPO command parameters, P4 and P5, in Interface-independent Parameters on page 5 in Chapter 6.
Chapter 7 Emulation Table 7.2. Line Printer Control Codes Character code Abbreviation Meaning (decimal) Backspace Linefeed Formfeed Carriage return Other control codes are ignored. In particular, the escape code (ESC: character code 27) is ignored. If the printing system receives the escape sequence ESC A, for example, it ignores the escape code and prints the letter A.
IBM Proprinter X24E Emulation (Mode 1) Table 7.3. IBM Proprinter X24E Symbol Sets Symbol set Message display FRPO command IBM PC-863 (Canadian French) IBM PC-863 FRPO U6, 12; FRPO U7, 1; IBM PC-865 (Norwegian) IBM PC-865 FRPO U6, 13; FRPO U7, 1; By giving a particular value for the U6 and U7 parameters, it is possible to use another symbol set which the Diablo does not have.
Chapter 7 Emulation subscripts, underlining, backspace, vertical and horizontal tabulation, line spacing, and paper length. The font mode set for the IBM Proprinter X24E emulation is 0 (the printing system adjusts nothing automatically for font attributes) unless you change it by the FTMD command.
IBM Proprinter X24E Emulation (Mode 1) Table 7.6. IBM Proprinter X24E Control Codes Command Function Code (hex) Supported Beeper – Backspace Horizontal Tab Line Feed Vertical Tab Form Feed Carriage Return Double-Wide Printing by line 0E Condensed Printing Select Printer –...
Chapter 7 Emulation Table 7.6. IBM Proprinter X24E Control Codes Command Function Code (hex) Supported ESC U n Set Print Direction 1B 55 n – ESC W n Continuous Double-Wide 1B 57 n Printing ESC X n m Set Horizontal Margins 1B 58 n m ESC Y n1 n2 v1 v2...vn Dual-Density Bit-Image...
Chapter 7 Emulation Diablo 630 Emulation (Mode 2) To set the power-up emulation for Diablo 630, send the printing system the following PRESCRIBE command sequence: !R! FRPO P1, 2; FRPO P3, 1; EXIT; The Diablo uses ten symbol sets as shown below. To select one of these symbol sets, use the INTL command or the operator panel keys.
Diablo 630 Emulation (Mode 2) Fonts can be selected by placing font commands in the file to be printed, or using SETF (set alternate font) and ALTF (change to alternate font) commands. To substitute scalable fonts for the embedded fonts using SETF command, employ the FSET command to apply the appropriate font number for that scalable font.
Chapter 7 Emulation Diablo 630 Control Codes Table 7.9. Diablo 630 Control Codes (Sheet 1 of 2) Command Function Code (hex) Supported Buffer code End of text Acknowledge Sound bell – Backspace Horizontal tab Line feed Vertical tab Form feed Carriage return Supplementary extended character set –...
Diablo 630 Emulation (Mode 2) Table 7.9. Diablo 630 Control Codes (Sheet 2 of 2) Command Function Code (hex) Supported ESC 3 Graphics mode ON 1B 33 ESC 4 Graphics mode OFF 1B 34 ESC 5 Forward printing mode 1B 35 ESC 6 Backward printing mode 1B 36...
Epson LQ-850 Emulation (Mode 5) Epson LQ-850 Emulation (Mode 5) To set printing system to power up in the LQ-850 emulation with the LQ German symbol set, command: !R! FRPO P1, 5; FRPO P3, 2; FRPO U6, 2; EXIT; The Epson LQ-850 emulation uses 13 symbol sets that include both plain and italic char- acters.
Chapter 7 Emulation Figure 7. 11. Epson LQ-850 Font Printout The five LQ-850 fonts actually use the printing system’s resident fonts. The font mode in the Epson emulation is 0. (The printing system does not automatically adjust character spacing.) If you do not need exact character spacing, you can improve the appearance of these fonts by changing to font mode 13.
Epson LQ-850 Emulation (Mode 5) Table 7.12. Epson LQ-850 Fonts (Sheet 2 of 2) Font name Character spacing ALTF No. Epson Prestige 10 cpi, 12 cpi, Proportional 15 cpi Condensed 10 cpi Condensed 12 cpi, Condensed proportional 9 You can alter these default SETF assignments to suit your own purposes. In the example below, four of the SETF assignments are changed to proportional fonts, and the font mode is changed to 15.
Chapter 7 Emulation EPSON LQ-850 Control Codes Table 7.13. Epson LQ-850 Control Codes Command Function Code (hex) Supported Printer Operation ESC @ Initialize Printer 1B 40 DC 1 Select Printer – DC 3 Deselect Printer – Delete Character – ESC < Select Unidirectional Mode (one line) 1B 3C ESC U n...
Epson LQ-850 Emulation (Mode 5) Table 7.13. Epson LQ-850 Control Codes Command Function Code (hex) Supported ESC M Select 12 CPI 1B 4D ESC g Select 15 CPI 1B 67 ESC p n Turn Proportional Mode On/Off 1B 70 Select Condensed Mode ESC SI Select Condensed Mode 1B 0F...
HP LaserJet Emulation (Mode 6) On shipment from the factory, the printing system is set to power up in the HP LaserJet (PCL 6) emulation. The Kyocera printing systems support to emulate the following HP printer language as tabled below: Table 7.14.
Chapter 7 Emulation The printing system also supports as many HP symbol sets as the LaserJet regularly sup- ports and still other symbol sets can be provided in downloaded fonts. (A full list of the supported symbol sets appear in section LaserJet Symbol Sets on page 37.) These symbol sets can be used by appropriate font selection commands as explained below.
LaserJet printer driver (when a LaserJet driver is selected within the application software). LaserJet Fonts The printing system emulates the LaserJet fonts as listed below. Table 7.16. LaserJet Fonts No. HP LaserJet Font Kyocera Font Style Type Face Num- 1 Arial Arial...
The stroke weight (bolding) of Courier and Letter Gothic is changeable between regular and dark. The default is regular and matches the Hewlett-Packard. It can be changed to dark which was the default stroke weight of Courier and Letter Gothic in order Kyocera printing systems by changing the FRPO V9 parameter.
HP LaserJet Emulation (Mode 6) LaserJet Font Escape Sequences The example below shows an HP font selection escape sequence that selects a LetterGot- hic font with fixed-pitch, 12-cpi, 12-point, upright-style, normal stroke weight. Characteristic Value (example) Escape Sequence Symbol set Roman-8 ESC(8U Spacing...
Chapter 7 Emulation Table 7.17. Symbol Sets for Bitmap Fonts Symbol Set HP Symbol Set ID (Value) FRPO U6 Value FRPO U7 Value ISO 60 Norway 0D (4) HP Extension 0E (5) ISO 25 France 0F (6) HP German 0G (7) ISO 15 Italian 0I (9) ISO 14 Japan...
HP LaserJet Emulation (Mode 6) Table 7.18. Symbol Sets for Scalable Fonts (Sheet 2 of 2) Symbol Set HP Symbol Set ID (Value) FRPO U6 Value FRPO U7 Value PC Cyrillic 3R (114) PS math 5M (173) ISO Latin 5 5N (174) Windows Latin 5 5T (180)
Interfaces section. Resource Protection The resource protection feature is Kyocera’s implementation of the HP’s resource sav- ing. The feature preserves resources during emulation switching. The protected resources, user-defined symbol sets and patterns, fonts, and macros, remain intact when the user switches to and from the HP LaserJet emulation.
HP LaserJet Emulation (Mode 6) N9 = 1, permanent PCL resources The printing system will store in memory all are protected. resources marked as permanent (soft fonts, macros, user patterns and symbol sets) and protect these resources during emulation switching. All resources marked as temporary (soft fonts, macros, user pat- terns, and symbol sets) will be lost during emulation switching.
Chapter 7 Emulation Table 7.23. Supported PJL Commands Command Group Command Description Environment DEFAULT Sets default for environment variables. Commands Sets an environment variable to a specified value during a PJL job. INITIALIZE Resets current and default PJL variables to factory default. RESET Defaults current PJL variables.
HP LaserJet Emulation (Mode 6) <words> Printable characters (ASCII characters 33 through 255) and <WS>, starting with a printable character. KPDL end-of-file indication. It is not part of PJL, but is used to end KPDL instructions. The PJL command syntax should follow one of four formats: Format 1: <ESC>%-12345X This format uses the Universal Exit Language (UEL) only.
Chapter 7 Emulation PJL variables PJL uses alphanumeric variables, numeric variables, and strings. The following explains the three types of variables and their ranges. Alphanumeric variables Any combination of letters and digits, with the rule that the first character must always be a letter.
HP LaserJet Emulation (Mode 6) Invalid Commands Invalid commands are in two general types: those with syntax errors and those with syn- tax or semantic warnings. The printing system handles each of those types different ways. Syntax errors contain errors such as unrecognized commands and command modifiers, strings with missing closing double quotations, numeric values with missing digits before the decimal points, and numeric values encountered when alphanumeric values are to be expected.
Chapter 7 Emulation Table 7.24. PJL Reset Status Environment PJL command FRPO parameter Duplex DUPLEX FRPO N4 Default font FONTNUMBER FRPO V3 Point size PTSIZE FRPO V0-2 Pitch PITCH — Symbol set SYMSET FRPO U6/U7 7-48...
HP LaserJet Emulation (Mode 6) HP LaserJet Printer Commands — PCL In the tables below, Yes means that the command is supported and No means that the command is not supported. Table 7.25. HP LaserJet PCL Commands (Sheet 1 of 15) Function Parameter Command...
Chapter 7 Emulation Table 7.25. HP LaserJet PCL Commands (Sheet 2 of 15) Function Parameter Command Hexadecimal 1000 1800 6300 9100DN 8000C Value 1000+ 1900 6750 9500DN 3800 6900 ESC & Output Bin Destination 1B 25 6C 31 47 Tray 1 (Face down) ESC &...
HP LaserJet Emulation (Mode 6) Table 7.25. HP LaserJet PCL Commands (Sheet 3 of 15) Function Parameter Command Hexadecimal 1000 1800 6300 9100DN 8000C Value 1000+ 1900 6750 9500DN 3800 6900 ESC &n6Wd Color 36 57 64 43 6F Color 6C 6F 72 ESC &n11Wd Prepunched...
Chapter 7 Emulation Table 7.25. HP LaserJet PCL Commands (Sheet 4 of 15) Function Parameter Command Hexadecimal 1000 1800 6300 9100DN 8000C Value 1000+ 1900 6750 9500DN 3800 6900 ESC & International 100A 1B 26 6C 31 30 30 41 ESC &...
HP LaserJet Emulation (Mode 6) Table 7.25. HP LaserJet PCL Commands (Sheet 5 of 15) Function Parameter Command Hexadecimal 1000 1800 6300 9100DN 8000C Value 1000+ 1900 6750 9500DN 3800 6900 ESC & 16 lines/inch 1B 26 6C 31 36 ESC &...
HP LaserJet Emulation (Mode 6) Table 7.25. HP LaserJet PCL Commands (Sheet 13 of 15) Function Parameter Command Hexadecimal 1000 1800 6300 9100DN 8000C Value 1000+ 1900 6750 9500DN 3800 6900 ESC *s0U Set Status All entities of 1B 2A 73 30 55 Readback the Location Location Unit...
HP LaserJet Emulation (Mode 6) Table 7.25. HP LaserJet PCL Commands (Sheet 15 of 15) Function Parameter Command Hexadecimal 1000 1800 6300 9100DN 8000C Value 1000+ 1900 6750 9500DN 3800 6900 ESC *t#J User-defined 1B 2A 74 30 4A dither ESC *t#J Monochrome 1B 2A 74 31 30...
Chapter 7 Emulation HP-GL/2 Context Printer Commands In the command tables below, parameters in brackets are optional. Table 7.26. HP-GL/2 Context Printer Commands (Sheet 1 of 2) Command Mnemonic Parameters DUAL CONTEXT EXTENSIONS ESC %#A ENTER PCL MODE 0 = Retain previous PCL cursor position 1 = Use current HP-GL/2 pen position RESET None...
HP LaserJet Emulation (Mode 6) Table 7.26. HP-GL/2 Context Printer Commands (Sheet 2 of 2) Command Mnemonic Parameters SELECT ALTERNATE FONT None ABSOLUTE DIRECTION [run,rise]; RELATIVE DIRECTION [run,rise]; ABSOLUTE CHARACTER SIZE [width,height]; RELATIVE CHARACTER SIZE [width,height]; CHARACTER SLANT [tangent_of_angle]; EXTRA SPACE [width[,height]] STANDARD FONT DEFINITION [kind,value...[,kind,value]];...
The HP 7550A emulation applies only to the printing systems that handle A3-size paper. The printing system emulates the Hewlett-Packard plotter model HP 7550A and uses the Kyocera Graphics Language (KC-GL). While it shares features with the HP-GL lan- guage, it is designed to provide additional features the plotter cannot give.
HP 7550A Emulation [KC-GL] (Mode 8) The SM (Symbol Mode) instruction defines the first succeeding character as a symbol character. The DT (Define label Terminator) instruction defines the first succeeding character as a character plot terminator. The character plot terminator is used to terminate the LB (LaBel) instruction. The default terminator is the ETX character (End of Text), which uses ASCII code 3.
Chapter 7 Emulation Table 7.28. FRPO G0 Command Options Bit Position Bit Value Logic Value Description Landscape page orientation Page orientation to FRPO C1 Default cursor at top left Default cursor at bottom left Plot Coordinates (bit 0) This bit defines one of two plotting coordinate modes. (See Figure 7. 29. on page 98.) 0 = Mode A 1 = Mode B In mode A, the origin (0, 0) starts at bottom left.
HP 7550A Emulation [KC-GL] (Mode 8) 1 = Printing System remains in mode A even when the IP instruction includes a nega- tive parameter value. Enhance Mode (bit 3) This bit supports the enhance mode of HP 7550A and HP 758X plotters. 0 = Normal mode (HP 7550A standard mode and HP 758X emulation mode).
Chapter 7 Emulation 7 = pen 7 8 = pen 8 Line-width (in dots): 0 to 99 (0 - line not printed) Positions in the plot area can be defined as plotter units or user units. These units are explained next. Since the pen thickness is measured in the unit of dot, printing an object in the 600-dpi res- olution will result in the thickness of lines being half that expected in the 300-dpi resolu- tion.
HP 7550A Emulation [KC-GL] (Mode 8) Setting the Scaling Points At power-up, scaling point P1 will be in the lower left corner of the paper, the default plot position. Point P2 is always diagonally opposite to P1. These two points define the diagonal of a rectangle, which by default is centered on the paper.
Chapter 7 Emulation Figure 7. 30. KC-GL Sample Program Plotter Status Information When the RS-232C interface is used, in addition to receiving data, the plotter (printing system) can return information such as the current pen position, pen status, and error numbers.
HP 7550A Emulation [KC-GL] (Mode 8) OA [Output Actual position and pen status] The plotter returns the x- and y-coordinates of the current pen position and indicates whether the pen is currently up or down. This information is given by ASCII-coded inte- gers in the following format: X, Y, P TERM x-coordinate in absolute plotter units...
Chapter 7 Emulation OI [Output Identification] This instruction returns a character string indicating the plotter model being emulated, as follows: KC-GL option Plotter model (FRPO G0) Mode A 7550A TERM Mode B 7596A TERM OL [Output Label length] This instruction returns information on the contents of the label buffer. This may be used together with the BL instruction for accessing the necessary space for the buffered label before printing it.
HP 7550A Emulation [KC-GL] (Mode 8) OS [Output Status] This instruction returns an integer from 0 to 255 giving one byte of status information, as follows: status TERM The following table describes the individual bits in the status byte. After powered up or an IN instruction, bit positions 3 and 4 turn on making the bit value to be 24.
Chapter 7 Emulation OW [Output Window] This instruction returns the x- and y-coordinates of two diagonally opposite corners of the current plottable area. Four ASCII-coded integers indicating the lower left and upper right corner coordinates are returned by using the following format: , TERM LL: lower left UR: upper right...
HP 7550A Emulation [KC-GL] (Mode 8) Table 7.31. Status Information Response Description The buffer is empty and the printing system is off-line. The buffer is full with the printing system under one of the following conditions: cover open, paper empty, or paper jam. The buffer is empty with the printing system under one of the following con- ditions: cover open, paper empty, or paper jam.
HP 7550A Emulation [KC-GL] (Mode 8) 7-109...
Chapter 7 Emulation KC-GL Limits This section provides limit values for the various KC-GL parameters. Plotter units are used unless otherwise specified. Standard Character Sizes Table 7.33. Standard Character Sizes Paper size Width (mm) Height (mm) 0.187 0.269 0.285 0.375 Letter 0.187 0.269...
HP 7550A Emulation [KC-GL] (Mode 8) Table 7.39. E-Mask Bit Values Bit Error No. Description Illegal parameter Unknown character Unknown character set Plot position overflow – – S-Mask/P-Mask Values Table 7.40. S-Mask/P-Mask Values S-Mask/P-Mask Values Bit Value Description Pen down Changed P1 or P2 Valid digitizing point Initialized...
Chapter 7 Emulation Default States (DF) Table 7.42. Default States (DF) Function Equivalent Instruction Default Value Plotting mode Absolute (plotter units) Polygon mode PM0; PM2; Empty polygon Line type Solid line Line pattern length LTn,4; 4% of distance between P1 and P2 Scaling Off (plotter units used for x- and y-coordinates) Input window...
KPDL Operators KPDL Operators This section describes the machine-independent part of KPDL, Kyocera’s implementa- tion of the PostScript command language. KPDL deployed in the printing system encom- passes the features of LanguageLevel 3 of the PostScript command language. The KPDL operators described in this section can be used for confirming and changing the printing system’s internal settings.
Chapter 7 Emulation Figure 7. 44. Sample Printout File transfer One way to transfer a file is to place all lines above in a file and transfer the file to the printing system. The basic requirements are: • Except for SEM 9; and EXIT; (which can be in either uppercase or lowercase letters), all operators must be typed in lowercase letters, exactly as shown.
KPDL Operators Certain operators are hyphenated in the following tables because of the editorial limitation only. These operators must not be hyphenated to be executed. Note KPDL Page Description Operators The following table summarizes the page description operators including all language levels of KPDL.
Chapter 7 Emulation Table 7.45. KPDL Page Description Operators (Sheet 2 of 11) Preceding stack Operator Result Description mark obj1...objn cleartomark Clear stack down through mark clip Create new clipping path clippath Set current path as clipping path cliprestore Restore stored clipping path clipsave Copy and save the current clipping path...
KPDL Operators Table 7.45. KPDL Page Description Operators (Sheet 3 of 11) Preceding stack Operator Result Description currentdict dict Push current dictionary on oper- and stack currentfile file Get file currently being executed currentflat Get current flatness tolerance currentfont font Get current font dictionary currentglobal bool...
Chapter 7 Emulation Table 7.45. KPDL Page Description Operators (Sheet 4 of 11) Preceding stack Operator Result Description matrix defaultmatrix matrix Replace matrix with device default matrix key font definefont font Define font as a font dictionary associated with key key instance category defineresource instance...
KPDL Operators Table 7.45. KPDL Page Description Operators (Sheet 5 of 11) Preceding stack Operator Result Description FontDirectory dict Push directory of font dictionaries on stack init incr limit proc Execute proc for init to limit in steps of incr array proc forall Do proc for each array element...
Chapter 7 Emulation Table 7.45. KPDL Page Description Operators (Sheet 6 of 11) Preceding stack Operator Result Description x y userpath inueofill bool Test the user path on the even- odd rule for insideness userpath1 userpath2 inueofill x y userpath inufill bool Test the user path for insideness...
KPDL Operators Table 7.45. KPDL Page Description Operators (Sheet 7 of 11) Preceding stack Operator Result Description pathbbox llx lly urx ury Get bounding box of current path move line curve close pathforall Do named procedures for current path elements Discard top object on stack string print...
Chapter 7 Emulation Table 7.45. KPDL Page Description Operators (Sheet 8 of 11) Preceding stack Operator Result Description dx dy rlineto Create line from current point to relative point dx dy rmoveto Move current point by relative amount ob(n-1)...ob0 n i roll ob(i-1)..ob0 Roll top n objects on stack by i...
KPDL Operators Table 7.45. KPDL Page Description Operators (Sheet 9 of 11) Preceding stack Operator Result Description bool setglobal Set the VM allocation mode setgray Set gray level from 0 (black) to 1 (white) gstate setgstate Replace the current graphics state halftone sethalftone...
Chapter 7 Emulation Table 7.45. KPDL Page Description Operators (Sheet 10 of 11) Preceding stack Operator Result Description statusdict dict Push statusdict on operand stack stop Terminate procedure executed by stopped operator stopped bool Execute object. Return true if stop operator is executed in object, false if object completes normally key value...
KPDL Operators Table 7.45. KPDL Page Description Operators (Sheet 11 of 11) Preceding stack Operator Result Description vmstatus level used Return virtual memory status: maximum current save nesting depth, bytes used, and maximum byte size array/dict/file/string wcheck bool Test if object is write-accessible where dict true or false Find dictionary in which key is...
Chapter 7 Emulation Table 7.46. KPDL Status Operators (Sheet 2 of 5) Preceding stack Operator Result Description pagestackorder bool Get current stack tray (true: face down, false: face up) papersize name bool Get current paper size and orientation string printername substring Get printing system name product...
KPDL Operators Table 7.46. KPDL Status Operators (Sheet 3 of 5) Preceding stack Operator Result Description com10envelope Set imageable area to Commercial 10 envelope size. See KPDL Printable Area on (4.125 x 9.5 envelope) page 140. This operator is in userdict. monarcenvelope Set imageable area to Monarch envelope size.
Chapter 7 Emulation Table 7.46. KPDL Status Operators (Sheet 4 of 5) Preceding stack Operator Result Description defaultpapertray Get current default paper tray. setpapertray Set current paper tray. papertray Get current paper tray. setpapertray2 Select a tray by converting the tray number that is currently specified by the PRESCRIBE tray number into a KPDL tray number.
KPDL Operators Table 7.46. KPDL Status Operators (Sheet 5 of 5) Preceding stack Operator Result Description dlenvelopetray Find tray containing DL size envelopes, select it as current tray, and set imageable area for DL size envelopes. monarcenvelopetray Find tray containing Monarch size envelopes, select it as current tray, and set imageable area for Monarch size envelopes.
Chapter 7 Emulation KPDL System Parameters The following table summarizes the system parameters. Table 7.47. KPDL System Parameters (Sheet 1 of 2) Preceding stack Parameter Result Description BuildTime Timestamp for printer’s date of manufacture ByteOrder bool Byte order of binary encoded tokens. (true: low- order byte first, false: high-order byte first) CurDisplayList Indicate in bytes the memory block size used for...
KPDL Operators Table 7.47. KPDL System Parameters (Sheet 2 of 2) Preceding stack Parameter Result Description MaxSourceList Indicate in bytes the maximum storage of the host buffer used by the current input device. MaxUPathCache Indicate in bytes the maximum storage which can be used by the user path cache.
Chapter 7 Emulation KPDL User Parameters The following table summarizes the user parameters. The user parameters establish tem- porary policies on functions such as naming the current job for a user. Table 7.48. KPDL User Parameters Preceding stack Parameter Result Description AccurateScreens bool...
KPDL Operators KPDL Page Device Parameters The page device parameters for setpagedevice allow manipulating the output devices to receive or provide various finishing operations on the printed outputs. For example, the OutputType parameter allows to choose paper stack as follows: To receive the output pages in the default printer stack: <</OutputType (PRINTER_STACK)>>...
Chapter 7 Emulation Table 7.49. KPDL Page Device Parameters (Sheet 2 of 3) Preceding Stack Parameter Result Description Policies dict Execute the policies function. This is checked when the device cannot satisfy the user-specified setpagedevice. PostRendering-Enhance bool Turn on/off KIR mode. (true: KIR on, false: KIR off) PostRendering-EnhanceDetails dict Set the dictionary representing the KIR mode when PostRenderingEnhance is true.
KPDL Operators Table 7.49. KPDL Page Device Parameters (Sheet 3 of 3) Preceding Stack Parameter Result Description PunchMode Punch using sub style. (DF-71) Native style of punching Sub style SlipSheet Insert transparency separator. No separator Insert a separator when a set of job is printed. SlipSheetDetails dict Control the detailed parameters of punching.
Chapter 7 Emulation SorterDetails can specify tray arrangement and sorter operation mode as the following example: << /SorterDetails << /SorterTray[1 2]/SorterMode(SORTER)>> >> setpagedevice Tray arrangement array of [1 2] specifies tray 1 and tray 2 to be used. If tray numbers are omitted ([ ]), all trays are used.
KPDL Operators keys to the CollateDetails parameter should have the following integer values depending on the mode of each e-MPS function. Table 7.51. Enabling e-MPS Functions e-MPS /Collate /CollateDetails << >> /Mode /Type /Hold /Hold- /HoldKey Type Electronic sorting true Temporary job storage true Permanent job storage...
Chapter 7 Emulation Table 7.52. KPDL Error Messages Code Error Meaning ioerror Input/output error limitcheck Path too complex, more than 6 files open, etc. nocurrentpoint No current point is defined rangecheck Operand out of allowed range stackoverflow Operand stack overflow stackunderflow Operand stack underflow syntaxerror...
KPDL Operators Figure 7. 53. Printable Area Table 7.54. Paper Sizes and Printable Area Paper type Paper size Edge limits (A above) Printable area (B above) Horizontal Vertical Points 29.7 x 42.0 842 x 1191 0.42 0.35 28.85 x 41.31 818 x 1171 25.7 x 36.4 728 x 1032 0.42...
This page is left blank intentionally. 7-142...
Index Numerics Compression (SFNT), 2-34 Control byte, 4-13 16-bit word, Control codes 7-14 Diablo 630, 7-24 Epson LQ-850, 7-49 HP LaserJet series, 2-19 Absolute coordinates, IBM Proprinter, Absolute position, Coordinates, 2-10 Arc, 4-12 Creating new symbols, 2-24 path mode drawing, 2-18 Current path, Current position,...
7-24 control codes, character set, 7-21 emulation, control codes, 2-32 Even-odd rule (FILL), emulation, 2-37 Imaging model, International characters 7-109 KC-GL, 2-10 Fill pattern, 2-12 defining, 2-30 Filled area, 2-10 Filled block, KC-GL 7-107 Flag, character sets, 2-28 7-98 Flatness of curves, coordinates, 7-114 Font...