PDF .NET Library Logo

Barcode Sample

This demonstration shows how to create a PDF document that includes barcodes.
You may wish to change barcode values.
While changing barcode values please follow the barcode specifications.

Barcode Type Value Sample and Explanation
Australia Post

Description: Australia Post is a type of 4-State bar code. Each symbol comprises four types of bars ('states') each of which is identified by both a name and a value. Each bar comprises a 'tracker' (middle section), to which an 'ascender'(top section) and/or 'descender' (bottom section) may be added. Using this 4-State format allows the code to contan more information in a set length than other postal codes while making the symbol easier to decode. It also allows the codes to be reliably printed using simple printing techniques such as dot matrix, bubble/ink jet and laser.
The value to encode has the following structure:
  • 2 digits for Format Control Code (FCC) which only valid values are: 11, 87, 45, 92, 59, 62, or 44
  • 8 digits for Sorting Code or Delivery Point Identifier (DPID)
  • Alpha numeric characters (free format) for Customer Information Field (only available for FCC equals to 59, 62, or 44)
    • For FCC equals to 59, this field is limited to 5 characters
    • For FCC equals to 62 or 44, this field is limited to 10 characters

Description: (Also known as Codeabar, Ames Code, NW-7, Monarch, Rationalized Codabar, ANSI/AIM BC3-1995, USD-4) This symbology was designed by Pitney Bowes to be accurately read even when printed on dot-matrix printers for multi-part forms such as FedEx airbills and blood bank forms.
Code 128

Description: (Also known as GS1-128, UCC/EAN-128) A very effective, high-density symbology capable of encoding a relatively large amount of data in a relatively small amount of space. It can encode all 128 ASCII characters and is also capable of encoding two numbers into one character width using one of the three available code sets.
Code 11

Description: (Also known as USD-8) A High-density symbology able to encode numbers 0 - 9, the dash symbol (-) and start/stop characters. Code 11 is not very secure and printing imperfections can easily convert one character into an alternate valid character. One or two check characters are used to improve data integrity.
Code 32

Description: Used in Italy only, for coding pharmaceuticals, cosmetics and dietetics. Uses a specific encoding that represents in Code 39 the ascii code of digits, converted in base 32.
Code 39

Description: (Also known as USS Code 39, Code 3/9, Code 3 of 9, USD-3, Alpha39) The first alpha-numeric symbology that originally encoded 39 characters (now 43) including uppercase letters (A - Z), digits (0 - 9) and a few special characters like the $ sign. The entire ASCII character set can be encoded using Code 39�s Full ASCII mode. The bar code does not contain a check digit but is considered self-checking because a single erroneously decoded bar can not generate another valid character. The code has very low data density compared to other 1D codes which does not make it feasible for small space applications.
Code 93

Description: An alphanumeric, variable length symbology designed to provide a higher density and data security enhancement to Code 39. Every symbol includes two check characters and is capable of combining characters to unambiguously represent all 128 ASCII characters.
Deutsche Post Identcode

Description: Identcode barcode Symbology is used by German Post (Deutsche Post AG) (Deutsche Frachtpost). Also known as: Deutsche Post AG Identcode, German Postal 2 of 5 Identcode, Deutsche Post AG (DHL), Deutsche Frachtpost Identcode, Identcode, CodeIdentcode. The Identcode contains a tracking number providing an identification of the customer (sender) and the mail piece. The value to encode length is 11 digits plus 1 digit checksum which is calculated automatically. The value to encode must have the following structure:
  • 2 digits for ID of primary distribution center.
  • 3 digits for Customer ID.
  • 6 digits for Mailing number.
Deutsche Post Leitcode

Description: Leitcode barcode Symbology is used by German Post (Deutsche Post AG) (Deutsche Frachtpost). Also known as: German Postal 2 of 5 Leitcode, CodeLeitcode, Leitcode, Deutsche Post AG (DHL). The Leitcode gives an indication of the destination. The value to encode length is fixed to 13 digits plus 1 digit checksum which is calculated automatically. The value to encode must have the following structure:
  • 5 digits for Postal code (Postleitzahl, PLZ)
  • 3 digits for Street ID/number
  • 3 digits for House number
  • 2 digits for Product code
EAN 13

Description: The European Article Numbering system, EAN, developed in 1977, is a superset of UPC. EAN-13 is a numeric, continuous and fixed-length code. The EAN-13 symbol contains the same number of digits as UPC-A. It also includes a thirteenth digit as a check character, calculated using the Modulo 10 algorithm.

Description: EAN-8 is a shorter version of EAN-13. EAN-8 encodes 8 digits, which includes a 2 to 3 digit number system and a 4 to 5 digit product code. EAN-8 is encoded using EAN-13 character set.
Industrial 2 of 5

Description: Industrial 2 of 5 (developed in 1960s) is a low-density, variable-length numeric symbology. The symbology is called "2 of 5" due to the fact that digits are encoded with 5 bars, 2 of which are always wide (generally 3 times as wide as narrow bar) and the remaining three are narrow. The spaces in the barcode exist only to separate the bars themselves. The exact size of the spaces is not critical, but is generally the same width as a narrow bar.
Interleaved 2 of 5

Description: Interleaved 2 of 5 is a high-density, variable-length, bi-directional, self-checking, continuous, numeric symbology. It has the name "Interleaved" because two numeric digits are interleaved together, with the bars representing one digit and the spaces representing a second digit.

Description: An International Standard Book Number (ISBN) is a unique identification of a title or edition of a book or other monographic publication published or produced by a specific publisher or producer. ISBN is a numeric code and has fixed-length. The ISBN is used in all branches of the book sector.

Description: ISSN (International Standard Serial Number) is a numbering system for serial publications. ISSN is a numeric code and has fixed length.
ISSN is an 8 digit number encoded using EAN-13 symbology with "977" as the prefix. The eigth digit of the ISSN is a control digit calculated using a modulo 11 algorithm from the preceding 7 digits.
Itf 14

Description: The ITF-14 barcode is used to create the Shipping Container Symbol. ITF-14 is created using Interleaved 2 of 5 symbology. and contains 14 digits including 1 checksum character which can be added automatically.
Jan 13

Description: JAN-13 (Japanese Article Numbering) barcode Symbology is another name for EAN-13 barcode Symbology. For JAN barcodes the first two digits must be 45 or 49 which identifies Japan.
Jan 8

Description: JAN-8 (Japanese Article Numbering) barcode Symbology is another name for EAN-8 barcode Symbology. For JAN barcodes the first two digits must be 45 or 49 which identifies Japan.

Description: MSI (Modified Plessy Code) developed by MSI Data Corporation, also known as Modified Plessy, is a variation of original Plessy Code. MSI is a variable-length symbology, however various applications use fixed length codes. MSI symbology does not have any self-checking capabilities.

Description: It is a unique identifier that allows an author or publisher to assign to content and track licensing of each id assignment. Numly Numbers are useful if you wish to identify each electronic distributed copy of any form of electronic media. Media types could include: Blogs, Emails, MP3s, Videos, PDFs, eBooks, Software, Websites, etc. Numly Numbers can also act a third-party content submission time stamps to aid in copyright proving instances and emails. The Numly Number consists of a 19 digit number generated by an algorithm by Numly.com

Description: The OPC code is used for marking retail optical products. The value to encode length is fixed to 10 digits and it must have the following structure:
  • 5 digits for Manufacturer Identification Number assigned by the Optical Product Code Council, Inc.
  • 4 digits Item Identification Number assigned and controlled by the optical manufacturer. The item identification number must be unique to each individual product.
  • 1 digit for checksum which is calculated automatically.

Description: Pharmacode is a bar code standard, used in the pharmaceutical industry as a packing control system. It is designed to be readable despite printing errors. Pharmacode is a directional bar code that can only be read in one direction. It can be printed in multiple colors as a check to ensure that the remainder of the packaging (which the pharmaceutical company must print to protect itself from legal liability) is correctly printed. The correct terminology for this is actually "Pharmaceutical Binary Code"

Description: The PostaL Alpha Numeric Encoding Technique (PLANET) barcode is used by the United States Postal Service to identify and track pieces of mail during delivery. Each code is either 12 or 14 digits long and encodes data in half and full-height bars similar to the POSTNET symbology. The code always starts and ends with a full bar (often called a guard rail) and each individual digit is represented by a set of five bars using a two-out-of-five code where two of the bars are always short.

Description: POSTNET is a barcode symbology that is used by the United States Postal Service to assist in directing mail. The ZIP Code or ZIP+4 code is encoded in this unique symbology that encodes data in half- and full-height bars. Most often, the delivery point is added, usually being the last two digits of the address or PO box number. The symbol is encoded very similar to the PLANET code except that each set of five bars has two large bars out of five.

Description: PZN is used for distribution of pharmaceutical / health care products in Germany. The value to encode length is fixed to 6 digits plus 1 digit checksum which is calculated automatically.
Royal Mail (RM4SCC)

Description: RM4SCC is the bar code symbology used by the Royal Mail for its Cleanmail service. It is a type of 4-State Bar Code that enables UK postcodes to easily be read by a machine at high speed. The bar code encodes the postcode as well as the delivery point suffix and a checksum character. There are strict guidelines governing usage of these bar codes, which allow for maximum readability by machines. They are used with Royal Mail's Cleanmail system to allow businesses to easily and cheaply send large quantities of letters.

Description: The KIX-code was created in 1999 for sorting letters in the Netherlands. It is another type of 4-State bar code and is an abbreviation for Klant IndeX (Client Index). The KIX is a simple bar code where each letter or number is represented by four bars.

Description: SCC-14 (Shipping Container Code) is a 14-digit number assigned to fixed content shipping containers. The most widely used representation of SCC-14 is based on UCC/EAN-128 Barcode Symbology with the Application Identifier (AI) 01. However, other common implementation of SCC is called ITF-14.
Singapore Post

Description: This Symbology is used by Singapore Post (SingPost) for Postal code and automatic mail sorting. It�s based on RM4SCC and provides information about the address of the receiver.
Sscc 18

Description: The Serial Shipping Container Code is used to identify individual shipping containers. This is used, generally, to establish a number that is unique worldwide to track a specific container.
SSCC-18 is encoded with Code128 symbology (UCC/EAN-128). Barcode is 18 characters long including 1 checksum character which can be added automatically, and has the following structure:
  • Packaging Type (1 character).
    • 0=Case or carton.
    • 1=Pallet (Larger than a case).
    • 2=Container (larger than a pallet).
    • 3=Undefined.
    • 4=Internal company use.
    • 5-8=Reserved.
    • 9=Variable container.
  • UPC/EAN Manufacturer Number (variable length). This is the same company code used in EAN-8/EAN-13/UPC-A barcodes.
  • Serial Number (variable Length). This is a unique serial number assigned by the manufacturer.
  • Check digit(1 character).
Two digits, called Application Identifier (AI) are added at the beginning of the barcode (00).
Swiss PostParcel

Description: It identifies each parcel. All parcels must have a unique barcode. The barcode is the requirement for automated processing. The structure of the Swiss Post Parcel barcode is 18 numeric digits:
  • 2 digits for Swiss Post reference ,
  • 8 digits for Franking license number,
  • 8 digits for Item number.

Description: Telepen is a name of a bar code symbology designed in 1972 in the UK to express all 128 ASCII characters without using shift characters for code switching, unlike Code 128, while only using two different widths for bars and spaces. Unlike most linear barcodes that specify the encodings for each representable character, Telepen only defines 4 basic bar-space modules.
Ucc/Ean 128

Description: EAN-128 / UCC-128 is the same as Code 128, except, EAN 128 defines a set of application identifiers (AI's), and associated rules for defining a code. UCC/EAN-128 encodes data as well as defining what that data represents. SSC 14 (UCC 14, DUN 14) and SSCC 18 (UCC-18) can be encoded via UCC 128 by using appropriate application identifier.

An Application Identifier (AI) is a prefix code used to identify the meaning and the format of the data that follows it (data field). There are application identifiers for identification, traceability, dates, quantity, measurements, locations, and many other types of information. For example, the AI for batch number is 10, and the batch number AI is always followed by an alphanumeric batch code not to exceed 20-characters.

Description: UPC-E is a compacted form of UPC-A where the extra zeros are elimanated. The resulting barcode can be used on small packages as the barcode size is roughly half that of UPC-A.

Description: The UPC-A (Universal Product Code, invented in 1973) is a 12 digit, numeric symbology used in retail applications and is by far the most common and well-known barcode symbology in the United States. It is designed to uniquely identify a product and its manufacturer. You will find UPC-A barcode on virtually every consumer good at your local supermarket, as well as on books, magazines, and newspapers.

Description: The Facing Identification Mark, or FIM, is a bar code designed by the United States Postal Service to assist in the automated processing of mail. The FIM is a set of vertical bars printed on the envelope or postcard near the upper edge, just to the left of the postage area (the area where the postage stamp or its equivalent is placed). The FIM is intended for use primarily on preprinted envelopes and postcards and is applied by the company printing the envelopes or postcards, not by the USPS.
The four codes have the following uses:
  • FIM A is used for courtesy reply mail and metered reply mail with a preprinted POSTNET bar code. In both of these types of mail, the postage is prepaid, either by a postage stamp in the case of courtesy reply mail or by a postage meter in the case of metered reply mail.
  • FIM B is used for business reply mail without a preprinted ZIP+4 bar code.
  • FIM C is used for business reply mail with a preprinted ZIP+4 bar code.
  • FIM D is used only with IBI postage.
Intelligent Mail

Description: (Also known as USPS 4CB, OneCode Solution Barcode, OneCode ACS) The Intelligent Mail� barcode (formally known as the 4-State Customer Barcode) is the next generation of USPS� bar code technology used to sort and track letters and flats. Intelligent Mail� bar code technology, among other things, combines the capabilities of the POSTNET barcode and the Planet Code� bar code into one unique bar code. The 31-digit Intelligent Mail barcode (65 bars) is slightly longer than the 11-digit POSTNET barcode (62 bars), and it offers mailers certain flexibility in choosing the height and width of the bar code.
Usps Sack Label

Description: Sack Label is used by United States Postal Services (USPS) for:
  • labeling of postal sacks,
  • automation rate mailings,
  • periodicals and standard mail (letter size and flat size pieces).
It contains the "ZIP code" of the receiver and a "Content Identifier Number". The value to encode length is fixed to 8 digits and it must have the following structure:
  • 5 digits for "ZIP code" (express, priority, first-class, periodicals, standard, package)
  • 3 digits for "Content Identifier Number" [CIN] (mailing class, presorting, automation process sack)
Usps Tray Label

Description: Sack Label is used by United States Postal Services (USPS) for:
  • labeling of postal trays,
  • automation rate mailings,
  • periodicals and standard mail (letter size and flat size pieces).
It contains the "ZIP code" of the receiver and a "Content Identifier Number". The value to encode length is fixed to 10 digits and it must have the following structure:
  • 5 digits for "ZIP code" (express, priority, first-class, periodicals, standard, package)
  • 3 digits for "Content Identifier Number" [CIN] (mailing class, presorting, automation process sack)
  • 2 digits for "Processing Code"
Code 16k

Description: The Code 16K barcode is a multiple-row bar code that can encode the full ASCII character set below ASCII 128. It uses existing UPC and Code 128 character set patterns. Up to 77 full ASCII characters or 154 numeric characters can be encoded. These characters are encoded into 2 to 16 rows. Each row is divided by a separator bar. The top and bottom of the symbol also have separator bars that extend to the ends of the minimum quiet zones.
Aztec Code

Description: A high-density two-dimensional matrix symbology originally created in 1995. The symbology can encode all of the characters in the ASCII character set. The symbol is built on a square grid with a bulls-eye pattern at its center which allows the code to be quickly and easily located.
Compact Pdf417

Description: PDF417 barcode will be drawn in the compact mode. In earlier specifications of PDF417, this was called Truncated PDF417. Compact PDF417 is a preferred term to avoid confusion with the more general use of the term 'truncated'.

Description: A Data Matrix code is a two-dimensional matrix barcode consisting of black and white square modules arranged in either a square or rectangular pattern. The information to be encoded can be text or raw data. Usual data size is from a few bytes up to 2 kilobytes. The length of the encoded data depends on the symbol dimension used. Error correction codes are added to increase symbol strength: even if they are partially damaged, they can still be read. A Data Matrix symbol can store up to 2,335 alphanumeric characters.
Macro Pdf417

Description: Macro PDF417 provides a means for creating a distributed representation of files too large to be represented by a single PDF417 symbol. Macro PDF417 symbols differ from ordinary PDF417 symbols in that they contain additional control information used to support this distributed representation. This allows a decoder to make use of this information to correctly reconstruct and verify the file, independent of the symbol scanning order.
Micro Pdf417

Description: MicroPDF417 is derived from PDF417 and intended for applications where the symbol must be smaller than what PDF417 will allow. The code has a limited set of symbol sizes and a fixed level of error correction. One of three compaction modes can be specified: data, text or numeric. Text Compaction mode permits all printable ASCII characters to be encoded (values 32 to 126 inclusive) as well as selected control characters. Byte Compaction mode permits all 256 possible 8-bit byte values to be encoded. This includes all ASCII characters value 0 to 127 inclusive and provides for international character set support. Numeric compaction mode encodes only numbers 0-9.

Description: PDF417 is a 2-dimensional stacked bar code created by Symbol Technologies in 1991. It is one of the most popular 2D codes because of its ability to be read with slightly modified handheld laser or linear CCD scanners. PDF stands for Portable Data File and 417 represents the 17 modules of 4 bars and spaces that make up each code. Each symbol also has start and stop bar groups that allow the code to be easily identified.

Description: A QR Code is a 2D matrix code created by the Japanese corporation Denso-Wave in 1994. The "QR" is derived from "Quick Response", as the creator intended the code to allow its contents to be decoded at high speed. QR Codes are currently the most popular type of two dimensional code in Japan. Their popularity is increasing with applications like storing addresses, URLs and business card contact information that can be captured and utilized by mobile phones equipped with a camera.

Description: The fundamental concept of semacode is the URL barcode. A barcode is a machine readable visual tag, and a URL (Universal Resource Locators) is an internet address. Semacode Tag is the encoding of URLs into barcodes based on Data Matrix 2D Symbology.