Skip to content
项目

关于

官方项目 | 使用 PHP 编写的 HTML 转 PDF 转换器

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
-1

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Html2Pdf

Html2Pdf is a HTML to PDF converter written in PHP, and compatible with PHP 7.2 to 8.4.

It allows the conversion of valid HTML in PDF format, to generate documents like invoices, documentation, ...

You have to write specific cleaned HTML code for Html2Pdf. Do not try to convert directly an already existing html page, or HTML code coming from WYSIWYG, no help will be provided in this case.

Specific tags have been implemented, to adapt the html standard to a PDF usage.

You must use Composer to install this library.

It uses TCPDF for the PDF part.

Requirements

Html2Pdf works with PHP >7.2 and Composer.

You will also need at least the following php extensions:

  • gd
  • mbstring

Documentation

You will find the install documentation here.

You will find all the documentation here.

You will find lots of examples here.

Donate

You can support this project by making a donation.

Change log

See the ./CHANGELOG.md file.

Help & Support

For questions and bug reports, please use the GitHub issues page.

License

This program is distributed under the OSL License. For more information see the ./LICENSE.md file.

Copyright 2008-2025 by Laurent Minguet

探索相关项目

加载中…