TCPDF-NextLa moderna libreria PHP per PDF.
Ricostruita per una nuova era. PDF 2.0 · PAdES B-LTA · PDF/A-4 · PHP 8.5+ · Laravel 12
ISO 32000-2:2020 dal primo giorno. Cross-reference streams, solo AES-256, metadata XMP. Zero legacy.
Ciclo di vita completo della firma digitale — B-B (Core) a B-LTA (Pro) con LTV, OCSP, CRL e timestamp RFC 3161.
Conformità ISO 19005-4:2020 — metadata XMP, output intents ICC, incorporamento font, validazione spazio colore.
AESV3 Revisione 6 con normalizzazione password SASLprep (RFC 4013). Nessun legacy RC4 o chiavi 40-bit.
ServiceProvider auto-rilevato, Pdf Facade, generazione async basata su queue, Octane-safe, HTTP response helpers.
220+ file sorgente in 7 package. Core + Artisan + Pro + Laravel + Symfony + CodeIgniter + Adaptation.
Non sei sicuro di quali pacchetti ti servono? La nostra procedura guidata interattiva analizza il tuo ambiente e consiglia la combinazione ideale.
TCPDF-Next non è una singola libreria — è un ecosistema modulare di 7 pacchetti progettati per funzionare insieme.
| Pacchetto | Composer | Descrizione |
|---|---|---|
| Core | yeeefang/tcpdf-next | Generazione PDF 2.0, tipografia, codici a barre, crittografia, 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, firma HSM, codici a barre specializzati |
| Pacchetto | Composer | Descrizione |
|---|---|---|
| Laravel | yeeefang/tcpdf-next-laravel | Laravel 12 — Facade, Queue, compatibile Octane |
| Symfony | yeeefang/tcpdf-next-symfony | Symfony 7 — Bundle, PdfFactory, Messenger |
| CodeIgniter | yeeefang/tcpdf-next-codeigniter | CodeIgniter 4 — Services, Library, Queue |
| Pacchetto | Composer | Descrizione |
|---|---|---|
| Adaptation | yeeefang/tcpdf-next-adaptation | Adattatore retrocompatibile TCPDF 6.2.13 — migrazione drop-in |
5 righe di codice per generare un 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');Con 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 Originale | TCPDF-Next | |
|---|---|---|---|
| Versione PHP | 5.x – 8.x | 8.5+ solo | |
| Specifica PDF | 1.4 – 1.7 | 2.0 (ISO 32000-2:2020) | |
| Architettura | Classe singola ~30K righe | 220+ file, 15 moduli, 12 trait componibili | |
| Type safety | Nessuna | PHPStan Level 10, backed enum, classi readonly | |
| Firme | PKCS#7 base | PAdES B-B (Core) → B-LTA (Pro) | |
| Archiviazione | PDF/A-1b (parziale) | PDF/A-4 (ISO 19005-4:2020) | |
| Rendering HTML | Integrato (CSS limitato) | Integrato + Chrome CDP (CSS3 completo) | |
| Testing | ~50 test | 1,004 test, 29,586 asserzioni | |
| Estensibilità | Sottoclasse monolitica | Ecosistema modulare (7 pacchetti) + API estensioni | |
| Framework | Nessuno | Laravel 12, Symfony 7, CodeIgniter 4 |
| Standard | Copertura | Pacchetto |
|---|---|---|
| ISO 32000-2:2020 | PDF 2.0 — completo | 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 in Core, doc-timestamp in 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 (policromatico) | Pro |