Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

convert fabricjs object to PDF format rather than simple image?

I want to convert fabricjs object to PDF not just simple image format. Is there any way we can save file as PDF without server side process?

like image 635
kuldipem Avatar asked Sep 20 '15 06:09

kuldipem


1 Answers

You can use canvas API's toDataURL() method and jspdf.js to achieve this. Look at Convert canvas to PDF

like image 187
Kesavamoorthi Avatar answered Oct 12 '22 18:10

Kesavamoorthi