Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
1.80/5 (3 votes)
See more:
Hello Friends,

I am looking to convert PDF to html using any C# open source library. Can anyone help me?
Posted
Updated 12-Apr-16 1:24am
Comments
I guess there is no such free library. But you can get paid ones.
Ahmed Bensaid 27-Feb-14 10:22am    
You could use iTextSharp library to extract text from your PDF file. Then, you could build your HTML markup yourself.
Sumit Rastogi SRA 28-Feb-14 3:39am    
Hello Ahmed, I can build Html file using extract text but how i will put images on exact position in html file?
Ahmed Bensaid 27-Feb-14 10:24am    
Or maybe this solution (accepted answer of this thread) :
http://stackoverflow.com/questions/8123786/c-sharp-converting-pdf-to-html
Maciej Los 27-Feb-14 14:42pm    
Please, post it as an answer ;)

1 solution

Maybe this solution (accepted answer of this thread) :
http://stackoverflow.com/questions/8123786/c-sharp-converting-pdf-to-html[^]
 
Share this answer
 
Comments
Sumit Rastogi SRA 28-Feb-14 4:59am    
Hello Ahmed,

Thanx for your reply. But this link is not helping to me. I already wrote a html file using text extraction but i am in problem how i will put images on exact location.?
Ahmed Bensaid 28-Feb-14 5:07am    
Ok, so take a look there ;)
http://stackoverflow.com/questions/5945244/extract-image-from-pdf-using-itextsharp
http://stackoverflow.com/questions/10689382/extract-image-from-a-particular-page-in-pdf-using-itextsharp-4-0
Ahmed Bensaid 28-Feb-14 5:45am    
For positions :
http://www.codeproject.com/Questions/420589/How-do-I-find-x-y-position-of-image-and-text-in-a
Sumit Rastogi SRA 3-Mar-14 1:26am    
Hello Ahmed,

Sorry bro . I already look all these link but we can't imagine position of images in pdf which will suits same in my html document and I can't use any paid library else there is lots of paid library available.By the way , thanks a lot to try to help me.

If you can provide me best example then really it would be helpful for me else what link you have suggested that are not reaching on my requirement.
Member 10711974 23-Jun-14 2:06am    
Hi Sumit Rastogi, How you fixed this? I would like to implement pdf display on web page by converting pdf to html.. Please help me if you have any advice. Thanks

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