Read Barcodes from PDF Documents
Contents
[
Hide
]
This article shows how to use Aspose.Pdf for Java to recognize barcodes from PDF documents.
Read Barcodes from PDF Files
This example performs two tasks:
- Generates a PDF file with a barcode in it
- Reads the barcode from the PDF file
The code sample below does both tasks in one go.
Generate Barcode and Insert in PDF Document
- Use Aspose.BarCode for Java to generate a barcode image
- save the image to disk
- Use Aspose.PdF for Java to create an Adobe PDF document and insert this barcode into it
Extract Images from PDF Document and Read Barcodes
- Extract images from the PDF document using Aspose.Pdf.Kit for Java
- Pass the images to Aspose.BarCode for Java for barcode recognition
The code example given below is a complete Java program that generates and recognizes barcodes from Adobe PDF documents.