Hi,
I want to extract text from PDF in C# asp.net. I am using this code as following link ::
Link:: http://www.codeproject.com/KB/cs/PDFToText.aspx
But this code is not working properly. The main problem is that when i get output file they have no that content which are in Inputfile.
Is there any way to resolve this problem ?
Please help me.
Thanks in advance.
Pankaj
Loading

Mike GoldRank #50 · 30.6K reputationPosted Mar 15, 2010, 9:30 PM EDT
PdfReader reader = new PdfReader("In.PDF");
Then extract the images, not sure about how to do the text, but it should point you in the right direction:http://www.vbforums.com/showthread.php?t=530736
-Mike
Dorothea HANKS4 reputationPosted May 6, 2013, 10:44 PM EDT
Anna Harris36 reputationPosted May 15, 2013, 4:48 AM EDT
Jony Green103 reputationPosted Oct 18, 2015, 11:03 PM EDT
Nova Green8 reputationPosted Jul 4, 2018, 3:03 AM EDT
Leon DRank #851 · 2.6K reputationPosted Jul 4, 2018, 4:30 PM EDT
Varun SetiaRank #308 · 8.2K reputationPosted Jun 18, 2021, 3:04 AM EDT
Ben ThompsonRank #8,839 · 215 reputationPosted Jun 18, 2021, 9:38 AM EDT
The LEADTOOLS SDK can also extract text from PDF files. They have a code snippet available showing how to perform this. This functions for both vector PDFs in which the SVG information is extracted, or raster PDFs in which an Optical Character Recognition is performed.
https://www.leadtools.com/help/sdk/v21/dh/dox/documentpage-gettext().html
The SDK is available for a 60-day evaluation period on the official site.
https://www.leadtools.com/downloads