PostScript emulation operator
77
barcodebbox String dict barcodebbox ll
x
ll
y
ur
x
ur
y
This function returns the coordinates for the bounding box that encloses the specified
bar code symbol if it is shown by a barcodeshow.
This is similar to the pathbbox operator.
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 upper right corner of the box that fully encloses the bar code that will result from
doing a barcodeshow with the same arguments. This bar code has no quiet zone and no
text embedded, if shown. The value used for height is the default, 240. The values for
bars and spaces are also 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 the operand stack on the x and y displacement of the currentpoint
that is 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 returns two values on the stack, indicating 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 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