activePDF Toolkit 2011 API Reference
PostNET

Glossary Item Box

Overview

Developed by the United States Post Office, PostNET (Postal Numeric Encoding Technique) is used to encode ZIP information.

NOTE: There are specific placement requirements when using PostNET barcodes. The complete details are available on the United States Postal Service web site.


Encoding

PostNET can encode 10 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9.

Structure

PostNET has the following structure:
  • Frame bar (long).
  • Encoded value - 5, 9, or 11 data characters.
  • Check digit.
  • Final frame bar (long).

Requirements

Each PostNET barcode consists of a series of five bars, constructed from shorts (encoded as 0) and longs (encoded as 1). The barcode is enclosed by two long frame bars surrounding the encoded address information and check digit. Toolkit automatically calculates and applies the checkdigit as needed. Depending on the form of encoding used, A PostNET barcode will have 32, 52, or 62 bars including the frame bars and check digit.

A US delivery address is encoded as a 5-digit ZIP (For example, 92691), 5-digit ZIP + 4 code (92691- 6314), 11-digit delivery point code (92691-6314-05). If you specify a full address in your encoded value, Toolkit will ignore the non-numerical information. For example, if you specify "Mission Viejo, CA 92691-6314", the barcode encodes only "92691-6314".

PostNET is different from other barcodes, as the information is encoded using the barcode height rather than the relation between the bars and spaces.

Toolkit generates PostNET barcodes according to the USPS standard requirements. By default, Toolkit displays the human readable text. Set ShowHRText to false to comply with the standard requirements.