.NET PDF Barcode Reader SDK

    Online Tutorial
You can have full test on CnetSDK .NET PDF Barcode Reader SDK before deciding to order a license. Free tiral package is offered for your evaluation. This .NET PDF barcode reader library is an independent library that can be easily integrated into your .NET applications. It supports most popular 2D &1D barcodes reading from PDF, like QR Code, Data Matrix, PDF417, Code 128, Code 39, EAN/UPC, and Interleaved 2 of 5. We provide a demo project in the free trial package for your quick reference and evaluation.
DEVELOPMENT REQUIREMENT
CnetSDK .NET PDF Barcode Reader SDK library has full compatibility for .NET applications development. To us this mature .NET PDF barcode reader library in Visual Studio .NET applications, your development environment should be Microsoft Windows System, 32-bit or 64-bit, Visual Studio 2005+, and .NET Framework 2.0+.
HOW TO: INTEGRATE DLL
1. Download a free trial of CnetSDK .NET PDF Barcode Reader SDK.
2. Unzip it and you will find CnetSDK.PDFBarcode.Reader.Trial.dll.
3. Add CnetSDK.PDFBarcode.Reader.Trial.dll to your Visual Studio .NET project reference. Moreover, you should copy CnetSDK.Support.dll from x86 or x64 folder under Lib folder of the trial package to your C# project bin directory, Bin\Debug. For VB.NET project, you also need to do this, but should copy the dll to your project folder Bin\x86\Debug or Bin\x64\Debug.

Please Note: the first data value of each barcode will be decoded as CnetSDK* if you are using free trial package.
HOW TO: C# Example
CnetSDK designs serveral accurate PDF barcode recognition methods for your C# .NET applications development. You are able to scan and read single or multiple barcode types from PDF document. And you are allowed to specify where (PDF page or pages) to read and recognize the barcode(s). The following C# example for PDF barcodes scanning and reading may help you to test some of the functions quickly. We also provide a demo project in the trial package, you may directly download a free trial to see more.
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Imaging;
using CnetSDK.PDFBarcode.Reader.Trial;
using CnetSDK.PDFBarcode.Reader.Trial.Pdf;
 
namespace CnetSDKPDFBarcodeReader
{
    class Program
    {
        static void Main(string[] args)
        {
            ReadOneBarcodeTypeFromOnePdfPage();                       
            //ReadOneBarcodeTypeFromMultiplePdfPages();
        }
 
        public static void ReadOneBarcodeTypeFromOnePdfPage()
        {
            PdfFile pdf = new PdfFile("test.pdf");
            pdf.SetDPI = 72;
            Image pageImage = pdf.ConvertToImage(0, 1000, 1000);
            Bitmap bitmap = new Bitmap(pageImage);
            string[] data = PdfBarcodeReader.Recognize(bitmap, PdfBarcodeReader.Code128);
            foreach (string result in data)
            {
                Console.WriteLine(result);
            }
            Console.ReadKey();
        }
 
        public static void ReadOneBarcodeTypeFromMultiplePdfPages()
        {
            PdfFile pdf = new PdfFile("test2.pdf");
            pdf.SetDPI = 72;
            for (int i = 0; i < pdf.FilePageCount; i++)
            {
                Image pageImage = pdf.ConvertToImage(i, 1000, 1200);                
                Bitmap bitmap = new Bitmap(pageImage);
                //pageImage.Save("Page" + i + ".jpg", ImageFormat.Jpeg);
                string[] data = PdfBarcodeReader.Recognize(bitmap, PdfBarcodeReader.Qrcode);
                foreach (string result in data)
                {
                    Console.WriteLine(result);
                }
            }
            Console.ReadKey();
        }
    }
}
HOW TO: VB.NET Example
In addition to using CnetSDK .NET barcode reader library for PDF in C# programming project, you can also integrate it into your VB.NET projects. And VB.NET PDF barcodes reading example is provided here.
Imports System
Imports System.IO
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports System.Drawing
Imports System.Drawing.Imaging
Imports CnetSDK.PDFBarcode.Reader.Trial
Imports CnetSDK.PDFBarcode.Reader.Trial.Pdf;
 
 
Module CnetSDKPDFBarcodeReader
 
    Public Sub Main()
        ReadOneBarcodeTypeFromOnePdfPage()
        'ReadMultipleBarcodeTypesFromOnePdfPage()
        'ReadOneBarcodeTypeFromMultiplePdfPages()
        'ReadMultipleBarcodeTypesFromMultiplePdfPages()
 
End Sub
 
 Public Sub ReadOneBarcodeTypeFromOnePdfPage()
        Dim pdf As PdfFile = New PdfFile ("test.pdf")
        pdf.SetDPI = 72
        Dim pageImage As Image = pdf.ConvertToImage(0, 1000, 1000)
        Dim bitmap As Bitmap = New Bitmap(pageImage)
        Dim data As String() = PdfBarcodeReader.Recognize(bitmap, PdfBarcodeReader.Code128)
 
        For Each result As String In data
            Console.WriteLine(result)
        Next
 
        Console.ReadKey()
    End Sub
 
 
    Public Sub ReadMultipleBarcodeTypesFromOnePdfPage()
        Dim pdf As PdfFile = New PdfFile ("test1.pdf")
        pdf.SetDPI = 72
        Dim pageImage As Image = pdf.ConvertToImage(0, 1900, 1000)
        Dim bitmap As Bitmap = New Bitmap(pageImage)
        Dim data As String() = PdfBarcodeReader.Recognize(bitmap, PdfBarcodeReader.Code128)
 
        For Each result As String In data
            Console.WriteLine(result)
        Next
 
        Dim data1 As String() = PdfBarcodeReader.Recognize(bitmap, PdfBarcodeReader.Qrcode)
 
        For Each result As String In data1
            Console.WriteLine(result)
        Next
 
        Console.ReadKey()
    End Sub
 
       Public Sub ReadOneBarcodeTypeFromMultiplePdfPages()
        Dim pdf As PdfFile = New PdfFile ("test2.pdf")
        pdf.SetDPI = 72
 
        For i As Integer = 0 To pdf.FilePageCount - 1
            Dim pageImage As Image = pdf.ConvertToImage(i, 1200, 1200)
            Dim bitmap As Bitmap = New Bitmap(pageImage)
            Dim data As String() = PdfBarcodeReader.Recognize(bitmap, PdfBarcodeReader.Qrcode)
 
            For Each result As String In data
                Console.WriteLine(result)
            Next
        Next
 
        Console.ReadKey()
    End Sub
 
    Public Sub ReadMultipleBarcodeTypesFromMultiplePdfPages()
        Dim pdf As PdfFile = New PdfFile ("test3.pdf")
        pdf.SetDPI = 72
 
        For i As Integer = 0 To pdf.FilePageCount - 1
            Dim pageImage As Image = pdf.ConvertToImage(i, 1000, 1200)
            Dim bitmap As Bitmap = New Bitmap(pageImage)
            pageImage.Save("Page" & i & ".jpg", ImageFormat.Jpeg)
            Dim data As String() = PdfBarcodeReader.Recognize("Page" & i & ".jpg", PdfBarcodeReader.Code128)
 
            For Each result As String In data
                Console.WriteLine(result)
            Next
 
            Dim data1 As String() = PdfBarcodeReader.Recognize("Page" & i & ".jpg", PdfBarcodeReader.Qrcode)
 
            For Each result As String In data1
                Console.WriteLine(result)
            Next
        Next
 
        Console.ReadKey()
    End Sub
 
 
End Module
SUPPORTED BARCODES

Read QR Code

Read Data Matrix

Read PDF-417

Read Code 128

Read Code 39

Read EAN-13

Read EAN-8

Read UPC-A

Read UPC-E

Read Interleaved 2 of 5

You may use these words to search for CnetSDK PDF barcode scanner for .NET application development: .net pdf barcode reader, c# pdf barcode reader, vb net barcode recognition from pdf, read barcode pdf c#, read barcode pdf file c#, scan barcode pdf c#, scan barcode pdf file c#, read barcode from pdf, scan barcode from pdf, recognize barcode from pdf, read qr code in pdf, .net read barcode from pdf, c# read barcode from pdf, c# scan barcode from pdf, vb.net read barcode from pdf, read qr code from pdf c#, read qr code from pdf file using c# code, scan qr code from pdf c#, recognize qr code from pdf c#, decode qr code from pdf c#, c# read qr code from pdf, read barcode in pdf c#, scan barcode in pdf c#, and read qr code in pdf c#.