Guides

Generate PDFs in your language

Copy-paste examples for converting HTML, Markdown, and JSON templates into pixel-perfect PDFs — each guide takes about three minutes to work through.

Node.js

fetch + one POST — no Puppeteer to babysit.

HTML to PDF in Node.js →

Python

requests in, invoice PDFs out. Django/Flask friendly.

HTML to PDF in Python →

PHP

Plain cURL — works in Laravel, Symfony, WordPress.

HTML to PDF in PHP →

Ruby

Net::HTTP, no gems required. Rails-ready.

HTML to PDF in Ruby →

Go

Standard library only — net/http and a struct.

HTML to PDF in Go →

C# / .NET

HttpClient and ten lines. ASP.NET friendly.

HTML to PDF in C# →

Comparisons

Choosing a PDF API

Honest, current comparisons — including when the other tool is the better choice for you.

vs DocRaptor

PrinceXML power at enterprise prices, or Chromium at indie prices?

DocRaptor alternative →

vs PDFShift

Credit-based pricing by file size vs flat monthly documents.

PDFShift alternative →

vs API2PDF

Pure pay-as-you-go vs templates and predictable plans.

API2PDF alternative →