Lexmark MX722 Forms and Bar Code Card P4.2 Technical Reference - Page 60

PostScript emulation

Page 60 highlights

Lexmark Confidential until announced PostScript emulation 60 PostScript emulation This section describes more PostScript emulation operators that are supported when Forms and Bar Code Card is installed. These operators enable printing of bar code symbologies with user-specified parameters from within the PostScript data stream. Note: This functionality is not available in HP BarDIMM Pro. Defining characteristics The following operators let you further define characteristics of the bar code: Operator barcodeshow barcodebbox barcodewidth Characteristic Prints the specified bar code symbol. Returns the coordinates for the bounding box. Returns the X and Y displacements of the currentpoint. For more information on bar code characteristic parameters and default values, see "PostScript emulation operators" on page 62. Command structure considerations Developers must be familiar with the standard that defines the bar code symbology being implemented. The incoming data is analyzed for valid parameters, such as string length and characters. When an invalid condition is detected, an error message appears. For more information, see "Common error messages" on page 131. Characteristic values, other than the default value, must be explicitly specified. If no value is specified, then the default value is used. Previously specified non-default values are not retained. Human‑readable text (HRT) HRT can be specified with one-dimensional bar codes under the following provisions: • The typeface used is specified with the /FontName key. • The specified text is centered on the bar code automatically. • The text is scaled automatically based on the width and height of the bar code and on the method of embedding used. Because two-dimensional bar codes can encode thousands of characters, HRT interpretation of the data may not be practical. If descriptive text is printed with the symbol, then any character size and font available may be selected. The text may be printed anywhere near the symbol and must not interfere with the bar code symbol or its quiet zones. Currentpoint positioning Note: Currentpoint positioning applies with or without HRT. It also considers any specified quiet zones to be within the bounding box.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146

PostScript emulation
This section describes more PostScript emulation operators that are supported when Forms and Bar Code Card
is installed. These operators enable printing of bar code symbologies with user-specified parameters from
within the PostScript data stream.
Note:
This functionality is not available in HP BarDIMM Pro.
Defining characteristics
The following operators let you further define characteristics of the bar code:
Operator
Characteristic
barcodeshow
Prints the specified bar code symbol.
barcodebbox
Returns the coordinates for the bounding box.
barcodewidth
Returns the X and Y displacements of the currentpoint.
For more information on bar code characteristic parameters and default values, see
“PostScript emulation
operators” on page
62
.
Command structure considerations
Developers must be familiar with the standard that defines the bar code symbology being implemented. The
incoming data is analyzed for valid parameters, such as string length and characters. When an invalid condition
is detected, an error message appears. For more information, see
“Common error messages” on page
131
.
Characteristic values, other than the default value, must be explicitly specified. If no value is specified, then the
default value is used. Previously specified non-default values are not retained.
Human
readable text (HRT)
HRT can be specified with one-dimensional bar codes under the following provisions:
The typeface used is specified with the /FontName key.
The specified text is centered on the bar code automatically.
The text is scaled automatically based on the width and height of the bar code and on the method of
embedding used.
Because two-dimensional bar codes can encode thousands of characters, HRT interpretation of the data may
not be practical. If descriptive text is printed with the symbol, then any character size and font available may
be selected. The text may be printed anywhere near the symbol and must not interfere with the bar code symbol
or its quiet zones.
Currentpoint positioning
Note:
Currentpoint positioning applies with or without HRT. It also considers any specified quiet zones to be
within the bounding box.
Lexmark Confidential until announced
PostScript emulation
60