TCPDF-NextLibrary PHP PDF modern.
Dibangun ulang untuk era baru. PDF 2.0 · PAdES B-LTA · PDF/A-4 · PHP 8.5+ · Laravel 12
Mendukung ISO 32000-2:2020 sejak awal. Cross-reference stream, hanya AES-256, XMP metadata. Tanpa kode lama.
Siklus hidup tanda tangan digital lengkap — B-B (Core) sampai B-LTA (Pro) dengan LTV, OCSP, CRL, dan timestamp RFC 3161.
Kepatuhan ISO 19005-4:2020 — XMP metadata, ICC output intent, penyematan font, validasi ruang warna.
AESV3 Revision 6 dengan normalisasi password SASLprep (RFC 4013). Tanpa RC4 lama atau kunci 40-bit.
ServiceProvider otomatis, Pdf Facade, pembuatan PDF async berbasis queue, aman untuk Octane, HTTP response helper.
220+ file sumber dalam 7 paket. Core + Artisan + Pro + Laravel + Symfony + CodeIgniter + Adaptation.
Belum yakin package mana yang Anda butuhkan? Wizard interaktif kami akan menganalisis lingkungan Anda dan merekomendasikan kombinasi yang ideal.
TCPDF-Next bukan hanya satu library — ini adalah ekosistem modular dari 7 package yang dirancang untuk bekerja bersama.
| Package | Composer | Deskripsi |
|---|---|---|
| Core | yeeefang/tcpdf-next | Pembuatan PDF 2.0, tipografi, barcode, enkripsi, PAdES B-B |
| Artisan | yeeefang/tcpdf-next-artisan | Chrome CDP HTML-to-PDF — HTML/CSS3 pixel-perfect |
| Pro | yeeefang/tcpdf-next-pro | PAdES B-T~B-LTA, PDF/A-4, HSM signing, barcode spesialis |
| Package | Composer | Deskripsi |
|---|---|---|
| Laravel | yeeefang/tcpdf-next-laravel | Laravel 12 — Facade, Queue, Octane-safe |
| Symfony | yeeefang/tcpdf-next-symfony | Symfony 7 — Bundle, PdfFactory, Messenger |
| CodeIgniter | yeeefang/tcpdf-next-codeigniter | CodeIgniter 4 — Services, Library, Queue |
| Package | Composer | Deskripsi |
|---|---|---|
| Adaptation | yeeefang/tcpdf-next-adaptation | Adapter backward-compatible TCPDF 6.2.13 — migrasi drop-in |
5 baris kode untuk membuat PDF:
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');Dengan Laravel:
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");| Feature | TCPDF Original | TCPDF-Next | |
|---|---|---|---|
| Versi PHP | 5.x – 8.x | 8.5+ saja | |
| Spesifikasi PDF | 1.4 – 1.7 | 2.0 (ISO 32000-2:2020) | |
| Arsitektur | Satu class ~30K baris | 220+ file, 15 modul, 12 composable trait | |
| Type safety | Tidak ada | PHPStan Level 10, backed enum, readonly class | |
| Tanda tangan | PKCS#7 dasar | PAdES B-B (Core) → B-LTA (Pro) | |
| Arsip | PDF/A-1b (parsial) | PDF/A-4 (ISO 19005-4:2020) | |
| Rendering HTML | Built-in (CSS terbatas) | Built-in + Chrome CDP (CSS3 penuh) | |
| Testing | ~50 test | 1.004 test, 29.586 assertion | |
| Extensibility | Subclass monolith | Ekosistem modular (7 package) + extension API | |
| Framework | Tidak ada | Laravel 12, Symfony 7, CodeIgniter 4 |
| Standar | Cakupan | Package |
|---|---|---|
| ISO 32000-2:2020 | PDF 2.0 — penuh | Core |
| ISO 19005-4:2020 | PDF/A-4, 4e, 4f | Pro |
| ETSI EN 319 142-1 | PAdES B-B | Core |
| ETSI EN 319 142-1 | PAdES B-T ~ B-LTA | Pro |
| RFC 3161 | TSP (client di Core, doc-timestamp di Pro) | Core + Pro |
| RFC 5652 | CMS (PKCS#7) | Core |
| RFC 6960 | OCSP | Pro |
| RFC 5280 | X.509 / CRL | Pro |
| RFC 4013 | SASLprep | Core |
| ISO 18004 | QR Code (v1-40, ECI, Kanji) | Core |
| ISO 16022 | DataMatrix (+ DMRE) | Core |
| ISO 15438 | PDF417 | Core |
| ISO 18004 Annex | Micro QR (M1-M4) | Pro |
| ISO 24723 | DotCode | Pro |
| ISO 20830 | HanXin | Pro |
| ISO 23634 | JAB Code (polychromatic) | Pro |