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

One-dimensional bar codes, Operator, Function parameter, Range, Default value, Description

Page 63 highlights

Lexmark Confidential until announced PostScript emulation 63 Operator Function parameter barcodewidth String dict barcodewidth wx wy Similar to the stringwidth operator, this function returns the operand stack on the X and Y displacement of the currentpoint. A barcodeshow of the specified bar code symbol causes the displacement. For example: (0123456) > barcodewidth This operation returns two values on the stack. It indicates the change in currentpoint in the X and Y direction that results from a barcodeshow with the same data. This example specifies a bar code with the following information: • A leading quiet zone of 100 and a trailing quiet zone of 200 • A bar code height of 210 • Bars with widths of 10, 20, 30, and 40 • Spaces with widths of 9, 18, 27 and 36 It also specifies that using the Courier Bold font fully embeds the data within the code. For the EAN-8 symbology, the /Special key does not apply, and the checksum character always prints when the embedded text is specified, so /PrintCheckChar is irrelevant. One-dimensional bar codes Australia Post 4-State bar code descriptors Key Range Default value Description /Symbology N/A /AustralianPostal Identifies the bar code symbology. /Bars 40-60 dec 50 dec [int] Sets the bar width to 1/100 mm. /Spaces 22-25 dec 24 dec [int] Sets the number of bars that print per inch. /TrackerHeight 100-160 dec 130 dec [int] Sets the tracker height to 1/100 mm. /Ascender, Descender 160-210 dec 185 dec Offset [int] Sets the ascender and descender offset to 1/100 mm. The total height of an ascender or descender is the sum of this field and the tracker height.

  • 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

Operator
Function parameter
barcodewidth
String dict barcodewidth w
x
w
y
Similar to the stringwidth operator, this function returns the operand stack on the X and Y
displacement of the currentpoint. A barcodeshow of the specified bar code symbol causes the
displacement.
For example:
(0123456)
<<
/Symbology /EAN-8
/QuietZone [100 200]
/Bars [10 20 30 40]
/Spaces [ 9 18 27 36]
/Height 210
/EmbedText /Embedded
/FontName /Courier-Bold
>> barcodewidth
This operation returns two values on the stack. It indicates the change in currentpoint in the X and
Y direction that results from a barcodeshow with the same data.
This example specifies a bar code with the following information:
A leading quiet zone of 100 and a trailing quiet zone of 200
A bar code height of 210
Bars with widths of 10, 20, 30, and 40
Spaces with widths of 9, 18, 27 and 36
It also specifies that using the Courier Bold font fully embeds the data within the code. For the EAN-8
symbology, the /Special key does not apply, and the checksum character always prints when the
embedded text is specified, so /PrintCheckChar is irrelevant.
One-dimensional bar codes
Australia Post 4-State bar code descriptors
Key
Range
Default value
Description
/Symbology
N/A
/AustralianPostal
Identifies the bar code symbology.
/Bars
40–60 dec
50 dec
[int]
Sets the bar width to 1/100 mm.
/Spaces
22–25 dec
24 dec
[int]
Sets the number of bars that print per inch.
/TrackerHeight
100–160 dec
130 dec
[int]
Sets the tracker height to 1/100 mm.
/Ascender, Descender
Offset
160–210 dec
185 dec
[int]
Sets the ascender and descender offset to 1/100 mm.
The total height of an ascender or descender is the sum
of this field and the tracker height.
Lexmark Confidential until announced
PostScript emulation
63