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

PostScript emulation operators

Page 62 highlights

Lexmark Confidential until announced PostScript emulation 62 PostScript emulation operators Operator Function parameter barcodeshow String dict barcodeshow Similar to the show operator, this function prints the specified bar code symbol at the currentpoint and advances the currentpoint by the displacement of the symbol (as returned by the barcodewidth operator). For example: (01234567890) barcodebbox This operation returns four values on the stack indicating the coordinates of the lower‑left and the upper‑right corner of the box. The box fully encloses the bar code that results from doing a barcodeshow with the same arguments. This bar code has no quiet zone and no text embedded, if shown. The default height value of 240 is used. The default bar and space values of [6 18] are also used. The /Special key does not apply to the /Int2of5 symbology. Because there is no text embedded, /PrintCheckChar is irrelevant.

  • 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 operators
Operator
Function parameter
barcodeshow
String dict barcodeshow
Similar to the show operator, this function prints the specified bar code symbol at the currentpoint
and advances the currentpoint by the displacement of the symbol (as returned by the barcodewidth
operator).
For example:
(01234567890)
<<
/Symbology /UPC-A
/EmbedText /HalfEmbedded
/FontName /OCR-B
This operation prints a UPC
A symbol starting at the currentpoint with the data half
embedded using
the OCR
B font. The default quiet zone of 0.25 in. at the start and end of the bar code is used. The
default height of 620 and the default bar and space values of [8 16 24 32] are also used. The /Special
key defaults to false, so the checksum is printed at the bottom left of the bar code. For the UPC-A
symbology, the checksum character always prints when the embedded text is specified,
so /PrintCheckChar is irrelevant.
barcodebbox
String dict barcodebbox ll
x
ll
y
ur
x
ur
y
Similar to the pathbbox operator, if a barcodeshow shows the function, then the function returns the
coordinates for the bounding box that encloses the specified bar code symbol.
For example:
(123456)
<<
/Symbology /Int2of5
/EmbedText /NoText
/QuietZone [0 0]
>> barcodebbox
This operation returns four values on the stack indicating the coordinates of the lower
left and the
upper
right corner of the box. The box fully encloses the bar code that results from doing a
barcodeshow with the same arguments. This bar code has no quiet zone and no text embedded, if
shown. The default height value of 240 is used. The default bar and space values of [6 18] are also
used. The /Special key does not apply to the /Int2of5 symbology. Because there is no text
embedded, /PrintCheckChar is irrelevant.
Lexmark Confidential until announced
PostScript emulation
62