Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export to PDF #11

Closed
karchjd opened this issue Mar 4, 2024 · 2 comments
Closed

Export to PDF #11

karchjd opened this issue Mar 4, 2024 · 2 comments

Comments

@karchjd
Copy link

karchjd commented Mar 4, 2024

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
Copy link
Owner

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:

const saveAsPdf = function(filename) {

@karchjd
Copy link
Author

karchjd commented Mar 18, 2024

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants