Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Need to read barcode in PDF file and get barcode information

What I have tried:

How to read a barcode in PDF file in C#? I found some articles but none worked for me
Posted
Updated 2-Aug-17 0:51am
v2
Comments
Graeme_Grant 2-Aug-17 0:34am    
Have you extracted the image of the barcode?

1 solution

There are a tonne of examples on how to do each step on Google Search. Here is a solution based on a Google Search[^] that I used...

The first thing to do is either extract the image from the PDF or to convert the PDF to an image.
1a. How to extract images from PDF files using c# and itextsharp | psyCodeDeveloper[^]
1b. Simple and Free PDF to Image Conversion[^]

The next thing to do is to extract the barcode. Here is a code project article that does just that.
2. Reading Barcodes from an Image - III[^]
 
Share this answer
 
Comments
Pambala 2-Aug-17 0:49am    
great thank you.will give try.
Member 11859845 23-Apr-19 2:42am    
Hi,

I am downlaod the your solution and working on it .but i did not find the solution based on my requirement.If you don't mind please help me.


requirement:
i have only pdf files if i pass the pdf file i need to get the barcode values of the that pdf file if any barcodes exits on it otherwise it will return empty.

I was tried so many samples but all are paid versions. Is there any changes to get barcodes values from the pdf files using c# with out using the thirdparty(paid/trail) dlls.


please help me. any help is great for me.
Graeme_Grant 23-Apr-19 3:07am    
These are suggested possible solutions ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900