Click here to Skip to main content
15,898,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am developing a web application in that I have to read PDF files
and convert PDF file into txt file.
If any one of you know then please provide code.
I have tried googling but haven't found a proper solution.

Thank You
Posted
Updated 28-Dec-10 0:35am
v2

try this:
FileInfo file = new FileInfo("c://aa.pdf");  
PDDocument doc = PDDocument.load(file.FullName);          
PDFTextStripper pdfStripper = new PDFTextStripper();
string text = pdfStripper.getText (doc);
richTextBox1.Text = qq;

or refer this...

Converting PDF to Text in C#[^]
 
Share this answer
 
v3
Comments
Mohd Wasif 29-Dec-10 1:18am    
Thanks this helped me.
yaprig 29-Dec-10 1:20am    
Gr8..please accept this answer.
yaprig 29-Dec-10 1:23am    
which one??link or the above code...reply
For that, you need some third party controls.
Have a look to the link, it'll help you

Click here
 
Share this answer
 
I think you may get very good help from these domestic articles.

THIS[^]

THIS[^]

THIS[^]


Please vote and Accept Answer if it Helped.
 
Share this answer
 

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