Frage

Is there a way to extract barcode numbers from a pdf document (spanning several pages) in C#. The pdf document is basically obtained from a scanner. If possible, I wouldn't like to use any third party library.

Thanks.

War es hilfreich?

Lösung

If your PDF comes from scanner, there is big chance that it contains image only. In other word it use PDF as an container of multiple pages. So, what you need to do is 1) extract the image out of PDF file, 2) load bar code from raster image.

If you only deal with specific scanner, you can read the PDF Specification and and write a small program do the first part. However, my suggestion would be use a good PDF Library to do that, because PDF is a complex format.

For barcode analysis, you should also find a barcode reader program/library.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top