You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is working absolutely fine but now I am stuck doing the same thing in html2pdf . I want to include couple of JS files and generate my chart using script tag and then put image into my PDF file.
When I try to generate PDF file, I am getting an error saying,
Fatal error: Uncaught Spipu\Html2Pdf\Exception\HtmlParsingException: The html tag [canvas] is not known by Html2Pdf. You can create it and push it on the Html2Pdf GitHub project. in /var/www/html/htmlpdf/vendor/spipu/html2pdf/src/Html2Pdf.php:1435 Stack trace: #0 /var/www/html/htmlpdf/vendor/spipu/html2pdf/src/Html2Pdf.php(1043): Spipu\Html2Pdf\Html2Pdf->_executeAction(Object(Spipu\Html2Pdf\Parsing\Node)) #1 /var/www/html/htmlpdf/vendor/spipu/html2pdf/src/Html2Pdf.php(749): Spipu\Html2Pdf\Html2Pdf->_setNewPositionForNewLine(NULL) #2 /var/www/html/htmlpdf/vendor/spipu/html2pdf/src/Html2Pdf.php(1415): Spipu\Html2Pdf\Html2Pdf->_setNewPage() #3 /var/www/html/htmlpdf/vendor/spipu/html2pdf/src/Html2Pdf.php(1401): Spipu\Html2Pdf\Html2Pdf->_executeAction(Object(Spipu\Html2Pdf\Parsing\Node)) #4 /var/www/html/htmlpdf/vendor/spipu/html2pdf/src/Html2Pdf.php(595): Spipu\Html2Pdf\Html2Pdf->_makeHTMLcode() #5 /var/www/html/htmlpdf/test.php(138): Spipu\Html2Pdf\Html2Pdf->writeHTML('<canvas id="can...') #6 {main} thrown in /var/www/html/htmlpdf/vendor/spipu/html2pdf/src/Html2Pdf.php on line 1435
Can someone guide me how can I generate my script here and put only my image into PDF.
The text was updated successfully, but these errors were encountered:
I am using Chart.js.
This is my php file and I have used javascript through which I am simply creating a chart and creating chart image after that.
This is working absolutely fine but now I am stuck doing the same thing in html2pdf . I want to include couple of
JS
files and generate my chart usingscript
tag and then put image into my PDF file.This is what I have done without any luck.
When I try to generate PDF file, I am getting an error saying,
Can someone guide me how can I generate my script here and put only my image into PDF.
The text was updated successfully, but these errors were encountered: