HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › pdf renders garbled png image › Re: Re: pdf renders garbled png image
November 6, 2013 at 14:14
#28327
Unfortunately PD4ML does not support JavaScript and Canvas – so most probably that is the problem reason.
On the other hand if you generate the chart in a regular browser, extract the image as a base64-encoded data URL and pass the image to PD4ML to be converted to PDF – the trick may work.
In the case it would help if you send us a typical data URL, obtained with canvas.toDataURL(). We’ll check what could be done.