Convert SVG to PDF using 100% JavaScript