Examples

Adding Barcodes to PDF (.NET Core/Framework)

Different types of Barcodes can be added to PDF easily using DynamicPDF Generator. The following Barcodes can be created and added to a PDF document

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

Below are steps and sample code to add a Codabar barcode to 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 Codabar object and set the necessay parameters.
  4. Add the Codabar to Page.
  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(@"C:\Output.pdf");

How to add Code11 to PDF

Below are steps and sample code to add a Code11 barcode to 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 Code11 object and set the necessay parameters.
  4. Add the Code11 to Page.
  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(@"C:\Output.pdf");

How to add Code128 to PDF

Below are steps and sample code to add a Code128 barcode to 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 Code128 object and set the necessay parameters.
  4. Add the Code128 to Page.
  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(@"C:\Output.pdf");

How to add Code25 to PDF

Below are steps and sample code to add a Code25 barcode to 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 Code25 object and set the necessay parameters.
  4. Add the Code25 to Page.
  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(@"C:\Output.pdf");

How to add Code39 to a PDF

Below are steps and sample code to add a Code39 barcode to 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 Code39 object and set the necessay parameters.
  4. Add the Code39 to Page.
  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(@"C:\Output.pdf");

How to add Code93 to PDF

Below are steps and sample code to add a Code93 barcode to 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.
  3. Create a Code93 object and set the necessay parameters.
  4. Add the Code93 to Page.
  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(@"C:\Output.pdf");

How to add EAN 8 to PDF

Below are steps and sample code to add a EAN 8 barcode to 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.
  3. Create a Ean8 object and set the necessay parameters.
  4. Add the Ean8 to Page.
  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(@"C:\Output.pdf");

How to add EAN 8 Supplement2 to PDF

Below are steps and sample code to add a EAN 8 Supplement 2 barcode to 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.
  3. Create a Ean8Sup2 object and set the necessay parameters.
  4. Add the Ean8Sup2 to Page.
  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(@"C:\Output.pdf");

How to add EAN 8 Supplement5 to PDF

Below are steps and sample code to add a EAN 8 Supplement 5 barcode to 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.
  3. Create a Ean8Sup5 object and set the necessay parameters.
  4. Add the Ean8Sup5 to Page.
  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(@"C:\Output.pdf");

How to add EAN13 to PDF

Below are steps and sample code to add a EAN 13 barcode to 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 Ean13 object and set the necessay parameters.
  4. Add the Ean13 to Page.
  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(@"C:\Output.pdf");

How to add EAN13 Supplement2 to PDF

Below are steps and sample code to add a EAN 13 Supplement 2 barcode to 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 the necessay parameters.
  4. Add the Ean13Sup2 to Page.
  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(@"C:\Output.pdf");

How to add Ean13Supplement5 to PDF

Below are steps and sample code to add a EAN 13 Supplement 2 barcode to 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 Ean13Sup5 object and set the necessay parameters.
  4. Add the Ean13Sup5 to Page.
  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(@"C:\Output.pdf");

How to add UpcVersionA to PDF

Below are steps and sample code to 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.
  3. Create a UpcVersionA object and set the necessay parameters.
  4. Add the UpcVersionA to Page.
  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(@"C:\Output.pdf");

How to add UpcVersionA Supplement2 to PDF

Below are steps and sample code to add a UPC-A Supplement 2 barcode to 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.
  3. Create a UpcVersionASup2 object and set the necessay parameters.
  4. Add the UpcVersionASup2 to Page.
  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(@"C:\Output.pdf");

How to add UpcVersionA Supplement5 to PDF

Below are steps and sample code to add a UPC-A Supplement 5 barcode to 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.
  3. Create a UpcVersionASup5 object and set the necessay parameters.
  4. Add the UpcVersionASup5 to Page.
  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(@"C:\Output.pdf");

How to add UpcVersionE barcode to PDF

Below are steps and sample code to add a UPC-E barcode to 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.
  3. Create a UpcVersionE object and set the necessay parameters.
  4. Add the UpcVersionE to Page.
  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(@"C:\Output.pdf");

How to add UpcVersionE Supplement2 to PDF

Below are steps and sample code to add 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.
  3. Create a UpcVersionESup2 object and set the necessay parameters.
  4. Add the UpcVersionESup2 to Page.
  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(@"C:\Output.pdf");

How to add UpcVersionE Supplement5 to PDF

Below are steps and sample code to add 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.
  3. Create a UpcVersionESup5 object and set the necessay parameters.
  4. Add the UpcVersionESup5 to Page.
  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(@"C:\Output.pdf");

How to add Ean14 to PDF

Below are steps and sample code to add a EAN 14 barcode to 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.
  3. Create a Ean14 object and set the necessay parameters.
  4. Add the Ean14 to Page.
  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(@"C:\Output.pdf");

How to add GS1 DataBar to PDF

Below are steps and sample code to add a GS1 DataBar barcode to 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.
  3. Create a GS1DataBar object and set the necessay parameters.
  4. Add the GS1DataBar to Page.
  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(@"C:\Output.pdf");

How to add Stacked GS1 DataBar to PDF

Below are steps and sample code to add a Stacked GS1 DataBar barcode to 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.
  3. Create a StackedGS1DataBar object and set the necessay parameters.
  4. Add the StackedGS1DataBar to Page.
  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(@"C:\Output.pdf");

How to add IATA-25 to PDF

Below are steps and sample code to add a IATA 25 barcode to 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.
  3. Create a Iata25 object and set the necessay parameters.
  4. Add the Iata25 to Page.
  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(@"C:\Output.pdf");

How to add Interleaved 2 of 5 to PDF

Below are steps and sample code to add a Interleaved 2 of 5 barcode to 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 Interleaved25 object and set the necessay parameters.
  4. Add the Interleaved25 to Page.
  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(@"C:\Output.pdf");

How to add ISBN to PDF

Below are steps and sample code to add a ISBN barcode to 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.
  3. Create a Isbn object and set the necessay parameters.
  4. Add the Isbn to Page.
  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(@"C:\Output.pdf");

How to add ISBN Supplement2 to PDF

Below are steps and sample code to add 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.
  3. Create a IsbnSup2 object and set the necessay parameters.
  4. Add the IsbnSup2 to Page.
  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(@"C:\Output.pdf");

How to add ISBN Supplement5 to PDF

Below are steps and sample code to add a ISBN Supplement 5 barcode to 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.
  3. Create a IsbnSup5 object and set the necessay parameters.
  4. Add the IsbnSup5 to Page.
  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(@"C:\Output.pdf");

How to add ISMN to PDF

Below are steps and sample code to add a ISMN barcode to 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.
  3. Create a Ismn object and set the necessay parameters.
  4. Add the Ismn to Page.
  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(@"C:\Output.pdf");

How to add ISMN Supplement2 to PDF

Below are steps and sample code to add a ISMN Supplement 2 barcode to 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.
  3. Create a IsmnSup2 object and set the necessay parameters.
  4. Add the IsmnSup2 to Page.
  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(@"C:\Output.pdf");

How to add ISMN Supplement5 to PDF

Below are steps and sample code to add a ISMN Supplement 5 barcode to 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.
  3. Create aIsmnSup5object and set the necessay parameters.
  4. Add the IsmnSup5 to Page.
  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(@"C:\Output.pdf");

How to add ISSN to PDF

Below are steps and sample code to add 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.
  3. Create aIssnobject and set the necessay parameters.
  4. Add the Issn to Page.
  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(@"C:\Output.pdf");

How to add ISSN Supplement2 to PDF

Below are steps and sample code to add a ISSN Supplement 2 barcode to 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.
  3. Create aIssnSup2object and set the necessay parameters.
  4. Add the IssnSup2 to Page.
  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(@"C:\Output.pdf");

How to add ISSN Supplement5 to PDF

Below are steps and sample code to add a ISSN Supplement 5 barcode to 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.
  3. Create aIssnSup5object and set the necessay parameters.
  4. Add the IssnSup5 to Page.
  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(@"C:\Output.pdf");

How to add ITF-14 to PDF

Below are steps and sample code to add a ITF-14 barcode to 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 aItf14object and set the necessay parameters.
  4. Add the Itf14 to Page.
  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(@"C:\Output.pdf");

How to add Postnet to a PDF

Below are steps and sample code to add a Postnet barcode to 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.
  3. Create aPostnetobject and set the necessay parameters.
  4. Add the Postnet to Page.
  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(@"C:\Output.pdf");

How to add Intelligent Mail Barcode to PDF

Below are steps and sample code to add a Intelligent Mail Barcode to 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.
  3. Create aIntelligentMailBarcodeobject and set the necessay parameters.
  4. Add the IntelligentMailBarcode to Page.
  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(@"C:\Output.pdf");

How to add MsiBarcode to a PDF

Below are steps and sample code to 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.
  3. Create aMsiBarcodeobject and set the necessay parameters.
  4. Add the MsiBarcode to Page.
  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(@"C:\Output.pdf");

How to add RM4SCC to a PDF

Below are steps and sample code to add a RM4SCC barcode to 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.
  3. Create aRm4sccobject and set the necessay parameters.
  4. Add the Rm4scc to Page.
  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(@"C:\Output.pdf");

How to add Singapore Post to PDF

Below are steps and sample code to 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.
  3. Create aSingaporePostobject and set the necessay parameters.
  4. Add the SingaporePost to Page.
  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(@"C:\Output.pdf");

How to add Australia Post to PDF

Below are steps and sample code to add a Australia 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.
  3. Create aAustraliaPostobject and set the necessay parameters.
  4. Add the AustraliaPost to Page.
  5. Save the PDF Document.

Sample code - C#

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

How to add Kix barcode to a PDF

Below are steps and sample code to add a KIX barcode to 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 aKixobject and set the necessay parameters.
  4. Add the Kix to Page.
  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(@"C:\Output.pdf");

How to add DeutschePostIdentcode to PDF

Below are steps and sample code to add a DeutschePostIdentcode barcode to 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.
  3. Create aDeutschePostIdentcodeobject and set the necessay parameters.
  4. Add the DeutschePostIdentcode to Page.
  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(@"C:\Output.pdf");

How to add DeutschePostLeitcode to PDF

Below are steps and sample code to add a DeutschePostLeitcode barcode to 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.
  3. Create aDeutschePostLeitcodeobject and set the necessay parameters.
  4. Add the DeutschePostLeitcode to Page.
  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(@"C:\Output.pdf");

How to add Aztec to PDF

Below are steps and sample code to add a Aztec barcode to 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 aAztecobject and set the necessay parameters.
  4. Add the Aztec to Page.
  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(@"C:\Output.pdf");

How to add QRCode to PDF in C#

Below are steps and sample code to add a QRCode barcode to PDF document.

Steps for adding QR Code to a PDF

  1. Create a Document object.
  2. Createa a Page object and add it to the document.
  3. Create aQrCodeobject with all the necessay parameters.
  4. Add the QrCode to the page.
  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(@"C:\Output.pdf");

How to add Data Matrix to a PDF

Below are steps and sample code to add a Data Matrix barcode to 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.
  3. Create a DataMatrixBarcodeobject and set the necessay parameters.
  4. Add the DataMatrix to Page.
  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

Below are steps and sample code to add a PDF 417 barcode to 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 aPdf417object and set the necessay parameters.
  4. Add the Pdf417 to Page.
  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

Below are steps and sample code to add a Macro PDF 417 barcode to 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.
  3. Create aMacroPdf417object and set the necessay parameters.
  4. Add the MacroPdf417 to Page.
  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);

Getting Started

NuGet Package

DynamicPDF Generator is available on NuGet and is part of the ceTe.DynamicPDF.CoreSuite.NET package. The Core Suite package includes Generator, Merger and ReportWriter.

NuGet Package ID: ceTe.DynamicPDF.CoreSuite.NET

DynamicPDF CoreSuite Information

More information on DynamicPDF CoreSuite can be found here:

Java and COM/ActiveX Platforms

The DynamicPDF Generator 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 18 Years)
  • Free Evaluation
  • .NET Core Support (Most Products)
  • Flexible Licensing

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