How do I convert a PDF file to HTML in PHP?

前端 未结 3 423
不知归路
不知归路 2020-12-21 22:45

How do I convert a PDF file to HTML in PHP? Is there any lib or web service? I mean free, thanks!

3条回答
  •  悲&欢浪女
    2020-12-21 23:51

    You can't.

    PDFs are complex documents containing embedded fonts, vector graphics and layout information that cannot be represented in HTML in an automated way. You may be able to extract the TEXT of the document, but that's about it.

提交回复
热议问题