简体   繁体   English

有没有一种方法可以使用PHP将PDF转换为HTML / CSS?

[英]Is there a way to convert a PDF to HTML / CSS using PHP?

I know solutions exist to get HTML / CSS to PDF, but is there one that works the opposite way? 我知道存在将HTML / CSS转换为PDF的解决方案,但是有相反的方法吗?

I want to be able to automatically take uploaded PDFs, and turn them into HTML / CSS to be displayed on a website between a header and footer etc. 我希望能够自动获取上传的PDF,并将其转换为HTML / CSS,以显示在网站的页眉和页脚之间。

Thanks 谢谢

There is a command line tool, pdf2html , which you could use exec() or system() in PHP to execute. 有一个命令行工具pdf2html ,您可以在PHP中使用exec()或system()来执行。 Not sure it that will be ok for you? 不确定是否适合您?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM