Raghu
Raghu

Reputation: 41

Reading Text from Pdf in Asp.net

How to read the content of a uploaded pdf file in asp.net ?

I tried but i am unable getting the content of a Uploaded File.

I stuck with this Problem. If you have any Source code, Please provide me or Please help me..

Upvotes: 4

Views: 556

Answers (2)

Bobrovsky
Bobrovsky

Reputation: 14246

You can try Docotic.Pdf library (disclaimer: I work for Bit Miracle) to extract text from PDF files.

Please take a look at a sample that shows how to extract text from PDF.

Upvotes: 2

Bala R
Bala R

Reputation: 109027

You could try using iText library. You would specifically be interested in PdfTextExtractor class which has a getTextFromPage() method.

PdfTextExtractor pdfParser =new PdfTextExtractor(new PdfReader("pdf_file_location"));
pdfParser .getTextFromPage(1);

Upvotes: 2

Related Questions