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
I am using chart.js and canvas2svg.js to convert chart to svg and getting svg code with
var svgCode = svgContext.getSerializedSvg(true)
I am passing this svgCode to my ajax call in a php file and trying to add svgCode in WriteHtml() function and getting following error
Guidelines
Description of the bug
I am using chart.js and canvas2svg.js to convert chart to svg and getting svg code with
var svgCode = svgContext.getSerializedSvg(true)
I am passing this svgCode to my ajax call in a php file and trying to add svgCode in WriteHtml() function and getting following error
Fatal error: Uncaught TypeError: Unsupported operand types: string * float in D:\www\test\vendor\mpdf\mpdf\src\Image\Svg.php:1488
when I replace following code in Svg.php line no 1488 its working
$arr .= sprintf('%.3F %.3F ', (float)$d[$i] * $this->kp, (float)$d[$i + 1] * $this->kp);
mPDF version
8.2
PHP Version and environment (server type, cli provider etc., enclosing libraries and their respective versions)
8.1
Reproducible PHP+CSS+HTML snippet suffering by the error
The text was updated successfully, but these errors were encountered: