Convert PDF to HTML [closed]

别说谁变了你拦得住时间么 提交于 2019-11-26 20:21:18
Alexis Perrier

pdftohtml works fine : fast, stable but the html result is ugly at best. I have used it for quite some time for a web site that has many job resumes.

It is a good solution for extracting textual content however.

I would give the scribd API a try

or the google apps document API. GOogle does a great job a displaying and converting pdf files

Have you considered keeping the PDF data in a database and then either dynamically creating the PDF or the html page depending on what the visitors select?

If you have command line access at your hosting provider, there is a utility called pdftohtml inside of the poppler_utils package.

http://poppler.freedesktop.org/

Looks quite easy to use, have not called it from inside of PHP, but it should work.

If you are prepared to call Java from PHP you could have a look at http://www.jpedal.org/html_index.php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!