Export a web-page to a PDF with FPDF

前端 未结 1 957
终归单人心
终归单人心 2020-12-10 21:47

Complicated question with a (hopefully) simple answer.

I\'m looking into FPDF to export a web-page to a PDF. The web-page has been formatted for Print media, but si

相关标签:
1条回答
  • 2020-12-10 22:53

    The FPDF library is not meant for directly rendering HTML markup into a PDF.

    If that's what you're looking to do, you could try one of the solutions designed specifically for that purpose. For example, the html2pdf library, which among other things is based on the FPDF library. You can also consider using an external API like DocRaptor, which is a cost-effective solution based on the very costly Prince XML program.

    0 讨论(0)
提交回复
热议问题