Generate PDFs on client side
mondeja opened this issue · 0 comments
mondeja commented
Kind of issue
- Feature
- Bug
- Design
- Other, namely:
Description
We can use PDFKit and blob-stream (maybe this not necessary) to generate icon PDFs versions on the fly. This would maybe deprecate the simple-icons-pdf repository which is not maintained. Anyways it would allow us to remove the postinstall repository download from master branch which is really weird.
I've implemented this at simple-icons-website-rs, see this file for the implementation (generate PDF from icon slug using the SVG file) and the function for lazy loading the libraries which are attached as scripts only when a) the user selects the PDF download type through control or b) when the PDF download type is loaded from local storage.