4 ms·
Interesting. Wonder how easily it would be to generalise this—turn into an API that gives out some image data that could be in turn converted to PDF, SVG, PNG,
by simpleintheory 4y ago
Interesting. Wonder how easily it would be to generalise this—turn into an API that gives out some image data that could be in turn converted to PDF, SVG, PNG, you name it… though not sure how the data would be structured though
- fathyb 4y agoI had a lot of people reach out this week-end for PDF support, so I'm planning on implementing it with PNG support this week. Thanks to Skia, it should just require a few lines of code.
- justinclift 4y agoPDF or PNG? It's not clear from your comment. :)
- fathyb 4y agoHopefully both! More precisely PDF, and bitmap with an option to encode as JPEG, PNG or WebP. I'll have to find a new name..
- codethief 4y agoPDF support would be fantastic! I've tried every FOSS html2pdf converter under the sun and they're all either buggy or outdated (based on very old browser engines) or both. How do I best follow your project and any upcoming announcements?
- fathyb 4y agoI've opened an issue to track PDF support [0], you can subscribe to get updates for this specific feature. For general project updates you can use the "Watch" button on the repository to get commit updates on your feed. [0] https://github.com/fathyb/html2svg/issues/3 https://github.com/fathyb/html2svg/issues/3
- imhoguy 4y agoYou can make PDF or PNG from SVG.