I'm developing a web-app on Symfony4 and I need to generate PDF with charts created with Chart.js. For PDFs, I'm using mPDF but it's not able to render such chart... My idea is to create a screenshot of chart generated by chart.js and then pass it as a png to mPDF, but I'm not really sure how to achieve that.
Can you give me a hint if I'm thinking in the right direction?