spipu / html2pdf

OFFICIAL PROJECT | HTML to PDF converter written in PHP
http://html2pdf.fr/en/default
Open Software License 3.0
1.67k stars 748 forks source link

Error: "Array and string offset access syntax with curly braces is no longer supported" #787

Closed Heliophob closed 9 months ago

Heliophob commented 10 months ago

After installing via Composer and the first test I get the following error message:

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /is/htdocs/XXXXXXXXXXXXXXX/vendor/tecnickcom/tcpdf/tcpdf.php on line 16901

Heliophob commented 10 months ago

I know how stupid that must look. but my source only calls like in the example:

require '/is/htdocs/xxxxxxx/vendor/autoload.php';
use Spipu\Html2Pdf\Html2Pdf;
$html2pdf = new Html2Pdf();
$html2pdf->writeHTML('<h1>HelloWorld</h1>This is my first test');
$html2pdf->output();
Heliophob commented 9 months ago

I deleted all composer files and created new ones. now it's working.