Debenu Quick PDF logo


Vector graphics, Barcodes


Draws a barcode on the selected page.

For Code128, the barcode is a combination of the "B" and "C" character sets resulting in the most compact representation.

GS1-128 barcodes (also known as EAN-128) can be drawn by setting the Barcode parameter to 3 (Code128) and using the string "[FNC1]" in the appropriate place. For example:


The previous example indicates a serial number (AI 21) of "ABC123" and a product variant (AI 20) of "13".


Windows/Delphi, Windows/ActiveX, Windows/DLL, Mac/Dylib, iOS, Android


Left double Horizontal co-ordinate of left edge of the barcode
Top double Vertical co-ordinate of top edge of the barcode
Width double Width of the barcode
Height double Height of the barcode
Text unistr The barcode data.
For UPC the string must be 13 digits long with a leading zero.
The barcode can be rotated by appending the following to the barcode data string:
/RC = Rotate clockwise
/RA = Rotate anti-clockwise
/RU = Rotate 180 degrees
Barcode int32 1 = Code39 (or Code 3 of 9)
2 = EAN-13 or UPC
3 = Code128
4 = PostNet
5 = Interleaved 2 of 5
Options int32 Code39:
0 = Default drawing
EAN-13 or UPC:
0 = Only draw the barcode
1 = Extend the guard bars
2 = Draw the human-readable numbers
3 = Draw the human-readable numbers, with right spacer
4 = Draw as UPC (leading zero is not shown)
0 = Default drawing
0 = Default drawing
Interleaved 2 of 5:
0 = Do not add a checksum, no bearer bars
1 = Add a checksum character, no bearer bars
2 = Do not add a checksum, draw bearer bars
3 = Add a checksum character, draw bearer bars
To apply 10% bar width reduction to the barcode, increase the value of the Options parameter by 10

Return type and values

0 int32 The barcode could not be drawn. Invalid Barcode or Options parameters.
1 int32 The barcode was drawn successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport