Reading text from Pdf in Asp.net

How to read the contents of a downloaded pdf file in asp.net?

I tried, but I can not get the contents of the downloaded file.

I ran into this problem. If you have the source code, please provide me or help me ..

+4
source share
2 answers

You can try using the iText library. You are particularly interested in the PdfTextExtractor class, which has the getTextFromPage () method.

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

You can try the 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 a PDF .

+2
source

Source: https://habr.com/ru/post/1312955/


All Articles