Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello... I am doing one project in which I need to read pdf file and then write it in a textbox.
Can somebody help me??

I have used iTextSharp named dll file but it is showing me error in namespace
C#
using System.Web.UI;
using System.Web.UI.WebControls;
using iTextSharp.text.pdf;
using iTextSharp.text.pdf.parser;

How to remove this error? and can you please tell me the code to read a pdf file and then write it to a textbox???

[edit] Added code blocks [/edit]
Posted
v3
Comments
choudhary.sumit 21-Nov-12 6:39am    
what error u are getting?

1 solution

Since PDF is an binary format you'll have to use a pdf-library like pdflib in order to read pdf-files.

pdfLib
 
Share this answer
 
Comments
Member 9617941 21-Nov-12 12:06pm    
Thnkx omisheikh. but can you please elaborate it?? i mean how to use it and do you know code to read pdf file??
omisheikh 22-Nov-12 5:07am    
yeah sure there are many third party tools which are used to read pdf files i have mentioned one of that in my first comment.
there is another library name as iTextSharp have a look on this link..

http://www.codeproject.com/Articles/277065/Creating-PDF-documents-with-iTextSharp

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