Work with Other SDKs
Barcode Read
Home ›› XDoc.PDF ›› C# PDF: Read Barcode

C# PDF - Read Barcode on PDF in C#.NET

How to Scan 1D and 2D Barcodes on PDF Document Page Using C# Code

C# PDF Barcode Reading Overview

C#.NET PDF Barcode Reader & Scanner Controls from RasterEdge DocImage SDK for .NET is a professional barcode detecting and decoding library toolkit designed specifically for linear and 2d barcodes reading, scanning and recognition from PDF document files in C#.NET class applications.

Main features about C#.NET PDF Barcode Reader:

Read & scan most 1d and 2d barcodes from PDF document using C# code

Detect & decode barcode from whole or partial PDF document page using C#.NET

Recognize barcode from PDF document and return decoded barcode value to data string

Speed up barcode reading rate from PDF by limiting detected barcode number using C# code

Support multi-threaded barcode recognition from PDF with high performance

Recognized barcode value will be returned with 100% accuracy

.NET APIs for C# PDF Barcode Recognition

// core API used
public static Barcode[] ReadBarcodes(ReaderSettings settings, BasePage page);

Sample Code for C# PDF Barcode Recognition

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

public static void ReadBarcodeFromPDF(string filename, int pageIndex)
      // generate PDF document
      PDFDocument doc = new PDFDocument(filename);

      // get the page you want to read barcode from
      BasePage page = doc.GetPage(pageIndex);

      // set reader setting
      ReaderSettings setting = new ReaderSettings();

      // read out barcode information
      Barcode[] barcodes = BarcodeReader.ReadBarcodes(setting, page);

      // output barcode information
      foreach (Barcode barcode in barcodes)