Examples

Adding Barcodes to PDF

Different types of Barcodes can be added to PDF easily using DynamicPDF Core Suite.

Watch the Video

DynamicPDF Core Suite Supported Barcodes

Codabar UPC-E ITF 14 Aztec
Code 11 EAN 14 Postnet QRCode
Code 128 IATA 25 MSI DataMatrix
Code 25 Interleaved 25 RM4SCC PDF417
Code 39 ISBN Singapore Post Macro PDF417
Code 93 ISMN Australia Post
EAN 8 ISSN KIX
EAN 13 GS1 DataBar UPC-A
Intelligent Mail barcode Stacked GS1 DataBar DeutschePost Identcode DeutschePost Leitcode

How to Add Codabar to PDF

The following steps and sample code illustrate adding a Codabar barcode to PDF document.

Steps for Creating a PDF Document

  1. Create a Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Codabar object and set its parameters.
  4. Add the Codabar to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Codabar barcode = new Codabar("A1234B", 50, 0, 48);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add Code11 to PDF

The following steps and sample code illustrate adding a Code11 barcode to a PDF document.

Steps for Creating a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Code11 object and set its parameters.
  4. Add the Code11 to the Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Code11 barcode = new Code11("12345678", 50, 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add Code128 to PDF

The following steps and sample code illustrate adding a Code128 barcode to a PDF document.

Steps for Creating a PDF Document

  1. Create a Document object.
  2. Create a Page object and add it to the Document object instance.
  3. Create a Code128 object and set its parameters.
  4. Add the Code128 to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Code128 barcode = new Code128("Code 128 Barcode.",	50, 50, 48, 0.75F);	
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add Code25 to PDF

The following steps and sample code illustrate adding a Code25 barcode to a PDF document.

Steps for Creating a PDF Document

  1. Create a Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Code25 object and set its parameters.
  4. Add the Code25 to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Code25 barcode = new Code25("1234567890", 50, 100, 48);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to add Code39 to PDF

The following steps and sample code add a Code39 barcode to a PDF document.

Steps for Creating a PDF Document

  1. Create a Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Code39 object and set its parameters.
  4. Add the Code39 to the Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Code39 barcode = new Code39("CODE 39", 50, 150, 48);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add Code93 to PDF

The following steps and sample code add a Code93 barcode to a PDF document.

Steps for Adding Code93 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Code93 object and set its parameters.
  4. Add the Code93 to the Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Code93 barcode = new Code93("CODE 93", 50, 150, 48);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add EAN 8 to PDF

The following steps and sample code illustrate adding a EAN 8 barcode to a PDF document.

Steps for Adding EAN 8 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document object.
  3. Create a Ean8 object and set its parameters.
  4. Add the Ean8 to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Ean8 barcode = new Ean8("12345670", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add EAN 8 Supplement2 to PDF

The following steps and sample code add a EAN 8 Supplement 2 barcode to a PDF document.

Steps for Adding EAN 8 Supplement2 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Ean8Sup2 object and set its parameters.
  4. Add the Ean8Sup2 to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Ean8Sup2 barcode = new Ean8Sup2("1234567012", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add EAN 8 Supplement5 to PDF

The following steps and sample code add a EAN 8 Supplement 5 barcode to a PDF document.

Steps for Adding EAN 8 Supplement5 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Ean8Sup5 object and set its parameters.
  4. Add the Ean8Sup5 to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Ean8Sup5 barcode = new Ean8Sup5("1234567012345", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add EAN13 to PDF

The following steps and sample code add a EAN 13 barcode to a PDF document.

Steps for Creating a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Ean13 object and set its parameters.
  4. Add the Ean13 to the Page object instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Ean13 barcode = new Ean13("123456789012", 50, 300);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add EAN13 Supplement2 to a PDF

The following steps and sample code add a EAN 13 Supplement 2 barcode to a PDF document.

Steps for Creating a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the document.
  3. Create a Ean13Sup2 object and set its parameters.
  4. Add the Ean13Sup2 to the Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Ean13Sup2 barcode = new Ean13Sup2("12345678901212", 50, 400);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add Ean13Supplement5 to a PDF

The following steps and sample code add a EAN 13 Supplement 2 barcode to a PDF document.

Steps for Creating a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Ean13Sup5 object and set its parameters.
  4. Add the Ean13Sup5 to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Ean13Sup5 barcode = new Ean13Sup5("12345678901212345", 50, 500);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add UpcVersionA to a PDF

The following steps and sample code add a UPC-A barcode to PDF document.

Steps for Adding UpcVersionA to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a UpcVersionA object and set its parameters.
  4. Add the UpcVersionA to the Page object instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
UpcVersionA barcode = new UpcVersionA("12345678901", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add UpcVersionA Supplement2 to a PDF

The following steps and sample code add a UPC-A Supplement 2 barcode to a PDF document.

Steps for Adding UpcVersionA Supplement2 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a UpcVersionASup2 object and set its parameters.
  4. Add the UpcVersionASup2 to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
UpcVersionASup2 barcode = new UpcVersionASup2("1234567890112", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add UpcVersionA Supplement5 to PDF

The following steps and sample code add a UPC-A Supplement 5 barcode to a PDF document.

Steps for Adding UpcVersionA Supplement5 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a UpcVersionASup5 object and set its parameters.
  4. Add the UpcVersionASup5 instance to the Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
UpcVersionASup5 barcode = new UpcVersionASup5("1234567890112345", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add UpcVersionE barcode to PDF

The following steps and sample code add a UPC-E barcode to a PDF document.

Steps for Adding UpcVersionE to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document object.
  3. Create a UpcVersionE object and set its parameters.
  4. Add the UpcVersionE to the Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
UpcVersionE barcode = new UpcVersionE("0123456", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add UpcVersionE Supplement2 to a PDF

The following steps and sample code illustrate adding a UPC-E Supplement 2 barcode to PDF document.

Steps for Adding UpcVersionE Supplement2 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document object.
  3. Create a UpcVersionESup2 object and set its parameters.
  4. Add the UpcVersionESup2 to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
UpcVersionESup2 barcode = new UpcVersionESup2("012345612", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add UpcVersionE Supplement5 to a PDF

The following steps and sample codeadd a UPC-E Supplement 5 barcode to PDF document.

Steps for adding UpcVersionE Supplement5 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a UpcVersionESup5 object and set its parameters.
  4. Add the UpcVersionESup5 object to Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
UpcVersionESup5 barcode = new UpcVersionESup5("012345612345", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add Ean14 to a PDF

The following steps and sample code illustrate adding a EAN 14 barcode to a PDF document.

Steps for Adding EAN14 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Ean14 object and set its parameters.
  4. Add the Ean14 instance to Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Ean14 barcode = new Ean14("1234567890123", 50, 50, 48, 0.75F);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add GS1 DataBar to a PDF

The following steps and sample code add a GS1 DataBar barcode to a PDF document.

Steps for Adding GS1 DataBar to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document object.
  3. Create a GS1DataBar object and set its parameters.
  4. Add the GS1DataBar object to Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
GS1DataBar barcode = new GS1DataBar("(01)9889876543210", 50, 50, 50, GS1DataBarType.Omnidirectional);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add Stacked GS1 DataBar to a PDF

The following steps and sample code illustrate adding a Stacked GS1 DataBar barcode to a PDF document.

Steps for Adding Stacked GS1 DataBar to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a StackedGS1DataBar object and set its parameters.
  4. Add the StackedGS1DataBar object to the Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
StackedGS1DataBar barcode = new StackedGS1DataBar("(01)9889876543210", 50, 50, 50, StackedGS1DataBarType.Stacked);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add IATA-25 to a PDF

The following steps and sample code illustrate adding an IATA 25 barcode to a PDF document.

Steps for Adding IATA-25 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Iata25 object and set its parameters.
  4. Add the Iata25 object to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Iata25 barcode = new Iata25("1234567", 50, 100, 48);
barcode.IncludeCheckDigit = true;
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add Interleaved 2 of 5 to a PDF

The following steps and sample code illustrate adding an Interleaved 2 of 5 barcode to a PDF document.

Steps for Creating a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Interleaved25 object and set its parameters.
  4. Add the Interleaved25 instance to the Page object instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Interleaved25 barcode = new Interleaved25("1234567890", 50, 200, 48);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add ISBN to PDF

The following steps and sample code illustrate adding a ISBN barcode to a PDF document.

Steps for Adding an ISBN to PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Isbn object and set its parameters.
  4. Add the Isbn object to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Isbn barcode = new Isbn("978-1-23-456789-7", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add ISBN Supplement2 to a PDF

The following steps and sample code illustrate adding a ISBN Supplement 2 barcode to PDF document.

Steps for Adding ISBN Supplement2 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document object.
  3. Create a IsbnSup2 object and set its parameters.
  4. Add the IsbnSup2 object to the Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
IsbnSup2 barcode = new IsbnSup2("978-1-23-456789-7", "12", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add ISBN Supplement5 to a PDF

The following steps and sample code illustrate adding a ISBN Supplement 5 barcode to a PDF document.

Steps for Adding ISBN Supplement5 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a IsbnSup5 object and set its parameters.
  4. Add the IsbnSup5 instance to the Page object instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
IsbnSup5 barcode = new IsbnSup5("978-1-23-456789-7", "12345", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add ISMN to a PDF

The following steps and sample code add a ISMN barcode to a PDF document.

Steps for Adding ISMN to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Ismn object and set its parameters.
  4. Add the Ismn object to the Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Ismn barcode = new Ismn("979-0-1234-5678", 50, 300);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add ISMN Supplement2 to a PDF

The following steps and sample code add a ISMN Supplement 2 barcode to a PDF document.

Steps for Adding ISMN Supplement2 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document object instance.
  3. Create a IsmnSup2 object and set its parameters.
  4. Add the IsmnSup2 object to the Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
IsmnSup2 barcode = new IsmnSup2("979-0-1234-5678", "12", 50, 300);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add ISMN Supplement5 to a PDF

The following steps and sample code illustrate adding an ISMN Supplement 5 barcode to A PDF document.

Steps for Adding ISMN Supplement5 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create aIsmnSup5object and set its parameters.
  4. Add the IsmnSup5 object instance to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
IsmnSup5 barcode = new IsmnSup5("979-0-1234-5678", "12345", 50, 300);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add ISSN to a PDF

The following steps and sample code illustrate adding a ISSN barcode to PDF document.

Steps for Adding ISSN to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document object.
  3. Create a Issnxobject and set its parameters.
  4. Add the Issn object instance to the Page object.
  5. Save the PDF Document.

Sample code - C#

Document document = new Document();
Page page = new Page();
Issn barcode = new Issn("977-1234-56700", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add ISSN Supplement2 to a PDF

The following steps and sample code add an ISSN Supplement 2 barcode to a PDF document.

Steps for Adding ISSN Supplement2 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create aIssnSup2object and set its parameters.
  4. Add the IssnSup2 object instance to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
IssnSup2 barcode = new IssnSup2("977-1234-56700", "12", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add ISSN Supplement5 to a PDF

The following steps and sample code illustrate adding an ISSN Supplement 5 barcode to a PDF document.

Steps for adding ISSN Supplement5 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create aIssnSup5object and set its parameters.
  4. Add the IssnSup5 object to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
IssnSup5 barcode = new IssnSup5("979-0-1234-5678", "12345", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add ITF-14 to PDF

The following steps and sample code add a ITF-14 barcode to a PDF document.

Steps for Creating a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document object.
  3. Create aItf14object and set its parameters.
  4. Add the Itf14 object to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Itf14 barcode = new Itf14("1234567890", 50, 50, 48);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add Postnet to a PDF

The following steps and sample code add a Postnet barcode to a PDF document.

Steps for Adding Postnet to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create aPostnetobject and set its parameters.
  4. Add the Postnet object to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Postnet barcode = new Postnet("20815470412", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add Intelligent Mail Barcode to a PDF

The following steps and sample code illustrate adding an Intelligent Mail Barcode to a PDF document.

Steps for Adding Intelligent Mail Barcode to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create aIntelligentMailBarcodeobject and set its parameters.
  4. Add the IntelligentMailBarcode object to the Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
IntelligentMailBarCode barcode = new IntelligentMailBarCode("0123456709498765432101234567891", 50, 150);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add MsiBarcode to a PDF

The following steps and sample code add a MSI barcode to PDF document.

Steps for adding MSI Barcode to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create aMsiBarcodeobject and set its parameters.
  4. Add the MsiBarcode instance to the Page object.
  5. Save the PDF Document.

Sample code - C#

Document document = new Document();
Page page = new Page();
MsiBarcode barcode = new MsiBarcode("1234567890", 50, 100, 48);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add RM4SCC to a PDF

The following steps and sample code add a RM4SCC barcode to a PDF document.

Steps for adding RM4SCC to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document object.
  3. Create aRm4sccobject and set its parameters.
  4. Add the Rm4scc object to Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Rm4scc barcode = new Rm4scc("20815470412", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add Singapore Post to PDF

The following steps and sample code add a Singapore Post barcode to PDF document.

Steps for Adding Singapore Post to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document object.
  3. Create aSingaporePostobject and set its parameters.
  4. Add the SingaporePost object to the Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
SingaporePost barcode = new SingaporePost("208154", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add Australia Post to PDF

The following steps and sample code add a Australia Post barcode to a PDF document.

Steps for Adding Singapore Post to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a AustraliaPost object and set its parameters.
  4. Add the AustraliaPost instance to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
AustraliaPost barcode = new AustraliaPost("1139549554", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add Kix barcode to a PDF

The following steps and sample illustrate adding a KIX barcode to a PDF document.

Steps for Creating a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document object.
  3. Create a Kix object and set its parameters.
  4. Add the Kix instance to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Kix barcode = new Kix("1231FZ13XHS", 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add DeutschePostIdentcode to a PDF

The following steps and sample code add a DeutschePostIdentcode barcode to a PDF document.

Steps for Adding DeutschePostIdentcode to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document object instance.
  3. Create a DeutschePostIdentcode object and set its parameters.
  4. Add the DeutschePostIdentcode instance to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
DeutschePostIdentcode barcode = new DeutschePostIdentcode("12345678901", 50, 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add DeutschePostLeitcode to a PDF

The following steps and sample code illustrate adding a DeutschePostLeitcode barcode to a PDF document.

Steps for Adding DeutschePostLeitcode to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document object.
  3. Create a DeutschePostLeitcode object and set its parameters.
  4. Add the DeutschePostLeitcode object to the Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
DeutschePostLeitcode barcode = new DeutschePostLeitcode("1234567890123", 50, 50, 50);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add Aztec to PDF

The following steps and sample code illustrate adding an Aztec barcode to a PDF document.

Steps for Creating a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create a Aztec object and set its parameters.
  4. Add the Aztec object instance to the Page object instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
Aztec barcode = new Aztec("Hello World", 50, 50, AztecSymbolSize.Full, 5);
page.Elements.Add(barcode);     
document.Draw(@"Output.pdf");

How to Add QRCode to a PDF in C#

The following steps and sample code illustrate adding a QRCode barcode to a PDF document.

Steps for Adding QR Code to a PDF

  1. Create a Document object.
  2. Create a Page object and add it to the Document object.
  3. Create a QrCode object and set its parameters.
  4. Add the QrCode object instance to the Page object instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
document.Pages.Add( page );
            
QrCode qrCode = new QrCode("QR code sample.", 100, 100);
page.Elements.Add(qrCode);
            
document.Draw(@"Output.pdf");

How to Add Data Matrix to a PDF

The following steps and sample code add a Data Matrix barcode to a PDF document.

Steps for Adding DataMatrix to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document object instance.
  3. Create a DataMatrixBarcodeobject and set its parameters.
  4. Add the DataMatrix object to the Page object.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
document.Pages.Add(page);
DataMatrixBarcode dataMatrixBarcode = new DataMatrixBarcode("DataMatrix to PDF", 100, 100);
page.Elements.Add(dataMatrixBarcode);
document.Draw(outputPath);

How to Add PDF417 to a PDF

The following steps and sample code illustrate adding a PDF 417 barcode to a PDF document.

Steps for Creating a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create aPdf417object and set its parameters.
  4. Add the Pdf417 instance to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
document.Pages.Add( page );
Pdf417 pdf417 = new Pdf417( "Pdf417 to PDF", 10.0f, 10.0f, 2, 2.0f );
page.Elements.Add( pdf417 );
document.Draw(outputPath);

How to Add MacroPdf417 to a PDF

The following steps and sample code add a Macro PDF 417 barcode to a PDF document.

Steps for Adding Macro PDF417 to a PDF Document

  1. Create Document object.
  2. Create a Page object and add it to the Document instance.
  3. Create aMacroPdf417object and set its parameters.
  4. Add the MacroPdf417 instance to the Page instance.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
document.Pages.Add(page);
MacroPdf417 macroPdf417 = new MacroPdf417("MacroPdf417 to PDF", 10.0f, 10.0f, 3, 2.0f);
page.Elements.Add(macroPdf417);
document.Draw(outputPath);

GitHub Project

Clone or view the example project at GitHub. This example code is contained in the Examples/BarcodeExample.cs file.

Clone or View Example Project on GitHub

Getting Started

NuGet Package

The easiest way to install DynamicPDF Core Suite is by obtaining the NuGet package using Visual Studio's Package Manager. You can also obtain the NuGet package by downloading it directly.

NuGet Package ID: ceTe.DynamicPDF.CoreSuite.NET

DynamicPDF Core Suite Information

More information on DynamicPDF Core Suite can be found here.

Java and COM/ActiveX Platforms

The DynamicPDF Core Suite is also available for Java and COM/ActiveX. Refer to the respective product pages for more details.

Why Choose DynamicPDF?

  • Transparent Pricing
  • Lots of Features
  • Easy to Use
  • Great Support
  • Efficient Performance
  • Product Maturity (Over 22 Years)
  • Free Evaluation
  • .NET Core Support (Most Products)
  • Flexible Licensing

We’re Not The Only Ones That Think We’re Great!