I'm using FDPF and I want to add a JavaScript chart that I created with D3 into the pdf. I was able to visualize the chart into an HTML webpage with the following code. I'm simply appending the chart into the div id "chart."
<!-- Circular Bar Chart start -->
<div class="row">
<div class="large-12 large-centered columns chart-container">
<h2>Circular Bar Chart</h2>
<div id="chart" class="text-center"></div>
</div>
</div>
Usually, when you add an image into a PDF with FDPF you use the following code. I'm simply appending the chart to the div id "chart"
// Insert image
$pdf->Image('images/graphic_cropped.jpg',15,3,130);
How can I insert the chart that I generated with D3 into my PDF with FPDF?