'What's the fastest barcode reader from PDF in c#
for an application i'm developing, I need a barcode reader. I currently use inlite barcode reader (http://how-to.inliteresearch.com/barcode-reading-howto/) but I would like to know if there is not a faster SDK. because this sdk scan the whole pdf page to find the codes (39 and 128 in my case) and it takes up to 4 hours for a 17238 pdf page.
I know IText7 has a barcode reader too but which one is faster? or if there is another sdk faster, I would like to know.
Thanks in advance :-)
Solution 1:[1]
Why not simply run an objective speed-test? Generate a large number of documents (you can test different codes, different sizes, damage, etc).
Once generated, pull the entire pdf through iText and then through whatever other software suite you have. Time it.
That way you'll get an objective measure of what works best in your usecase.
Solution 2:[2]
iText normally is pretty slow, when it comes to big pdfs. I know only commercial solutions, which are fast. I measured e.g. for a 10.000 pages document, with a lot of content and 117MB in size a barcode detection on all pages in around 334 seconds with the CIB pdf toolbox (https://pdftoolbox.cib.de/). It searched for all barcode types supported. The speed could be improved further, if you specify a region on the pages (e.g. the left border) to search for or to limit the barcode types. The library is in C++, but has C# bindings.
Internally it utilizes the zxing-cpp barcode reader, which is pretty fast. https://github.com/nu-book/zxing-cpp
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Joris Schellekens |
| Solution 2 |
