Go to example tasks

HTML to PDF: render raw HTML (invoice, report) to A4 PDF

Renders your own HTML string, with its CSS, into a paginated A4 PDF with page numbers. No hosting needed: paste the HTML in the input. Example: a fictional one-page invoice. Good for invoices, reports and receipts generated by your app. About $0.003 per document: $0.001 start plus $0.002 per PDF. Up to 2 MB of HTML.

Try for free
Website Screenshot API, Full Page & URL/HTML to PDF
Website Screenshot API, Full Page & URL/HTML to PDFrigel/website-screenshot-pdf
URL
Status
HTTP status
Final URL
+6 fields
Text
Number
Boolean
List
Object

Input

Raw HTML:<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Invoice INV-2026-001</title> <style>body{font-family:Arial,Helvetica,sans-serif;color:#1f2933;margin:0}h1{font-size:28px;margin:0 0 4px} .muted{color:#6b7280}table{width:100%;border-collapse:collapse;margin-top:24px}th,td{padding:8px;border-bottom:1px solid #e5e7eb;text-align:left} td.r,th.r{text-align:right}.total{font-size:18px;font-weight:bold}</style></head><body> <h1>Invoice INV-2026-001</h1><p class="muted">Example Supplies Ltd. &middot; Issued 2026-10-19 &middot; Due 2026-11-18</p> <p><strong>Bill to:</strong> Demo Customer Inc.</p> <table><thead><tr><th>Item</th><th class="r">Qty</th><th class="r">Unit</th><th class="r">Amount</th></tr></thead><tbody> <tr><td>Website screenshots (1,000 files)</td><td class="r">1</td><td class="r">$2.00</td><td class="r">$2.00</td></tr> <tr><td>Visual diff checks</td><td class="r">500</td><td class="r">$0.001</td><td class="r">$0.50</td></tr> </tbody><tfoot><tr><td colspan="3" class="r total">Total</td><td class="r total">$2.50</td></tr></tfoot></table> <p class="muted">Sample document generated for a demo. Not a real invoice.</p></body></html>
Formats:pdf
PDF options
Page size:A4
Landscape:false
Print background:true
Scale:1
Page numbers:true

Output fields

URL
Status
HTTP status
Final URL
Device
Title
Load ms
Captures
Diffs
Captured at

How it works

Sign up on Apify or log in

The Website Screenshot API, Full Page & URL/HTML to PDF Actor is ready to run with the inputs already set for "HTML to PDF: render raw HTML (invoice, report) to A4 PDF". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "HTML to PDF: render raw HTML (invoice, report) to A4 PDF" task

The Website Screenshot API, Full Page & URL/HTML to PDF Actor will start running based on the input automatically. You can also change all the input fields, like raw html, formats, and more, to match your specific use case.

Receive the "HTML to PDF: render raw HTML (invoice, report) to A4 PDF" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, status, HTTP status, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "HTML to PDF: render raw HTML (invoice, report) to A4 PDF" task via API.

Image

Integrate "HTML to PDF: render raw HTML (invoice, report) to A4 PDF" into your workflow

Connect "HTML to PDF: render raw HTML (invoice, report) to A4 PDF" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay