Home  >  Article  >  Backend Development  >  PHP Some documentation about PHP generating PDF

PHP Some documentation about PHP generating PDF

WBOY
WBOYOriginal
2016-08-08 09:27:00786browse

http://www.fpdf.org/

FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. F from FPDF stands for Free: you may use it for any kindof usage and modify it to suit your needs.

HTML2FPDF

http://html2fpdf.sourceforge.net/

TCPDF


Features
TCPDF has the following features:
1. Support page footer;
2. Support HTML tag code;
3. Support jpg/png/gif/ svg graphic images;
4. Support tables;
5. Support Chinese characters; (some PDFs do not support Chinese or it is very troublesome to process Chinese)
6. Automatic paging, automatic page numbering, etc.

http://sourceforge.net/projects/tcpdf/files/

http://www.tcpdf.org/

FPDF
FPDF This PHP Class allows you to use pure PHP (more precisely, there is no need to use PDFlib) to generate PDF files. Its features include: selectable unit size, page format and margins; header and footer management; automatic paging; automatic word wrapping and automatic text alignment; support for JPEG and PNG image formats; support for coloring and file hyperlinks ;Supports TrueType, Type1 and encoding; supports page compression.
HTML2PDF
HTML2PDF can convert an HTML text into a printer-friendly PDF file. This PHP script is built on top of the FPDF PHP script.

TCPDF
TCPDF is a PHP5 function package for quickly generating PDF files. TCPDF is extended and improved based on FPDF. Supports UTF-8, Unicode, HTML and XHTML.
html2ps
html2ps can convert HTML with images, complex tables (including rowspan/colspan), layer/div and css styles into Postscript and PDF. html2ps has very good support for CSS2.1 and is well compatible with incorrect HMTL. It can even convert almost-CSS-designed websites like msn.com.
HTML_ToPDF
HTML_ToPDF can convert any HTML document into a PDF document with the same interface format on any platform and printer. It includes support for image conversion, use of style sheets to customize PDF files, and error handling.

cPdfWriter
cPdfWriter is a PHP5 class that can output PDF documents. Based on TCPDF, FPDF and other related scripts.
dompdf
dompdf is an HTML to PDF conversion tool. At its core is a rendering engine that follows most CSS2.1 styles. dompdf is style driven, it is able to download and read external styles, entire style tags and style attributes of individual HTML elements. It also supports most HTML attributes currently.

The above has introduced some documentation about PHP generating PDF, including relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn