SVG graphic in FPDF
10,545
In PHP TCPDF supports .svg
(http://www.tcpdf.org/)
Author by
ERushforth
Updated on June 14, 2022Comments
-
ERushforth almost 2 years
I need SVG data to print to an FPDF generated PDF. I'm bringing in said data from a post variable named $svg. When I try and write the variable to the page I get the entire data in text, not as an image (as expected), is there a way to get FPDF to draw the $svg on to the PDF? Below is my terrible attempt. Thanks.
$pdf->Write( 6, $svg);