How to Read Barcode from PDF Documents?

This article shows how to use VeryPDF Barcode Recognition SDK to recognize barcodes from PDF documents.

Recognizing Barcodes from PDF Files, Extract Images from PDF Document and Read Barcodes.

  • Extract images from the PDF document using VeryPDF Barcode Recognition SDK.
  • Pass the images to VeryPDF Barcode Recognition SDK for barcode recognition.


Below is a complete C# program that generates and recognizes barcodes from Adobe PDF documents,

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using VeryPDF;
using System.IO;

namespace WindowsFormsApplication1
    public partial class Form1 : Form
        public Form1()

        private void button1_Click(object sender, EventArgs e)
            string appPath = Path.GetDirectoryName(Application.ExecutablePath);
                System.Type VeryPDFType =
                VeryPDF.BarcodeCom VeryPDFCom = (VeryPDF.BarcodeCom)

                string appFolder = Path.GetDirectoryName(Application.ExecutablePath);
                string strFolder = appFolder;

                string strReturn = "";
                int nFileIndex = 0;

                string strBarcodeFile = strFolder + "\\barcode.pdf";
                string strCmd = "-$ XXXXXXXXXXXXXXXXXX -decode \""
                           + strBarcodeFile + "\"";
                strReturn += VeryPDFCom.GenerateBarcode(strCmd);
                nFileIndex = nFileIndex + 1;


VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!