Tabella API Mapping
Riferimento completo per migrazione da TCPDF legacy a TCPDF-Next.
Metodi Documento
| TCPDF Legacy | TCPDF-Next | Note |
|---|---|---|
new TCPDF() | Document::create() | Builder fluent |
AddPage() | addPage() | camelCase |
Output() | save() / output() | Metodi dedicati |
SetCreator() | setCreator() | camelCase |
SetAuthor() | setAuthor() | camelCase |
SetTitle() | setTitle() | camelCase |
SetSubject() | setSubject() | camelCase |
SetKeywords() | setKeywords() | Array invece di stringa |
Metodi Testo
| TCPDF Legacy | TCPDF-Next |
|---|---|
Cell() | cell() |
MultiCell() | multiCell() |
Write() | write() |
Text() | text() |
SetFont() | setFont() |
Metodi Colore
| TCPDF Legacy | TCPDF-Next |
|---|---|
SetDrawColor(r,g,b) | setDrawColor(Color::rgb(r,g,b)) |
SetFillColor(r,g,b) | setFillColor(Color::rgb(r,g,b)) |
SetTextColor(r,g,b) | setTextColor(Color::rgb(r,g,b)) |
Metodi Grafica
| TCPDF Legacy | TCPDF-Next |
|---|---|
Line() | line() |
Rect() | rect() |
Circle() | circle() |
Ellipse() | ellipse() |
Image() | image() |
Per mapping completo di tutti i 252 metodi, vedi la documentazione API completa.