I am having trouble finding the barcode on PDF. We have the following process
Workflow Steps
1>We have initially created a barcode using DecodeType.Code128 with Aspose.Barcode and put on PDF page ( our clients use this PDF page as separator sheet)
2>Our client then insert this barcode page between several physical documents and scanned them all, which creates big single PDF
3>Our splitting process then, loop through all pages and check if any page is barcode page, and splits the big PDF into individual small PDF
Depends on the client’s scanner settings, sometimes the scanned quality of the barcode page is not that great, and in such case ASPOSE.Barcode unable to read the barcode,
After going through several posts I came up with 3 different approaches to find a barcode on a PDF.
1> Using Aspose.Pdf.Document
2> Using Aspose.Pdf.Facades.PdfExtractor
3> Using Aspose.Pdf.Facades.PdfConverter
(Please see the attached Visual Studio 2017 solution. You have to update the licenses file path in the code and restore aspose packages)
BarcodeFinder.zip (256.5 KB)
Questions
1> Out of these 3 approaches, which would be a preferred approach to find a barcode on a PDF . ( I would really like to get 100% result)
2> In the attached solution I have included 3 test pdf. The test1.pdf and test2.pdf works with all approaches. But test3.pdf only works with PdfConverter. Why other 2 approaches are not finding the barcode on test3.pdf
3> In all 3 approaches I am reading the barcode text and compare it to determine its barcode page. Is there any way to check just the existence of our barcode so I don’t have to read the barcode?