Lexmark X864 Forms and Bar Code Technical Reference - Page 72

Symbology /Int2of5, EmbedText /Embedded

Page 72 highlights

Operator barcodebbox barcodewidth Function/parameters String dict barcodebbox llx lly urx ury This function returns the coordinates for the bounding box that would enclose the specified bar code symbol if it were shown by a barcodeshow. This is similar to the pathbbox operator. Example: (123456) > barcodebbox This operation will return four values on the stack indicating the coordinates of the lower left and upper right corner of the box that fully encloses the bar code that would result from doing a barcodeshow with the same arguments. This bar code would have no quiet zone and no text embedded, if shown. The value used for height will be the default, 240. The values for bars and spaces will also be the defaults, [6 18]. The /Special key does not apply to the /Int2of5 symbology. Because there is no text embedded, / PrintCheckChar is irrelevant. String dict barcodewidth wx wy This function returns on the operand stack the x and y displacement of the currentpoint that would be caused by a barcodeshow of the specified bar code symbol. This is similar to the stringwidth operator. Example: (0123456) > barcodewidth This operation will return two values on the stack, indicating the change in currentpoint in the x and y direction that would have resulted from a barcodeshow with the same data. This example specifies a bar code with 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, and spaces with widths of 9, 18, 27 and 36. It also specifies that the data is to be fully embedded within the code using the Courier-Bold font. For the EAN-8 symbology, the /Special key does not apply and the checksum character always prints when embedded text is specified so /PrintCheckChar is irrelevant. PostScript emulation operator 69

  • 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
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165

PostScript emulation operator
69
barcodebbox
String dict barcodebbox ll
x
ll
y
ur
x
ur
y
This function returns the coordinates for the bounding box that would enclose the
specified bar code symbol if it were shown by a barcodeshow.
This is similar to the pathbbox operator.
Example:
(123456)
<<
/Symbology /Int2of5
/EmbedText /NoText
/QuietZone [0 0]
>> barcodebbox
This operation will return four values on the stack indicating the coordinates of the lower
left and upper right corner of the box that fully encloses the bar code that would result
from doing a barcodeshow with the same arguments. This bar code would have no quiet
zone and no text embedded, if shown. The value used for height will be the default, 240.
The values for bars and spaces will also be the defaults, [6 18]. The /Special key does
not apply to the /Int2of5 symbology. Because there is no text embedded, /
PrintCheckChar is irrelevant.
barcodewidth
String dict barcodewidth w
x
w
y
This function returns on the operand stack the x and y displacement of the currentpoint
that would be caused by a barcodeshow of the specified bar code symbol.
This is similar to the stringwidth operator.
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 will return two values on the stack, indicating the change in currentpoint in
the x and y direction that would have resulted from a barcodeshow with the same data.
This example specifies a bar code with 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, and spaces
with widths of 9, 18, 27 and 36.
It also specifies that the data is to be fully embedded
within the code using the Courier-Bold font. For the EAN-8 symbology, the /Special key
does not apply and the checksum character always prints when embedded text is
specified so /PrintCheckChar is irrelevant.
Operator
Function/parameters