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

Hacker News Top Tools

Summary

This article explores the technical challenges of generating text-selectable PDFs on the client side, introducing SDocs as a solution and providing installation instructions for its CLI tool.

No content available
Original Article
View Cached Full Text

Cached at: 05/08/26, 10:42 AM

# SDocs Source: [https://sdocs.dev/blogs/journey-to-pdf-generation](https://sdocs.dev/blogs/journey-to-pdf-generation) Font family Base sizepx Line height Default for code blocks, blockquotes, and charts\. Override individually below\. Font family Size scale Margin bottomem Line height Margin bottomem Item spacingem Indentem Border widthpx Font sizeem - Requires**sdocs\-dev**CLI- Install:`npm link`from project root - Saves to`~/\.sdocs/styles\.yaml` - Paste the command below in your terminal 100% private \([learn why](https://sdocs.dev/#sec=privacy)\)·Open source:[verify server](https://sdocs.dev/trust)· CLI for you & your agents:`npm i \-g sdocs\-dev`·[GitHub](https://github.com/espressoplease/SDocs)·You agree to our[Terms](https://sdocs.dev/legal)

Similar Articles

We built an open source UI kit for document RAG/agents

Reddit r/LocalLLaMA

An open source UI kit with 15 components for document viewing (PDF, DOCX, XLSX) including bounding box citations, file upload, e-signature, and file system integration, released under MIT license.

Stirling-Tools/Stirling-PDF

GitHub Trending (daily)

Stirling-PDF is a powerful open-source PDF platform offering 50+ editing tools, automation pipelines, and self-hosted deployment options for desktop, browser, or server.

A PDF that changes based on who is reading

Hacker News Top

This article presents a technique to embed hidden markdown structure inside PDFs using the PDF spec's replacement text property, enabling LLMs to extract clean, structured data while humans see the same visual document.