Click here to Skip to main content
15,905,419 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi i want read from pdf in C#.net or Convert pdf to text(string) by C#.net
Posted

//you have to download ABCpdf.dll
using WebSupergoo.ABCpdf5;

public string GetText(string fileName)
{
Doc pdfDoc = new Doc();
pdfDoc.Read(fileName);

string contents = pdfDoc.GetText("").ToString();
pdfDoc.Dispose();

return contents;
}
 
Share this answer
 
 
Share this answer
 
See here[^].
 
Share this answer
 
Comments
Henry Minute 25-Sep-10 14:56pm    
Bingle = (Bin)g + goo(gle) :)
If you Bingle on 'c# pdf libraries' you will find lots of useful stuff.

Be warned, though, most of them require lots of work to get the best from them.
 
Share this answer
 
Comments
Abhinav S 25-Sep-10 14:07pm    
Bingle? :)
Sandeep Mewara 25-Sep-10 14:31pm    
@Abhinav: It's in sync with Google acronym kinda.... Google-Bingle... :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900