How to Start Convert PDF Read PDF Build PDF Work with PDF Modules PDF Document PDF Pages Text Image Graph & Path Annotation, Markup & Drawing Redaction Security Digital Signature Forms Watermark Bookmark Link File Attachment File Metadata Printing Work with Other SDKs Barcode read Barcode create OCR Twain

C# PDF Parsing Library
How to create barcode on PDF file using C# .NET. Free open source examples


C# Sample Codes for Creating 1D & 2D Barcodes on PDF Page in C#.NET Imaging Program











C# PDF Barcode Creation Overview



RasterEdge C#.NET PDF Barcode Creation SDK offers mature APIs for developers to generate, write and create 1d and 2d barcodes on PDF document page using C#.NET code. Besides, using this C#.NET barcode creator control package, you can easily adjust and customize most attribute properties of generated barcodes on PDF document file, like color, size and positional parameters.


Details about C# PDF Document Barcode Creation features:


100% C#.NET PDF barcode creating solution compacted in small-sized dlls


Mature C# PDF barcode generation controls available for both ASP.NET Web and WinForms programs


Compatible with Microsoft .NET Framework from version 2.0 to 4.5


Generate over 20 linear and 2d barcodes on PDF document page using C#.NET


Create 1d & 2d barcodes on accurate location of PDF document page using C# code for .NET


Able to use C#.NET class code to customize created PDF barcode image properties





How to Create Barcode on PDF Page in C#.NET


This is a simple C# example for PDF barcode creation.



// generate a Code 39 barcode
Linear linearBarcode = new Linear();
linearBarcode.Type = BarcodeType.CODE39;
linearBarcode.Data = "123456789";
linearBarcode.Resolution = 96;
linearBarcode.Rotate = Rotate.Rotate0;

// load PDF document, you can also load document like TIFF, Word, Excel & PPT
PDFDocument doc = new PDFDocument(@"c:\sample.pdf");

// get the first page
PDFPage page = (PDFPage)doc.GetPage(0);

// generate reimage of this barcode
Bitmap barcodeImage = linearBarcode.ToImage();

// add barcode image to the first page and the top left vertex of barcode image rectangle is at point(100,100)
page.AddImage(barcodeImage, new System.Drawing.PointF(100f, 100f));

// save changes to the PDF
doc.Save(@"c:\output.pdf ");