Skip to content

TCPDF-NextThe modern PHP PDF library.

Rebuilt for a new era. PDF 2.0 · PAdES B-LTA · PDF/A-4 · PHP 8.5+ · Laravel 12

TCPDF-Next
FunctionalFramework IntegrationCompatibilityArtisanChrome CDPProEnterpriseLaravelLaravel 12SymfonySymfony 7CodeIgniterCodeIgniter 4AdaptationTCPDF MigrationTCPDF-NextCorePDF 2.0 Engine
Core
TCPDF-Next Core
PDF 2.0 Engine
Functional
ArtisanArtisanChrome CDP
ProProEnterprise
Framework Integration
LaravelLaravelLaravel 12
SymfonySymfonySymfony 7
CodeIgniterCodeIgniterCodeIgniter 4
Compatibility
AdaptationAdaptationTCPDF Migration
220+
Source Files
1,004
Tests
29,586
Assertions
Level 10
PHPStan

Find Your Perfect Setup

Not sure which packages you need? Our interactive wizard analyzes your environment and recommends the ideal combination.

1
Project Type
2
PHP Version
3
Framework
4
HTML-to-PDF
5
Pro Features

Project Type

The Ecosystem

TCPDF-Next is not a single library — it's a modular ecosystem of 7 packages designed to work together.

Functional

PackageComposerDescription
Coreyeeefang/tcpdf-nextPDF 2.0 generation, typography, barcodes, encryption, PAdES B-B
Artisanyeeefang/tcpdf-next-artisanChrome CDP HTML-to-PDF — pixel-perfect HTML/CSS3
Proyeeefang/tcpdf-next-proPAdES B-T~B-LTA, PDF/A-4, HSM signing, specialty barcodes

Framework Integration

PackageComposerDescription
Laravelyeeefang/tcpdf-next-laravelLaravel 12 — Facade, Queue, Octane-safe
Symfonyyeeefang/tcpdf-next-symfonySymfony 7 — Bundle, PdfFactory, Messenger
CodeIgniteryeeefang/tcpdf-next-codeigniterCodeIgniter 4 — Services, Library, Queue

Compatibility

PackageComposerDescription
Adaptationyeeefang/tcpdf-next-adaptationTCPDF 6.2.13 backward-compatible adapter — drop-in migration

Quick Look

5 lines of code to generate a PDF:

php
use Yeeefang\TcpdfNext\Core\Document;

$pdf = Document::createStandalone()
    ->setTitle('My First PDF')
    ->addPage()
    ->setFont('Helvetica', '', 14)
    ->cell(0, 10, 'Hello, PDF 2.0!')
    ->save('hello.pdf');

With Laravel:

php
use Yeeefang\TcpdfNext\Laravel\Facades\Pdf;
use Yeeefang\TcpdfNext\Laravel\Http\PdfResponse;

$pdf = Pdf::createStandalone()
    ->setTitle("Invoice #{$invoice->number}")
    ->addPage()
    ->setFont('Helvetica', '', 12)
    ->cell(0, 10, "Invoice #{$invoice->number}");

return PdfResponse::inline($pdf, "invoice-{$invoice->number}.pdf");

TCPDF vs TCPDF-Next

FeatureOriginal TCPDFTCPDF-Next
PHP version5.x – 8.x8.5+ only
PDF spec1.4 – 1.72.0 (ISO 32000-2:2020)
ArchitectureSingle ~30K-line class220+ files, 15 modules, 12 composable traits
Type safetyNonePHPStan Level 10, backed enums, readonly classes
SignaturesBasic PKCS#7PAdES B-B (Core) → B-LTA (Pro)
ArchivalPDF/A-1b (partial)PDF/A-4 (ISO 19005-4:2020)
HTML renderingBuilt-in (limited CSS)Built-in + Chrome CDP (full CSS3)
Testing~50 tests1,004 tests, 29,586 assertions
ExtensibilitySubclass monolithModular ecosystem (7 packages) + extension API
FrameworkNoneLaravel 12, Symfony 7, CodeIgniter 4

Standards Compliance

ISO 32000-2:2020 — PDF 2.0 ISO 19005-4:2020 — PDF/A-4 ETSI EN 319 142-1 — PAdES RFC 3161 — TSA Timestamps RFC 5652 — CMS (PKCS#7) RFC 6960 — OCSP RFC 4013 — SASLprep
StandardCoveragePackage
ISO 32000-2:2020PDF 2.0 — fullCore
ISO 19005-4:2020PDF/A-4, 4e, 4fPro
ETSI EN 319 142-1PAdES B-BCore
ETSI EN 319 142-1PAdES B-T ~ B-LTAPro
RFC 3161TSP (client in Core, doc-timestamp in Pro)Core + Pro
RFC 5652CMS (PKCS#7)Core
RFC 6960OCSPPro
RFC 5280X.509 / CRLPro
RFC 4013SASLprepCore
ISO 18004QR Code (v1-40, ECI, Kanji)Core
ISO 16022DataMatrix (+ DMRE)Core
ISO 15438PDF417Core
ISO 18004 AnnexMicro QR (M1-M4)Pro
ISO 24723DotCodePro
ISO 20830HanXinPro
ISO 23634JAB Code (polychromatic)Pro

Community & Support

Released under the LGPL-3.0-or-later License.