i have follow situation. I'm using fabric.js for my canvas. My target is to convert the canvas to a PDF with a transparent background and the vector informations. The vector informations are important for the printing process.
I've tried to generate a jpg/jpeg picture of the canvas and convert it than to a pdf with pdf.js library but the thing is, that jpg/jpeg can't display transparent background. If I convert the canvas to a PNG-File, the vector informations get deleted.
I have no idea how i can reach my target. Have anyone else an idea how i can reach my target? Is there a possibility to convert the fabric.js canvas directly to a pdf ?