3 ms·
Is there any SSG that output tons of PDFs ? I have need for product documentation, with every permutation it counts upward of 10000, with mostly similar data, w
by iamgopal 3y ago
Is there any SSG that output tons of PDFs ? I have need for product documentation, with every permutation it counts upward of 10000, with mostly similar data, will it be possible to use some SSG for the same ?
- csande17 3y agoThere are a bunch of tools for generating PDFs from HTML documents. https://print-css.rocks/ https://print-css.rocks/ has a list, along with CSS compatibility test results and special CSS features you can use for print documents. You could use your favorite HTML generator, then throw the result into one of those using a shell script.
- altbdoor 3y agoIn a round about way, I would suppose: 1. Having these documentation as webpages, with proper print CSS 2. SSG them into a bunch of HTML files 3. Serve them quickly with a web server (e.g., python -m http.server) 4. Run a headless Chrome, iterate, and print as PDF
- Lammy 3y agoI did it in the past with `wkhtmltopdf`. Upside is that it's SSG-agnostic; downside is it's a really heavy dependency with the entire browser engine. If I were to try again I would try to wire up a Jekyll `document` `pre_render` hook to Hexapdf: - https://jekyllrb.com/docs/plugins/hooks/ https://jekyllrb.com/docs/plugins/hooks/ - https://hexapdf.gettalong.org/documentation/document-creation/index.html https://hexapdf.gettalong.org/documentation/document-creatio...
- rocmcd 3y agoI've had luck doing this (in mkdocs) with: https://github.com/orzih/mkdocs-with-pdf https://github.com/orzih/mkdocs-with-pdf
- petepete 3y agoI'd use Nanoc for this kind of thing. It's more of a SSG kit and it's dead easy to write a rule + filter that, for example, takes every markdown doc in a directory and builds a pdf with Pandoc. https://www.nanoc.app https://www.nanoc.app