Stamping Barcodes

Barcode Introduction

StampPDF Batch can stamp 1 or 2D barcodes directly using the Barcode Type. You always also have the option to use a Type 1 barcode font to stamp 1D barcodes.  For more information on stamping with Type 1 fonts see Font (optional).

Specify stamping a barcode by setting the Type parameter to Barcode:

Type (Barcode)

StampPDF Batch directly supports the following types of 1 and 2D barcodes:

Barcode Type StampPDF Code Keyword
Code 128 128
Code 3 of 9 39
Codabar Codabar
DataMatrix ECC200 DataMatrix
DotCode DotCode
Han Xin Code 汉信码 HanXin
Japan Post JapanPost
Korea Post KoreaPost
PDF 417 PDF417
Postnet Postnet
QR Code QR
UPC-A UPCA
UPC-E UPCE

 

Additional codes will be added in future releases. If you need a barcode which is not currently supported; please contact Appligent Support.

Barcode parameters

Code

Specifies the barcode type. Use instead of Font and FontFile. StampPDF Batch currently supports Code 128. Use:

Code (128)

to specify a Code 128 barcode.

StampPDF Batch uses Code 128 character set B. A simple Code 128 barcode (i.e., one character set) consists of a start character, the coded data, a calculated symbol check character, and an end character. StampPDF Batch automatically calculates the check character and places the start, check, and stop characters in the appropriate place. You only need to specify the data.

Size

Specifies the size of the barcode in points. 72 points equals one inch, so to meet UCC requirements of a minimum of 0.5 inch, specify 36 points

Default value: 12 points

Scale (optional)

The Scale parameter increases or decreases the size of the barcode when it is stamped onto the PDF document. A scale of 0.5 will make the image half (50%) of its original size, while a scale of 2 (200%) will double it.

Barcode Example

The figure below shows a stamp item that stamps a plain barcode at the bottom of the page.

# — Barcode Item — Comment
Begin_Message Begin Stamp Item
Name (BarcodeTest) Named BarcodeTest
Type (Barcode) Barcode stamp
Code (128) Create Code 128 barcode
StartPage (1) Start on first page
EndPage (1) Stamp only first page
Position (Bottom) Position barcode on bottom of page
Justification (Center) Center barcode
Underlay (no) Place it over existing text and graphics
Size (36) Size of barcode 36 points (1/2 inch)
Scale (0.5) Stamp barcode at 50% of its original size
Text (This is a test) Text of barcode “This is a test”
End_Message End Stamp Item

Barcode stamp

2D Barcode Example

The figure below shows a stamp item that stamps a plain barcode at the bottom of the page.

# — Barcode Item — Comment
Begin_Message Begin Stamp Item
Name (2D Barcode Test) Named 2D Barcode Test
Type (Barcode) 2D Barcode stamp
Code (DataMatrix) Create DataMatrix barcode
StartPage (1) Start on first page
EndPage (1) Stamp only first page
Position (Bottom) Position barcode on bottom of page
Justification (Center) Center barcode
Underlay (no) Place it over existing text and graphics
Text (This is a test) Text of barcode “This is a test”
End_Message End Stamp Item

DataMatrix Barcode Sample