Save any page as a lightweight PDF snapshot.
Downloads the requested URL (or consumes inline HTML), extracts the readable text, and renders a clean PDF using the same text-to-PDF engine that powers our document helpers. Great for archiving product pages or sharing research notes without external dependencies.
/web/page-to-pdfWhere this helper shines
Save any page as a lightweight PDF snapshot. keeps web helpers on autopilot. Use it whenever you need to save any page as a lightweight PDF snapshot without pausing a sprint or asking design/dev to jump in.
- Trigger this helper whenever you need to save any page as a lightweight PDF snapshot without waiting on a full deploy.
- Drop it into automations (Zapier, Make, workers) to save any page as a lightweight PDF snapshot as part of your workflow.
- Share the GET URL so support and success can save any page as a lightweight PDF snapshot safely using their Dataczar API key.
Copy & ship snippets
GET
Instant link
GET https://api.dataczar.app/web/page-to-pdf?url=https%3A%2F%2Fexample.com%2Fsample.png&timeout=20&dryrun=true&ak=demoOpen directly in any browser, webhook, or low-code workflow.
curl
curl GET
curl "https://api.dataczar.app/web/page-to-pdf?url=https%3A%2F%2Fexample.com%2Fsample.png&timeout=20&dryrun=true&ak=demo"Swap ak=demo with your Dataczar API key.
curl
curl POST
curl -X POST "https://api.dataczar.app/web/page-to-pdf?ak=demo" \
-H 'Content-Type: application/json' \
-d '{
"url": "https://example.com/sample.png",
"html": "<p>Example</p>",
"timeout": 30,
"dryrun": true
}'Send JSON payloads from back-end jobs, queues, or workers.
Parameters
Query Parameters
| Name | Type | Description |
|---|---|---|
| url | string | Page to render. |
| timeout | number | Fetch timeout in seconds (default 5s). |
| dryrun | boolean | Return a preview summary instead of a PDF. |
All helper calls accept your Dataczar key via the ak query parameter. Need one? Create or copy a key on Dataczar Connect and drop it into each request.
Responses
Status 200
PDF attachment containing the snapshot.
Examples
Test Contracts
[
{
"name": "inline_pdf",
"method": "POST",
"body": {
"url": "https://example.com/snapshot",
"html": "<html><h1>Snapshot</h1><p>This becomes a PDF.</p></html>"
},
"expect": {
"status_code": 200
}
}
]Grab your Dataczar API key
Every helper runs with the same simple API key. Sign in (or create a free Dataczar account) at Dataczar Connect to issue keys in seconds, then drop the key into any `ak=` parameter and start shipping.
Tip: reuse the same key across these helpers, or rotate keys per project from the Connect dashboard.