tecnickcom / tcpdf
Deprecated legacy PDF engine for PHP. For new projects use tecnickcom/tc-lib-pdf.
Fund package maintenance!
Requires
- php: >=7.1.0
- ext-curl: *
Suggests
- ext-gd: Enables additional image handling in some workflows.
- ext-imagick: Enables additional image format support when available.
- ext-zlib: Recommended for compressed streams and related features.
- tecnickcom/tc-lib-pdf: Modern replacement for TCPDF for new projects.
- dev-main
- 6.11.3
- 6.11.2
- 6.11.1
- 6.11.0
- 6.10.1
- 6.10.0
- 6.9.4
- 6.9.3
- 6.9.2
- 6.9.1
- 6.9.0
- 6.8.2
- 6.8.0
- 6.7.8
- 6.7.7
- 6.7.6
- 6.7.5
- 6.7.4
- 6.6.2
- 6.6.1
- 6.6.0
- 6.5.0
- 6.4.4
- 6.4.3
- 6.4.2
- 6.4.1
- 6.3.5
- 6.3.4
- 6.3.3
- 6.3.2
- 6.3.1
- 6.3.0
- 6.2.26
- 6.2.25
- 6.2.23
- 6.2.22
- 6.2.21
- 6.2.20
- 6.2.19
- 6.2.17
- 6.2.16
- 6.2.13
- 6.2.12
- 6.2.11
- 6.2.10
- 6.2.9
- 6.2.8
- 6.2.7
- 6.2.6
- 6.2.5
- 6.2.4
- 6.2.3
- 6.2.2
- 6.2.1
- 6.2.0
- 6.1.1
- 6.1.0
- 6.0.099
- 6.0.098
- 6.0.097
- 6.0.096
- 6.0.095
- 6.0.094
- 6.0.093
- 6.0.092
- 6.0.091
- 6.0.090
- 6.0.089
- 6.0.088
- 6.0.087
- 6.0.086
- 6.0.085
- 6.0.084
- 6.0.083
- 6.0.082
- 6.0.081
- 6.0.080
- 6.0.079
- 6.0.078
- 6.0.077
- 6.0.076
- 6.0.075
- 6.0.074
- 6.0.073
- 6.0.072
- 6.0.071
- 6.0.070
- 6.0.069
- 6.0.068
- 6.0.067
- 6.0.066
- 6.0.065
- 6.0.064
- 6.0.063
- 6.0.062
- 6.0.061
- 6.0.060
- 6.0.059
- 6.0.058
- 6.0.057
- 6.0.056
- 6.0.055
- 6.0.054
- 6.0.053
- 6.0.052
- 6.0.051
- 6.0.050
- 6.0.049
- 6.0.048
- 6.0.047
- 6.0.046
- 6.0.045
- 6.0.044
- 6.0.043
- 6.0.042
- 6.0.041
- 6.0.040
- 6.0.039
- 6.0.038
- 6.0.037
- 6.0.036
- 6.0.035
- 6.0.034
- 6.0.033
- 6.0.032
- 6.0.031
- 6.0.030
- 6.0.029
- 6.0.028
- 6.0.027
- 6.0.026
- 6.0.025
- 6.0.024
- 6.0.023
- 6.0.022
- 6.0.021
- 6.0.020
- 6.0.019
- 6.0.018
- 6.0.017
- 6.0.016
- 6.0.015
- 6.0.014
- 6.0.013
This package is auto-updated.
Last update: 2026-04-21 17:06:17 UTC
README
Legacy PDF engine for PHP. Deprecated and maintained for existing integrations.
If TCPDF helps your business, please consider supporting development via PayPal.
Deprecation Notice
TCPDF is deprecated and in maintenance-only mode.
Active feature development has moved to tc-lib-pdf, the modern and modular successor.
For new projects, use tecnickcom/tc-lib-pdf. This repository remains available for legacy systems and critical compatibility fixes.
Migration Path
- New projects: install
tecnickcom/tc-lib-pdf. - Existing TCPDF users: keep TCPDF for current production workloads and migrate in phases.
- Teams seeking modern architecture, Composer-first design, and stronger type-safety should prioritize
tc-lib-pdf.
Why Migrate to tc-lib-pdf
- Modern architecture: modular libraries and cleaner component boundaries improve maintainability.
- Better extensibility: new features are easier to add without patching a monolithic legacy core.
- Stronger tooling fit: modern package structure works better with static analysis, CI, and automated tests.
- Lower long-term risk: reduces technical debt tied to legacy APIs and supports ongoing PHP ecosystem evolution.
- Improved delivery speed: teams can implement and ship new PDF capabilities with less friction.
Migration still requires planning and regression checks to preserve rendering parity for existing documents.
Future Compatibility Possibility
As a long-term possibility, TCPDF could be refactored to use tc-lib-pdf internally as a backend while preserving a practical level of backward compatibility for existing TCPDF integrations.
This is not part of a committed roadmap and there is no guarantee it will happen. It is documented here only as a potential direction that may be evaluated in the future.
Overview
TCPDF is a pure-PHP library for generating PDF documents and barcodes directly in application code.
It has been widely used across many PHP stacks and still provides a complete feature set for text rendering, page composition, graphics, signatures, forms, and standards-oriented output.
| Package | tecnickcom/tcpdf |
| Author | Nicola Asuni info@tecnick.com |
| License | GNU LGPL v3 (see LICENSE.TXT) |
| Website | http://www.tcpdf.org |
| Source | https://github.com/tecnickcom/TCPDF |
Features
Text & Fonts
- UTF-8 Unicode and right-to-left (RTL) language support
- TrueTypeUnicode, OpenTypeUnicode v1, TrueType, OpenType v1, Type1, and CID-0 fonts
- Font subsetting
- Text hyphenation, stretching, spacing, and rendering modes (fill/stroke/clipping)
- Automatic line breaks, page breaks, and justification
Layout & Content
- Standard and custom page formats, margins, and measurement units
- XHTML + CSS rendering, JavaScript, and forms
- Automatic headers and footers
- Multi-column mode and no-write page regions
- Bookmarks, named destinations, and table of contents
- Automatic page numbering, page groups, move/delete pages, and undo transactions
Images, Graphics & Color
- Native JPEG, PNG, and SVG support
- Geometric drawing primitives and transformations
- Support for GD image formats (
GD,GD2,GD2PART,GIF,JPEG,PNG,BMP,XBM,XPM) - Additional formats via ImageMagick (when available)
- JPEG/PNG ICC profiles, grayscale/RGB/CMYK/spot colors, and transparencies
Security, Standards & Advanced Output
- Encryption up to 256-bit and digital signature certifications
- PDF annotations (links, text, and file attachments)
- 1D and 2D barcode support (including CODE 128, EAN/UPC, Datamatrix, QR Code, PDF417)
- XObject templates and layers with object visibility controls
- PDF/A-1b support
Requirements
- PHP 7.1 or later
ext-curl
Optional extensions for richer output in some workflows: gd, zlib, imagick.
Third-Party Fonts
This library may include third-party font files released under different licenses.
PHP metadata files under fonts are covered by the TCPDF license (GNU LGPL v3). They contain font metadata and can also be generated using TCPDF font utilities.
Original binary TTF files are renamed for compatibility and compressed with PHP gzcompress (the .z format).
| Prefix | Source | License |
|---|---|---|
free* |
GNU FreeFont | GNU GPL v3 |
pdfa* |
Derived from GNU FreeFont | GNU GPL v3 |
dejavu* |
DejaVu Fonts | Bitstream/DejaVu terms |
ae* |
Arabeyes.org | GNU GPL v2 |
For full details, see the bundled notices in the corresponding subdirectories under fonts.
ICC Profile
TCPDF includes sRGB.icc from the Debian icc-profiles-free package.
Contact
Nicola Asuni info@tecnick.com