URL to PDF
Pricing
from $30.00 / 1,000 pdf converteds
URL to PDF
Convert webpages, dashboards, invoices, and authenticated app screens into clean PDFs with advanced controls. Supports JavaScript waits, cookies, headers, print settings, PDF/A, PDF/UA, watermarks, attachments, and post-processing. Ideal for reports, archives, and automation workflows.
Pricing
from $30.00 / 1,000 pdf converteds
Rating
0.0
(0)
Developer
Mark Fulton
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
2
Monthly active users
25 days ago
Last modified
Categories
Share
Convert webpages, dashboards, reports, invoices, and authenticated app screens into clean downloadable PDFs.
This Apify Actor is built for anyone who needs a reliable URL to PDF converter for automation workflows, reporting, archiving, client deliverables, or printable web content. It supports simple one-page exports and more advanced document generation from JavaScript-heavy or logged-in pages.
Great for
- saving webpages as PDF
- exporting dashboards and analytics views
- generating invoice or contract PDFs from web apps
- archiving articles, landing pages, and reports
- producing compliance-friendly PDFs with metadata, PDF/A, or PDF/UA options
Under the hood it uses Gotenberg Chromium and exposes advanced controls in Apify, including:
- page size, margins, landscape, scale, single-page mode
- print backgrounds, screen vs print media emulation, emulated media features
- JavaScript waits (
waitDelay,waitForExpression,waitForSelector) - cookies and custom HTTP headers for authenticated pages
- strict failure rules for HTTP status codes, resource loading, and console exceptions
- header and footer HTML
- document outline, tagged PDFs, PDF/A, PDF/UA, metadata, flattening, encryption
- embeds/attachments
- split, watermark, stamp, and rotate post-processing
Input
Use url for one page or urls for several pages in one run.
Minimal example
{"url": "https://example.com"}
Backgrounds + JS wait
{"url": "https://example.com/dashboard","printBackground": true,"waitForSelector": "#app-ready","outputFilename": "dashboard-export"}
Authenticated page with cookies
{"url": "https://app.example.com/invoice/123","cookies": "[{\"name\":\"session\",\"value\":\"abc\",\"domain\":\"app.example.com\",\"path\":\"/\",\"secure\":true,\"httpOnly\":true}]","printBackground": true}
Header/footer HTML
{"url": "https://example.com/report","headerHtml": "<html><head><style>html{-webkit-print-color-adjust:exact;font-size:16px;margin:0 20px;}</style></head><body><p>Monthly Report</p></body></html>","footerHtml": "<html><head><style>html{-webkit-print-color-adjust:exact;font-size:16px;margin:0 20px;}</style></head><body><p>Page <span class=\"pageNumber\"></span> of <span class=\"totalPages\"></span></p></body></html>"}
Watermark + PDF/A
{"url": "https://example.com/contract","watermarkSource": "text","watermarkExpression": "CONFIDENTIAL","watermarkOptions": "{\"opacity\":0.18,\"rotation\":45,\"points\":48}","pdfa": "PDF/A-3b","pdfua": true,"generateTaggedPdf": true}
Attach files into the PDF
{"url": "https://example.com/invoice","embeds": "[{\"url\":\"https://example.com/factur-x.xml\",\"fileName\":\"factur-x.xml\",\"mimeType\":\"text/xml\",\"relationship\":\"Alternative\"}]"}
Important notes
1. Asset-based features use URLs in this actor
Apify actor inputs do not provide a native file-upload widget.
Because of that, file-backed Gotenberg features are exposed through URL-based inputs:
embedsexpects attachment URLswatermarkFileUrldownloads the watermark image/PDFstampFileUrldownloads the stamp image/PDFheaderHtmlandfooterHtmlaccept inline HTML strings
2. Some runs return ZIP instead of PDF
If you use split post-processing and Gotenberg returns multiple files, the actor stores a ZIP in the default key-value store instead of a single PDF.
3. Private-network targets are blocked by default
For safety, the bundled Gotenberg service starts with private-IP access disabled. This actor is meant for public web URLs, authenticated web apps, and downloadable public assets, not intranet SSRF-style access.
Output
Each successful item includes:
requestedUrlgotenbergTraceoutputType(pdforzip)output.keyoutput.fileNameoutput.sizeBytesoutput.url
Generated files are stored in the default key-value store.
Standby mode
The actor also exposes a lightweight standby API:
GET /GET /convert?url=https://example.com&printBackground=truePOST /convertwith JSON body