HTML to PDF — Render Raw HTML or Templates to PDF Files
Pricing
from $3.00 / 1,000 results
HTML to PDF — Render Raw HTML or Templates to PDF Files
Render your own HTML to PDF with a real Chrome engine: invoices, reports, tickets. Pass HTML strings (with CSS), choose paper size, margins and orientation, optional header and footer. Each result links to the PDF.
Pricing
from $3.00 / 1,000 results
Rating
0.0
(0)
Developer
Ponderable Hydrometer
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 days ago
Last modified
Categories
Features
Share
Your HTML in, a print-ready PDF out. Invoices, reports, certificates and tickets render with a real Chrome engine, so CSS, web fonts and tables look the way they do in the browser. Send many documents in one run from an API call or a workflow tool.
Input
| Field | Type | Default | Description |
|---|---|---|---|
documents | array | — | Objects {"name", "html"} or HTML strings. |
paperFormat | string | A4 | A4, Letter, Legal, A3, A5. |
landscape | boolean | false | Rotate the page. |
marginMm | integer | 15 | Margin on all sides. |
footerText | string | — | Footer with page numbers. |
What you get
One row per document: name, fileUrl (the PDF in the run's key-value store), bytes, pages, paperFormat, landscape.
Output sample
{"name": "invoice-1001","fileUrl": "https://api.apify.com/v2/key-value-stores/abc/records/invoice-1001.pdf","bytes": 31245,"pages": 1,"paperFormat": "A4","landscape": false}
Good to know
- Images and fonts referenced by absolute URLs are loaded; relative paths have no base and are skipped.
- To capture an existing web page instead of your own HTML, use a URL-to-PDF tool.
- Files follow the retention of the run's key-value store.
Pricing
Pay per result — $3.00 per 1,000 results (one PDF = one result), plus Apify's standard per-run start event ($0.00005 per GB of memory, so a fraction of a cent per run). No subscription.