I am using jspdf for creating PDF inside browser. For adding data to pdf I am converting svg to png using canvas and then Base64 Data using mundialitoapa.comURL method. After all this conversions size of the file created by jspdf is huge (about 50 MB). This will fetch all dependencies and then compile the dist files. To see the examples locally you can start a web server with npm start and go to localhost: Dist - jsPDF/mundialitoapa.com at master - Examples - Issues This code works for me: Hello world.