{"repo":"yWorks/svg2pdf.js","free":true,"listed":false,"github":"https://github.com/yWorks/svg2pdf.js","clone":"git clone https://github.com/yWorks/svg2pdf.js.git","description":"A javascript-only SVG to PDF conversion utility that runs in the browser. Brought to you by yWorks - the diagramming experts","language":"TypeScript","stars":833,"topics":["javascript","svg","pdf","conversion","nodejs","browser","pdf-conversion-utility","jspdf","hacktoberfest"],"license":"MIT","category":"media-processing","readme_excerpt":"svg2pdf.js A javascript-only SVG to PDF conversion utility that runs in the browser leveraging jsPDF. Give it a trial: online playground. Installation You can get svg2pf.js via npm: Since version 2.x, this repository no longer depends on a forked jsPDF but can be used with original MrRio/jsPDF. If you want to use a development version from the repository, pay attention to the fact that the files in dist may reflect the last release version. So a simple package.json dependency link to the branch or revision will fail. See #102 for details. Usage Have a look at the typings file for detailed documentation. Other module formats Importing is also possible via requirejs: or script-tag: Concerning custom fonts and non US-ASCII characters If you want to use other than really basic fonts and characters you have to add them first before calling svg2pdf : Please refer to the jsPDF readme. Reporting issues Svg2pdf is by no means perfect. If you find something is not working as expected we are glad to receive an issue report from you. In order to be able to react efficiently we ask you to provide us with the necessary information. Please stick to our Code of Conduct. Building If you want to play with the sources or build the minified js file yourself, check out the repository and use the npm scripts defined in package.json : Testing The test folder contains a set of unit tests. Each unit test has its own folder and contains exactly two files: - A spec.svg file that contains the svg to tes","default_branch":null,"files":null,"tree":[],"storefront":"/r/yWorks","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yWorks/svg2pdf.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}