📄
FPDF
by Open Source
library
关于 FPDF
FPDF is an open-source PHP library for generating PDF files programmatically. It is designed for server-side document creation without requiring external PDF software, and is commonly used by PHP developers building invoices, reports, labels, and other fixed-layout documents.
The library provides low-level page drawing primitives such as text, lines, cells, images, and page management, plus support for headers, footers, and automatic page breaks. A distinguishing trait is its small, dependency-free design: it is straightforward to embed in PHP applications, but it is focused on PDF generation rather than editing or extracting existing PDFs.
The library provides low-level page drawing primitives such as text, lines, cells, images, and page management, plus support for headers, footers, and automatic page breaks. A distinguishing trait is its small, dependency-free design: it is straightforward to embed in PHP applications, but it is focused on PDF generation rather than editing or extracting existing PDFs.