[PHP] converting HTML to PDF

Source: Internet
Author: User
1. dompdfgithub. comdompdfdompdf2.HTML2FPDFHTML2FPDF can convert an HTML text into a printer-friendly PDF file. This script is built on the FPDF script. Html2fpdf.sourceforge.net3.html 2pshtml2ps: it can take images and complex tables (including rowspancolspan)

1. dompdf https://github.com/dompdf/dompdf 2. HTML2FPDF HTML2FPDF can convert an HTML text into a printer-friendly PDF file. This script is built on the FPDF script. Http://html2fpdf.sourceforge.net/3.html 2 ps html2ps ability to put complex tables with images (including rowspan/colspan)

1. dompdf


Https://github.com/dompdf/dompdf


2. HTML2FPDF
HTML2FPDF converts an HTML text file into a printer-friendly PDF file. This script is built on the FPDF script.
Http://html2fpdf.sourceforge.net/


3.html 2 ps
Html2ps converts HTML with images, complex tables (including rowspan/colspan), layer/p, and css styles into Postscript and PDF. Html2ps supports CSS2.1 very well and is well compatible with incorrect HMTL. It can even convert websites that use CSS, such as msn.com.
Http://www.tufat.com/script19.htm

HTML2FPDF

Bytes -----------------------------------------------------------------------------------
Style:
CSS is not supported


Image:
Gif is not supported.
Png (Alpha channel not supported) is not supported)
JPG supported


Dompdf:

Bytes -----------------------------------------------------------------------------------
Style:
Supports CSS2.1


Image:
Supports gif, png, bmp & jpeg


Html2px/html2pdf

Bytes -----------------------------------------------------------------------------------
Style:
Supports CSS2.1


IndividualsDompdf recommended, Supports a wide range of files, detailed documentation, and continuous updates.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.