USPS Intelligent Mail Package Barcodes

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v10)  /  Re: USPS Intelligent Mail Package Barcodes

DynamicPDF CoreSuite for .NET (v10) Forum

We have been using Code128 to create USPS certified barcode containing one Action Identifier. Now we are trying to create USPS Package barcode (priority) which requires two Action Identifiers in the barcode. Can you let us know how we can achieve that? See below for the spec and we need to insert two FNC1 codes in the barcode.

https://www.barcodefaq.com/usps-postal/usps-impb-gs1-128/

Posted by a ceTe Software moderator
Hello,

You can achieve your requirement using DynamicPDF Generator for .NET. You will need to use "~1" in the barcode input text to add FNC1. The "~" (tilde) alone has no value. You can add multiple FNC1 characters without any problem.

Setting IsUCCEAN128  property to true will add a FNC1 character at the beginning of the barcode indicating that the barcode is GS1(EAN128). 
 
Here is  sample code:

            Document doc = new Document();
            Page page = new Page();
            Code128 code = new Code128("42035283~19205596900873000000029", 10, 10, 50);
            code.ProcessTilde = true;
            code.IsUCCEAN128 = true;
            page.Elements.Add(code);
            doc.Pages.Add(page);
            doc.Draw("code-gs1-128.pdf");

Also, we do not validate any AI numbers (Application Identifiers), you will need to make sure to provide the correct values.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 5:53 PM.