The surprisingly complex journey to text-selectable client-side generated PDFs

· devtools design · Source ↗

SDocs is a client-side PDF generation tool with a full typography and theming system, distributed via npm, that keeps all document processing local by design.

What Matters

  • SDocs exposes granular typographic controls: font family, size scale, line height, margin, indent, border width per element type.
  • Style configuration saves to ~/.sdocs/styles.yaml via the sdocs-dev CLI, installed with npm i -g sdocs-dev.
  • The tool is positioned as “100% private” with an open-source server for independent verification.
  • Text-selectable client-side PDFs sit in the same notorious difficulty tier as email templates and print CSS. [HN: @josefrichter]

Original | Discuss on HN