PNG in docHeaderImage of toPDF

Hi all,
is there a way to put PNG image in docHeaderImage of toPDF?

Thanks

Hello @codejoin ,
You can Ņonvert Png to Jpg within the same domain.
Use the HTML5 <canvas> for it:
Create a canvas and load your image into it and then use toDataURL() to get the jpeg representation and call method webix.toPDF.
So we recommend converting the image on the server to immediately receive jpg.
Please note that in the snippet below the picture is stored on a third-party resource and we cannot guarantee that this URL will be always available:
https://snippet.webix.com/4i2ck1n7