kinimesi / cytoscape-svg

A Cytoscape.js extension to export the current graph view as an SVG.
https://kinimesi.github.io/cytoscape-svg
GNU General Public License v3.0
34 stars 5 forks source link

Export to PDF #11

Closed karchjd closed 6 months ago

karchjd commented 6 months ago

Hey, thanks for this great package; it still works well for me. I would also like to export as PDF, specifically a PDF that contains only the SVG file. I assume this should be relatively easy, but I failed to do it myself. I mostly tried using https://github.com/yWorks/svg2pdf.js.

kinimesi commented 6 months ago

I don't think this should be part of this library, but I added examples to the demo files about saving the exported SVG as a PDF: https://github.com/kinimesi/cytoscape-svg/blob/114bbdf3f18e6f15e246317c4d63e7aa67d821b5/demo.html#L116

karchjd commented 5 months ago

Thanks a lot!