PDFShift, DocRaptor and wkhtmltopdf alternatives for HTML to PDF

wkhtmltopdf was the default for years; it's archived now and its old WebKit doesn't understand modern CSS. The replacements are headless Chrome (do it yourself), a hosted API with a monthly plan, or a pay-per-PDF API.

HTML to PDF API: $3 per 1,000 PDFs (any page count). Apify's free plan gives you $5 of credit every month, which covers about 1,600 PDFs a month. No start fee; failed items are free.

Try HTML to PDF API

Options

OptionEngineCostGood for
wkhtmltopdfOld Qt WebKitFreeLegacy only: the project is archived; flexbox and grid don't work
Puppeteer / PlaywrightChromeFree + your serversDevelopers who can run browsers
GotenbergChrome + LibreOffice in DockerFree + your serversSelf-hosted API
WeasyPrintOwn engineFreePrint-style CSS, no JavaScript
PDFShiftChromeFree 50 credits a month; paid plans from about $9 a month for 500Real-time conversions from your app
DocRaptorPrincePaid plansComplex print layouts (footnotes, PDF/UA)
Pandapi HTML to PDFChrome$3 per 1,000 PDFs, any page countBatches: URLs, HTML, or template + JSON rows

What makes Pandapi different

  • Template + data: a Handlebars template and an array of rows give one PDF per row, named from your data (invoices, certificates, reports).
  • No plan: 500 invoices a month cost $1.50; failed documents are free.
  • Page count doesn't matter: a 40-page report costs the same as a 1-page invoice.

Choose PDFShift or DocRaptor if you convert on demand inside a web request and need an answer in a second, or if you need Prince-level print typography.

curl -X POST "https://api.apify.com/v2/acts/blueberry_rainstorm~html-to-pdf/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "urls": [
    {
      "url": "https://example.com/report"
    }
  ],
  "pageFormat": "A4",
  "pageNumbers": true,
  "hideCookieBanners": true
}'

Start with the HTML to PDF API.

Sources, checked 21 November 2026: PDFShift FAQ, wkhtmltopdf status. Prices change; check their pages before you buy.

Questions

What replaced wkhtmltopdf?

Most projects moved to headless Chrome (Puppeteer or Playwright), Gotenberg for a self-hosted API, or a hosted HTML to PDF API.

Is PDFShift free?

It gives 50 free credits a month, per its FAQ, with paid plans for more.

How do I make 1,000 invoices as PDFs?

Write one HTML invoice template with Handlebars placeholders, put the 1,000 invoices in a JSON array, and run the HTML to PDF API. It costs $3.

HTML to PDF API: $3 per 1,000 PDFs (any page count). Apify's free plan gives you $5 of credit every month, which covers about 1,600 PDFs a month. No start fee; failed items are free.

Try HTML to PDF API

Related guides

Free tools for the same job