Make PDF out of HTML with ECharts

Hi there,
we are using Jmix 1.5 , having a screen with a browserFrame to provide a styled report.

Inside the browserFrame we have HTML, JavaScript, ECharts. All working fine.

Now it comes to PDF creation and I’m a little bit lost in various - none working for me - hints on how to convert SVG to IMG/PNG-Tags.
We want to convert with iText but are open for ideas and other libraries.

Did anyone conquer this, yet?
Thanks inadvance for ideas,…
best regards,
HP

ok, found:
myEChart.getDataURL() does the job to make IMG instead of CANVAS.
That’s the first part of the solution to get ‘real IMG tags’.