Pagespool for WeasyPrint

v1.0.3
com.pagespool/weasyprint Checked 1 day ago Published 1 day ago

Hosted WeasyPrint: render HTML and print CSS to PDF or PDF/A.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

render_pdf Render an HTML document to a PDF

Render up to 256 KB of HTML to a PDF with WeasyPrint. Returns a download link. The result is `{"download_url": "<link>", "pages": <page count>, "size_bytes": <PDF size>, "expires_in_minutes": 15}`. `download_url` is a link the user can open to get the PDF; it works for 15 minutes. Only HTML and CSS are rendered; JavaScript is not run. The REST API (`POST /v1/weasyprint/render`) takes documents up to 2 MB. Credits: 1 per call.

ParameterTypeDescription
html *stringA complete HTML document, up to 256 KB. Inline images, fonts and CSS as data: URIs; external resources are not loaded.
pdf_variantWrite the PDF as PDF/A-2b or PDF/A-3b, for archiving. Paid plans only. Leave it out for a regular PDF.