Convert any URL to PDF — including authenticated dashboards
Live-render any web page as a print-ready PDF. JS-rendered SPAs, gated content, and internal dashboards supported via cookies and headers.
- Hosted in Frankfurt & Paris
- GDPR-compliant
Why convert URLs to PDF?
Live data, no scraping setup
Skip the boilerplate of headless-Chrome infra. We handle browser pools, retries, font caching, and viewport sizing — you just send a URL.
Authenticated pages, not just public ones
Pass cookies, headers, or basic-auth credentials to render gated dashboards, internal tools, and member-only pages.
Snapshot for compliance and audit
Capture immutable PDF snapshots of dashboards, reports, or third-party pages with timestamp + URL footer for legal archival.
How URL-to-PDF rendering works
1. Send the URL + optional auth
POST a JSON body with the target URL, viewport size, and optional cookies, headers, or basic-auth credentials.
2. We fetch and render in headless Chromium
Our render workers load the page, wait for network idle (or your custom selector), apply print CSS, and capture the PDF.
3. Receive PDF bytes or signed URL
Sync mode for fast pages, async with webhook for slow-loading dashboards.
What is the pdf.xhub URL-to-PDF API?
A managed headless-browser-as-a-service for converting live web content into print-ready PDFs. Built for teams that need reports and dashboards or third-party pages captured deterministically — without operating a Chromium fleet. Pairs naturally with HTML-to-PDF when you control the source markup.
Try it in your stack
Same endpoint. Copy as cURL, call from any language.
Render any public URL — including JS-rendered SPAs, dashboards, and authenticated pages.
curl -X POST https://api.pdf.xhub.io/v1/render \
-H "Authorization: Bearer $PDFXHUB_KEY" \
-H "Content-Type: application/json" \
-d '{
"source": "url",
"url": "https://example.com/invoice"
}' --output invoice.pdfcurl -X POST https://api.pdf.xhub.io/v1/render \
-H "Authorization: Bearer $PDFXHUB_KEY" \
-H "Content-Type: application/json" \
-d '{
"source": "url",
"url": "https://example.com/invoice"
}' --output invoice.pdfFeatures at a glance
Rendering
- Headless Chromium with EU-only render workers
- JS-rendered SPAs (React, Vue, Angular)
- Configurable viewport (mobile, tablet, desktop, custom)
- Wait-for-selector / wait-for-network-idle hooks
- Print emulation + custom @page CSS
- Custom user-agent + locale
Authentication & Privacy
- Cookie-based auth + custom HTTP headers
- Basic-auth + bearer-token support
- Block lists for ads, trackers, third-party fonts
- GDPR-compliant by default — DPA + SCCs included
Platform
- EU-only Chromium fleet (Frankfurt + Paris)
- Configurable timeout + retry policy per render
- Auto-cached fonts and images for repeat URLs
- Edge-runtime callable from any language
- Webhook on completion for slow-loading pages
- OpenAPI 3.1 spec — clients in any language
Other ways to render
Same API, different inputs.
Snapshot your first dashboard
25 captures/month free forever. Authenticated URLs included.