Get your API key

Guides for PDF development

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

How to remove blank pages from a PDF (auto-detect, free)
PDF Manipulation

How to remove blank pages from a PDF (auto-detect, free)

Remove blank pages from a PDF automatically. Detect and delete empty pages in your browser, with Python (pypdf), or Node.js (pdf-lib and pdf.js), no upload.

How to render right-to-left (Arabic, Hebrew) text in PDF
Developer Guides

How to render right-to-left (Arabic, Hebrew) text in PDF

Render Arabic, Hebrew, and Persian text correctly in HTML to PDF: set dir=rtl, load a font with the right glyphs, and let Chromium shape the bidi text.

How to generate a PDF from Google Forms responses
Use Cases

How to generate a PDF from Google Forms responses

Turn Google Forms submissions into PDFs automatically: an Apps Script on-submit trigger that maps responses to a template and renders a PDF, emailed or saved to Drive.

How to generate PDFs with Google Apps Script
Developer Guides

How to generate PDFs with Google Apps Script

Generate PDFs in Google Apps Script: the built-in getAs("application/pdf") for Docs and Sheets, HtmlService, or a hosted PDF4.dev API for full HTML and CSS control.

How to insert pages into a PDF (blank page or from another file)
PDF Manipulation

How to insert pages into a PDF (blank page or from another file)

Insert pages into a PDF at any position: add a blank page or copy pages from another file. Browser, Python (pypdf), Node.js (pdf-lib), and CLI methods.

How to add a table of contents to a PDF
Developer Guides

How to add a table of contents to a PDF

Add a clickable table of contents and PDF bookmarks: build it from HTML anchors when converting with Chromium, or add outline entries to an existing PDF with pdf-lib.

PDF generation in Elixir: ChromicPDF, Phoenix, and a PDF API compared
Developer Guides

PDF generation in Elixir: ChromicPDF, Phoenix, and a PDF API compared

Generate PDFs in Elixir and Phoenix: ChromicPDF for HTML to PDF via headless Chromium, pdf_generator, Gutenex, and a hosted PDF4.dev API, with code and tradeoffs.

PDF generation in Supabase Edge Functions
Developer Guides

PDF generation in Supabase Edge Functions

Generate PDFs from Supabase Edge Functions: why the Deno runtime has no Chromium, using pdf-lib or jsPDF, or calling a hosted PDF4.dev API for HTML to PDF.

Dompdf vs mPDF: PHP HTML to PDF compared (2026)
Comparisons

Dompdf vs mPDF: PHP HTML to PDF compared (2026)

Dompdf and mPDF both turn HTML into PDF in pure PHP. CSS support, fonts, tables, performance and which one to pick, plus when a browser engine wins.

PDF generation on Vercel Functions: what works and what does not
Developer Guides

PDF generation on Vercel Functions: what works and what does not

Generate PDFs on Vercel: serverless functions with Playwright and @sparticuz/chromium, why the Edge runtime cannot, plus a hosted PDF4.dev API that needs no browser.

How to generate multilingual PDFs from HTML (Chinese, Arabic, RTL, emoji)
Developer Guides

How to generate multilingual PDFs from HTML (Chinese, Arabic, RTL, emoji)

Render Chinese, Japanese, Korean, Arabic, Hebrew, RTL text, and color emoji in HTML-to-PDF. Fix tofu boxes with the right fonts, unicode-range, and dir attributes.

How to generate PDFs from Cursor with an MCP server
AI & PDF

How to generate PDFs from Cursor with an MCP server

Wire PDF4.dev into Cursor over MCP so the AI editor can create templates and render PDFs from your codebase. One-click config, the tools exposed, and a real workflow.

Ready to generate PDFs programmatically?

Start free