The starting points: I don\'t have a server that can provide anything but static files. And I have an SVG element (dynamically created) in my that
jsPDF has a plugin for that: svgToPdf:
https://github.com/ahwolf/jsPDF/blob/master/jspdf.plugin.svgToPdf.js
I haven't tried it, but this could allow discarding the use of an external API and/or having to rely on a server-side solution.