Click here to Skip to main content
14,456,063 members
Rate this:
Please Sign up or sign in to vote.
See more:

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
Updated 1-Mar-12 11:19am
ZurdoDev 1-Mar-12 16:18pm
One option is to Response.Redirect(urlofpdffile);

1 solution

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

Solution 1

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:[^],[^],[^] (you can download it here).

Good luck,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

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