Reputation: 41
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
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
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