Hacker News new | past | comments | ask | show | jobs | submit login

I like the simplicity of the UX, I would find it much more usable open source so I can adjust the template easily.

I wrote a similar thing for my board game site [0], using yml files as data sources with jekyll includes to generate the html and a html2canvas conversion to make printable images of individual cards that I have to manually put on a print-sheet -- not quite as streamlined as this, and I would love to learn from the rest of this person's flow architecture on how to generate a pdf, make it downloadable, expose the json editor. I know I could learn each of these on my own, but this is so close to my usecase it would be nice.

[0]: https://gitlab.com/keerthik/dicestorm/




I’d probably create a tex-template for the cards, populate it with data from the json/yml-input and run it through pdf-latex.

You could probably create the entire thing as an bibtex-template and even use that to build the tex.


Headless chrome and a print-to-pdf are the way to go, here. There’s a library (whose name eludes me) which wraps it all up very nicely in a JS lib. If you’ve got the html, generating a pdf automatically shouldn’t be more than one screen of code and a docker container.

Edit: the lib is puppeteer. https://github.com/GoogleChrome/puppeteer/


I'm surprised this community is not more adamant about source being shared alongside a "Show HN" post. It seems like a no-brainer to include source when showing a group of software enthusiasts your non-commercial project.





Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: