Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

I uploaded a pdf file using c# code. Now I want to display the content of file into a editor or textbox control (or store it into a string or array or ..)

Please help me with the code

Thanks in advance
Posted
Updated 3-Jan-11 22:26pm
v2

1 solution

Here is a starting point pdftotext[^]. Pdf files are complex documents, not easily converted to text. You'll have to deal with embedded fonts, postscript, images and more...

You can try looking at this:http://aspdotnetcodebook.blogspot.com/2008/08/how-to-convert-pdf-file-to-text-in.html[^]

This approach will at best only give you the text from the pdf file.

Alernatively you can use the xps printer and use someting like this[^] to display the result.


Good luck
Espen Harlinn
 
Share this answer
 
v2
Comments
Sandeep Mewara 4-Jan-11 5:47am    
Comment from OP:
Thanks
Can u please explain me with the code?

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