WeasyPrint
WeasyPrint, gehostet: HTML und CSS zu PDF mit einem API-Aufruf, PDF/A-Ausgabe in den bezahlten Tarifen, ein MCP-Server, ein kostenloses Tool sowie Anleitungen und Vergleiche auf Englisch.
-
WeasyPrint als gehostete API
Senden Sie HTML, erhalten Sie ein von WeasyPrint gerendertes PDF. 1 Credit pro Rendering, PDF/A in den bezahlten Tarifen, ein MCP-Server und kein Pango-Stack zu installieren.
-
Convert HTML to PDF with curl
Render HTML to PDF from the command line with one curl call to the hosted WeasyPrint. No API key is needed to start.
-
HTML to PDF in Python
Generate a PDF from HTML in Python with one requests call to the hosted WeasyPrint. No Pango stack and no wkhtmltopdf to install.
-
HTML to PDF in Node.js
Render HTML to PDF from Node.js with the built-in fetch and the hosted WeasyPrint. No Puppeteer and no Chromium download.
-
PDF headers, footers and page numbers with CSS
Add headers, footers and "Page X of Y" numbers to WeasyPrint PDFs with CSS @page margin boxes.
-
PDF page size, orientation and margins with CSS @page
Set A4, Letter, landscape or custom PDF page sizes and margins with the CSS @page rule. The API has no page size parameter.
-
What CSS works in the hosted WeasyPrint
Which CSS the hosted WeasyPrint supports for PDFs: page size, margin boxes, page counters, page breaks, fonts, flexbox and grid. Tested items are marked.
-
Generate invoice PDFs from HTML templates
Turn an HTML invoice template into a PDF: fill it with your template engine, set the page layout in CSS and POST it to /v1/weasyprint/render.
-
Images and custom fonts in API-rendered PDFs
The hosted WeasyPrint loads nothing from the network. Put images, fonts and CSS into the HTML as data: URIs, as shown here.
-
HTML to PDF from AI agents with MCP
The WeasyPrint MCP server gives agents a render_pdf tool that returns a download link to the PDF. Setup for Claude Code and other MCP clients.
-
API keys, rate limits and credits
How access to the hosted WeasyPrint works. Without a key you get 10 free credits a day per IP address. A key adds monthly credits and a higher limit.
-
Render limits and error codes
The WeasyPrint API's limits and error codes, from 400 external_resource_blocked to 504 render_timeout, with the fix for each.
-
Hosted WeasyPrint vs PDFShift
PDFShift renders HTML or a URL with Chromium and can run JavaScript. pagespool renders the HTML you send with WeasyPrint 70 and runs no JavaScript.
-
Hosted WeasyPrint vs CraftMyPDF
CraftMyPDF fills templates you design in its web editor with JSON data. The hosted WeasyPrint renders the finished HTML your own code produces.
-
Hosted WeasyPrint vs Api2Pdf
Api2Pdf offers Chrome, wkhtmltopdf and LibreOffice behind one API and bills compute time. pagespool renders HTML with WeasyPrint 70 at 1 credit per render.
-
Hosted WeasyPrint vs DocRaptor
DocRaptor runs the commercial Prince engine with PDF/A and PDF/UA. pagespool runs the open-source WeasyPrint 70, with PDF/A-2b and PDF/A-3b on paid plans.
-
Hosted WeasyPrint vs SelectPdf
SelectPdf sells a .NET library that runs in your process and a hosted REST API. The hosted WeasyPrint is an API with nothing to install.
-
WeasyPrint or Gotenberg for HTML to PDF
Both engines are hosted here behind the same key. WeasyPrint lays out print CSS without a browser. Gotenberg runs Chromium and LibreOffice.
-
Webhook JSON to PDF, sent by email (n8n)
An n8n workflow that turns nested JSON from a webhook into a formatted PDF with WeasyPrint and emails it. Built from n8n's own nodes.
-
New sheet row to invoice PDF (n8n)
An n8n workflow that turns each new Google Sheets row into an invoice PDF with WeasyPrint and emails it. Swap the trigger for Airtable or monday.com.
-
Scheduled report as a PDF, sent by email (n8n)
An n8n workflow that fetches data on a schedule, builds a color-coded HTML report, renders it to PDF with WeasyPrint and emails it every morning.