Click here to Skip to main content
12,292,669 members (65,255 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#
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
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 20-Nov-12 23:19pm
v3
Comments
choudhary.sumit 21-Nov-12 6:39am
   
what error u are getting?

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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

pdfLib
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160518.1 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100