Click to See Complete Forum and Search --> : PDF to HTML conversion---PHP
Hi friends,
I need some clarification to covert the pdf file to html file using php.
I have no idea to convert the files using php. Please send me any ideas and your suggestion how to convert the pdf files to html ..
Thanks
Vssp
NogDog
07-27-2006, 03:03 AM
PHP does not have any built-in functions that directly support this. Writing your own would be far from trivial. My recommendation would be to search the web for existing scripts that do this conversion.
bokeh
07-27-2006, 03:25 AM
I can't see how it could even be possible. PDF documents have layout while HTML documents do not; and PDF documents have a page size while HTML documents do not even have pages. I would make a comparison between this and doing a .doc to a .txt conversion where all formatting would be lost in the process. Even a sledgehammer like Google with its massive resources can't get this right. Just try the convert pdf >> html feature on its search page to see what I mean.
Obviously if the converssion were the other way around (HTML >> PDF... .txt >> .doc) it would be easy and there is plenty of software that can do this... fpdf for example.
CAT web design
07-27-2006, 04:01 AM
I have seen this done on google - i dont know how...
[PDF] Owner’s ManualFile Format: PDF/Adobe Acrobat - View as HTML
Have a look at this example... (http://www.google.co.uk/search?hl=en&q=manual.pdf&meta=)
Dont know if that helps, but hey.
bokeh
07-27-2006, 04:11 AM
I have seen this done on google - i dont know how...
[PDF] Owner’s ManualFile Format: PDF/Adobe Acrobat - View as HTML
Have a look at this example... (http://www.google.co.uk/search?hl=en&q=manual.pdf&meta=)
Dont know if that helps, but hey.That's exactly what I am talking about. If you look at the html documents they are a terrible mess.
And try looking at the html itself... absolute gobbledegook.
NogDog
07-27-2006, 11:53 AM
If you just want to do a one-off conversion, check out this page: http://www.adobe.com/products/acrobat/access_onlinetools.html
felgall
07-27-2006, 02:55 PM
Why convert PDF to HTML.
You can write web pages in HTML or PDF. PDF ones can contain embedded fonts and will always display exactly as shown whereas HTML wont.
You can attach Javascript to HTML and to PDF to create the same effects.
Both support links from one page or position on a page to another.
PDF supports everything for the web that HTML does and a few additional features that can't be done using HTML.