Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello

Is there any way to convert the PDF file TO HTML file ,i am basically tring to open the PDF file in the web site or browser

I searched similar questions, but to no luck.

Thank You
Posted
Updated 1-Mar-12 10:19am
Comments
ZurdoDev 1-Mar-12 16:18pm    
One option is to Response.Redirect(urlofpdffile);

1 solution

Most browsers can support PDF directly of via their plug-ins. Think about it first.

If you really need to convert PDF in HTML, you should understand that there is no one-to-one correspondence between their structures, so you should devise some mapping which would suit your, for example, imitate PDF look as close as possible, which is pretty much realistic. You should understand that, by its nature, HTML is fluid while PDF is tightly bound to the page rendering, it's a kind of "software paper".

If you really want to develop things in this way, I would recommend a .NET port of iText; it's called iTextSharp. This is all Open Source stuff. Please see:
http://en.wikipedia.org/wiki/IText[^],
http://itextpdf.com/[^],
http://sourceforge.net/projects/itextsharp/[^] (you can download it here).

Good luck,
—SA
 
Share this answer
 
v2

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