Guides, tutorials, and tips for working with PDFs: from free tools to programmatic generation.

Turn a plain-language prompt into a reusable HTML and Handlebars PDF template with an LLM, then render it to PDF on demand. Patterns, prompts and guardrails.

Generate PDFs in Deno: Playwright and Puppeteer via npm specifiers for HTML to PDF, jsPDF and pdf-lib for drawing, plus a hosted PDF4.dev API.

pdf-lib writes and edits PDFs, pdf.js reads and renders them. A side-by-side of features, bundle size, and the tasks each one is built for.
Ready to generate PDFs programmatically?
Try the PDF4.dev API: free







