Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I want to display read pdf file(Resume) from server and want to remove phone number from that.Can i convert the pdf to html ? If i can convert file to html i can easily remove phone number using REGEX and display with literal.How can i read pdf as string.....Please Help
Posted

Hi,
You didn't mention what type of API you are going to use. However, I would suggest the below 2 PDF Libraries for your problem.

https://pdfbox.apache.org/[^]

http://sourceforge.net/projects/itextsharp/[^]

I have achieved the same functionality (text extraction), in my past using the first one. The basic tutorial is here:

https://pdfbox.apache.org/cookbook/textextraction.html[^]

Hope this helps!

Thanks!
S. Francis
My Blog
 
Share this answer
 
Comments
Namith Krishnan E 27-Jun-14 7:22am    
by using itextsharp i had extracted the text and remove some text.Now i want to display the resume in the correct format.Now its a string without any format
Dear Namith Krishnan E.,

Provide How to open a PDF file in ASP.NET ,


http://www.aspdotnet-suresh.com/2012/11/aspnet-open-pdf-file-in-web-browser.html[^]

Displaying the contents of a PDF file in an ASP.NET application using GhostScript[^]

http://www.beansoftware.com/ASP.NET-Tutorials/PDF-View-Custom-Control.aspx[^]

VB
Let me know if you have any further query.
Please, go through above suggestion.
If its your answer, please mark as solution.
Best of luck for hunting solutions.
Thank you.

Manoj Kalla
 
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