Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

c# Read line from PDF

Tags:

c#

pdf

.net-2.0

I want to be able to read line by line from a pdf, compare it to a string( a filename), and if the string appears in that line, write that line to a list.

So far I had a quick look at ITextSharp and at PDFSharp, but it doesn't seem like these are the right tools for the job as they focus most on altering and printing pdfs.

Does anyone know another way of reading lines from a pdf, or should I keep trying with ITextSharp & PDFSharp?

like image 852
DavyR Avatar asked Jan 20 '09 13:01

DavyR


1 Answers

I use PDFBox with Lucene. It was easy to find out how it works and it does the job. It's opensource and free.

like image 173
Paco Avatar answered Oct 08 '22 02:10

Paco