Hacker News new | ask | show | jobs
by sings 832 days ago
It is limited and depends on the browser used to print the document. The most glaring missing feature is CMYK colour.

I’ve just set up our publications to use PagedJS, and with a fair amount of hacking I was able to set up a baseline grid. Hyphenation depends on the browser implementation, which is OK for English in recent Chromium. The new text-wrap property has also been helpful. Hanging punctuation is only supported in Safari if I remember correctly.

But being able to produce nice looking PDFs from a markdown document, with automated endnotes and table of contents, is a much nicer process than going through InDesign, and I also say this as someone equally comfortable with both. And the result is good enough for our purposes.

Here is an example: https://www.lowyinstitute.org/sites/default/files/2024-03/LA...

1 comments

I agree that InDesign generally is clunky (the same reason it has a lot of typesetting black magic: business model where you make money by satisfying requests of perfectionist designers and their managers). However, in the past, while I was still doing relevant work, I had mild success abstracting some of it out by defining a template and populating it with data imported from JSON.

Now I’m not using ID much, and struggling with generating PDFs from HTML, so I really appreciated the example you gave. Great work!