PDFThe screenshot API, with format: pdf
Convert any URL to PDF with one API call
PDFs rendered by a real Chromium browser, with your print styles applied. No servers to maintain and no rendering headaches.
Free plan: 100 screenshots in total. No credit card.
curl -X POST https://api.allscreenshots.com/v1/screenshots \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://en.wikipedia.org/wiki/Web_scraping",
"format": "pdf",
"fullPage": true
}' \
--output web-scraping.pdfThe PDF this request returns. Scroll inside it, or open the file.
Building PDF generation in-house
Every team that has built its own PDF generation runs into the same walls.
Error: Failed to launch the browser process!Headless browser infrastructure
Managing Puppeteer or Playwright servers that crash, leak memory, and need constant babysitting.
font "Inter" not found, falling back to DejaVu SansCSS rendering inconsistencies
Fonts look different, layouts break, and @media print rules never work like you expect.
chrome (pid 4182) killed: out of memoryMemory leaks and zombie processes
Browser instances that won't die, consuming RAM until your server grinds to a halt.
TimeoutError: Navigation timeout of 30000 ms exceededScaling bottlenecks
Queue management, timeout handling, and retry logic that takes weeks to get right.
wkhtmltopdf: repository archived, no new releaseswkhtmltopdf is abandoned
The old standby is no longer maintained. Time to find something that is.
pdf-workers: 6 instances, 41% idle, on-call: youHidden infrastructure costs
Servers, container orchestration, monitoring: costs add up fast.
Three steps
No SDK to install and no configuration. One HTTP request.
Send a request
POST a URL to the screenshot endpoint with format: "pdf" and the options you need.
We render it
A real Chromium browser loads the page, runs its JavaScript, and prints it with your print styles.
Get your PDF
Receive the PDF in the response, or as a hosted URL. Store it, email it, or stream it to your users.
curl -X POST "https://api.allscreenshots.com/v1/screenshots" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-invoice.com/123",
"format": "pdf",
"fullPage": true
}' \
--output invoice.pdfWhat teams make with it
From invoices to reports, any page you can open in a browser.
Invoices and receipts
Generate branded PDF invoices from your billing pages. For SaaS, e-commerce, and subscription businesses.
Reports and dashboards
Export analytics dashboards and reports as PDFs for stakeholders, investors, or compliance requirements.
Contracts and documents
Archive signed agreements, terms of service acceptances, and legal documents as PDFs.
E-commerce orders
Generate packing slips, order confirmations, and shipping labels automatically from order pages.
Marketing collateral
Convert landing pages, case studies, and promotional content into downloadable PDF assets.
Dynamic documents
Generate personalized certificates, tickets, passes, and any templated document on the fly.
Everything you need for PDF generation
The options of the screenshot API, applied to PDFs. Each one is a field on the same request.
The page you get
Full page
The whole scrollable page, not just what fits on screen.
"fullPage": trueViewport or device
Set the width and height, or pick one of about 30 device presets.
"viewport": { "width": 1280, "height": 800 }Wait for the page
React, Vue and other JavaScript apps finish rendering before the PDF is made.
"waitUntil": "networkidle", "waitFor": ".invoice-total"
How it looks
Print styles
Your @media print rules apply, as in the browser’s print dialog. Add more with customCss.
"customCss": "@media print { nav { display: none } }"Paper size and backgrounds
A4 or Letter, portrait or landscape, with or without background colours and images.
"outputs": [{ "type": "pdf", "format": "Letter", "landscape": true, "printBackground": false }]No ads or cookie banners
Blocked by default, so they don’t end up on page one. Set either to false to keep them.
"blockAds": true, "blockCookieBanners": true
Logins and volume
Pages behind a login
Send cookies and headers with the request. Available on the synchronous endpoint.
"session": { "cookies": [ { "name": "session", "value": "…" } ] }Async and webhooks
Queue the PDF and carry on. A signed webhook arrives when it’s ready.
POST /v1/screenshots/async"webhookUrl": "https://your-app.com/hooks/pdf"Bulk
Up to 100 URLs in one request, each with its own options if needed.
POST /v1/screenshots/bulk"urls": [ { "url": "…/invoice/1" }, { "url": "…/invoice/2" } ]
How we compare
Allscreenshots next to the usual ways of turning HTML into PDF.
| Comparison | Allscreenshots API | wkhtmltopdf | Puppeteer, self-hosted |
|---|---|---|---|
| Real browser rendering | Yes | No | Yes |
| No infrastructure to run | Yes | No | No |
| Full JavaScript support | Yes | Limited | Yes |
| Modern CSS support | Yes | No | Yes |
| Free to start | Yes | Yes | Yes |
| Async processing | Yes | No | Build it yourself |
| Webhook notifications | Yes | No | Build it yourself |
| Bulk generation | Yes | No | Build it yourself |
| Scales with load | Yes | No | No |
| Actively maintained | Yes | No | Yes |
Based on default configurations and common use cases. Features may vary with your setup.
Pay only for screenshots that succeed
On paid plans, failed captures don’t count.
Pro0.98¢ each
How long does PDF generation take?
It depends on the page. Simple pages render quickly; JavaScript-heavy pages take longer. The default timeout is 30 seconds and the maximum is 60. For longer work, use the async endpoint and carry on while the PDF is made.
What about JavaScript-heavy SPAs like React or Vue?
We use a real Chromium browser that runs the page's JavaScript, so React, Vue, Angular and Svelte all work. Use waitFor with a CSS selector to wait for a specific element, or set waitUntil to networkidle.
Do you support custom CSS for print?
Yes. @media print rules apply, the same as in a browser's print dialog. You can also inject your own CSS with the customCss parameter.
What page sizes do you support?
Set the viewport width (100 to 2,560 pixels) and height (100 to 2,160 pixels), or use one of about 30 device presets. Use fullPage: true to capture the whole scrollable page.
How do I handle PDFs that take a long time to generate?
Use the async endpoint with a webhook. Submit the request, get a job ID straight away, and we POST to your webhook URL when the PDF is ready. Webhooks are signed with HMAC-SHA256.
Can I block ads and cookie banners?
Yes. Set blockAds: true to remove advertisements, or blockCookieBanners: true to hide cookie consent popups. Use hideSelectors to remove specific elements by CSS selector.
Is my data secure?
All requests are encrypted in transit. Generated PDFs are stored temporarily so you can retrieve them, then deleted, and storage is encrypted at rest.
Make your first PDF
Free plan: 100 screenshots in total, PDFs included. No credit card.
- Full-page captures
- Popups and repeated sticky bars removed
- Markdown, JSON and PDF output
- Crawl a site from one URL
- Desktop, tablet and phone in one image
- Works in n8n, Make and Zapier
- MCP server for AI assistants