ByteScout Barcode Reader SDK - ASP Classic - Read Barcode From PDF - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Barcode Reader SDK – ASP Classic – Read Barcode From PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Reader SDK – ASP Classic – Read Barcode From PDF

How to read barcode from PDF in ASP Classic using ByteScout BarCode Reader SDK

This code in ASP Classic shows how to read barcode from PDF with this how to tutorial

The coding tutorials are designed to help you test the features without need to write your own code. ByteScout BarCode Reader SDK is the SDK for reading of barcodes from PDF, images and live camera or video. Almost every common type like Code 39, Code 128, GS1, UPC, QR Code, Datamatrix, PDF417 and many others are supported. Supports noisy and defective images and docs. Includes optional documents splitter and merger for pdf and tiff based on found barcodess. Batch mode is supported for superior performance using multiple threads. Decoded values are easily exported to JSON, CSV, XML and to custom format. It can read barcode from PDF in ASP Classic.

The SDK samples like this one below explain how to quickly make your application do read barcode from PDF in ASP Classic with the help of ByteScout BarCode Reader SDK. Just copy and paste the code into your ASP Classic application’s code and follow the instruction. Use of ByteScout BarCode Reader SDK in ASP Classic is also explained in the documentation included along with the product.

Free trial version of ByteScout BarCode Reader SDK is available for download from our website. Get it to try other source code samples for ASP Classic.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

TestBarcodeReadingFromPDF.asp
      
<% ' In case of "Server.CreateObject Failed", "Server object error "ASP 0177 : 8000ffff" or similar errors: ' Please try the following: ' - Open IIS ' - Find application pools (DefaultAppPool is used by default) ' - Open its properties and check .NET CLR version selected: ' - if you have .NET 1.1 then change to .NET CLR 2.00 ' - if you have .NET CLR 2.00 then try to change to .NET CLR 4.0 Set bc = Server.CreateObject("Bytescout.BarCodeReader.Reader") ' Limit search to 1D barcodes only (exclude 2D barcodes to speed up the search). ' Change to bc.BarcodeTypesToFind.SetAll() to scan for all supported 1D and 2D barcodes ' or select specific type, e.g. bc.BarcodeTypesToFind.PDF417 = True bc.BarcodeTypesToFind.SetAll1D() ' now reading barcode from temporary saved image (previously extracted from PDF) bc.ReadFromFile Server.MapPath("example.pdf") ' iterate throuhg all found barcodes on the image For i = 0 To bc.FoundCount - 1 Response.Write "<br>" Response.Write "Found barcode on page #" & CStr(bc.GetFoundBarcodePage(i)) & " with type " & Cstr(bc.GetFoundBarcodeType(i)) & " and value " & bc.GetFoundBarcodeValue(i) Response.Write "<br>" Next ' empty barcode reader Set bc = Nothing %>

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout BarCode Reader SDK Home Page

Explore ByteScout BarCode Reader SDK Documentation

Explore Samples

Sign Up for ByteScout BarCode Reader SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout BarCode Reader SDK Home Page

Explore ByteScout BarCode Reader SDK Documentation

Explore Samples

Sign Up for ByteScout BarCode Reader SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next