Website to PDF Converter (URL & HTML)
Pricing
from $2.00 / 1,000 results
Website to PDF Converter (URL & HTML)
URL to PDF / HTML to PDF converter. Turn any webpage or raw HTML into a print-ready PDF (A4/Letter/Legal/A3/Tabloid) using Playwright. Fast rendering, print backgrounds, proxy-ready. Perfect for invoices, reports, archiving & automation.
Pricing
from $2.00 / 1,000 results
Rating
0.0
(0)
Developer

Logiover Data
Actor stats
0
Bookmarked
2
Total users
0
Monthly active users
18 hours ago
Last modified
Categories
Share
🧾 Website to PDF Converter — URL & HTML to PDF (Playwright)
Convert any website URL or raw HTML into a clean, high-quality PDF in seconds.
This Actor renders pages using Playwright (real Chromium printing pipeline) and exports PDFs with configurable paper sizes and optional proxy support.
If you need a reliable URL to PDF, HTML to PDF, or Webpage to PDF converter for automation, archiving, compliance, or reporting—this is built for speed and production workflows.
✅ What this Actor does
This Actor generates PDFs from:
- Live URL mode: Convert
https://example.com/page→ PDF - Raw HTML mode: Paste HTML → PDF (perfect for invoices, receipts, templates)
It outputs a dataset with:
- Downloadable PDF URL
- Source URL (or “Raw HTML”)
- Paper format and metadata
🚀 Why use Website to PDF Converter?
| Feature | Typical Tools | ✅ This Actor |
|---|---|---|
| Rendering | Screenshot-like or broken prints | Real Playwright PDF print engine |
| Inputs | URL only OR HTML only | Both URL + Raw HTML |
| Formats | Limited sizes | A4 / Letter / Legal / A3 / Tabloid |
| Backgrounds | Often missing | Print background support |
| Automation | Hard to integrate | Apify-ready dataset + Key-Value PDF output |
| Reliability | Blocked by geo/IP | Optional proxy support |
🎯 Best use cases (high-intent)
- Website archiving: snapshot pages for compliance or record-keeping
- Reports & dashboards: export public pages as PDFs
- Invoices & receipts: render HTML templates into printable PDFs
- Compliance & legal: store time-stamped PDF copies of pages
- Automation pipelines: generate PDFs and forward to email/Drive/S3 workflows
- SEO audits & documentation: keep historical page versions
🛠 How to Use
- Choose Source Type
- Live URL: converts a URL
- Raw HTML Code: converts provided HTML
- Select Paper Format
- Enable/disable Print Backgrounds
- (Recommended for URL mode) Enable Proxy
- Run the Actor and download the PDF from the dataset
⚙️ Input Configuration
sourceType (required)
url— convert a live website URLhtml— convert pasted HTML content
url (required when sourceType=url)
Example: https://apify.com
html (required when sourceType=html)
Paste raw HTML (useful for server-rendered templates)
format
Paper size:
A4(default)LetterLegalA3Tabloid
printBackground
Include background graphics/colors (default: true)
proxyConfiguration
Recommended for URL conversions to avoid IP blocks.
✅ Example Input (URL → PDF)
{"sourceType": "url","url": "https://apify.com","format": "A4","printBackground": true,"proxyConfiguration": { "useApifyProxy": true }}
📦 Output (Dataset)
Each run produces a dataset item like:
{"status": "success","sourceType": "url","source": "https://apify.com","pdfUrl": "https://api.apify.com/v2/key-value-stores/XXXX/records/document-1700000000000.pdf","format": "A4","createdAt": "2026-01-13T10:15:00.000Z"}
Output fields
pdfUrl — direct downloadable PDF link (public)
sourceType — url or html
source — source URL or “Raw HTML”
format — selected page size
createdAt — ISO timestamp
Optional: pageCount can be added if you want. (See Roadmap.)
🔒 Reliability & proxy notes
Some sites block automated traffic, geo-restrict content, or throttle requests. For best reliability in URL mode, enable:
{ "proxyConfiguration": { "useApifyProxy": true } }
##⚡ Performance notes
This Actor uses:
Playwright headless rendering
waitUntil: networkidle for stable final layout
page.emulateMedia({ media: 'screen' }) to print “as seen on screen”
Tight margins for consistent PDF output
🧯 Troubleshooting
“URL is required for URL mode.”
Set:
{ "sourceType": "url", "url": "https://example.com" }
“HTML content is required for HTML mode.”
Set:
{ "sourceType": "html", "html": "..." }
Blank PDF or missing styles
Some sites load styles late. Try:
Ensure the page is publicly accessible
Use proxy
If the site uses heavy JS, consider adding a wait for a selector in code (advanced)
Blocked / Access denied
Enable proxy, or use a different proxy group.
🔍 SEO keywords (what this Actor targets)
People search for:
website to pdf converter
url to pdf
webpage to pdf
html to pdf
playwright pdf
print website to pdf
invoice html to pdf
automated pdf generation
This Actor is built to rank for these keywords inside Apify Store and to match Google search intent.
🗺 Roadmap
Planned improvements:
pageCount extraction (PDF page count in output)
advanced waiting options (wait for selector, timeout config)
custom margins and landscape mode
header/footer templates (page numbers, timestamps)
batch mode (multiple URLs in one run)
Support & Feedback
If you need new features (multi-url batch, pageCount, header/footer, custom margins), open an issue in the Actor page with:
example URL or sample HTML
desired PDF settings
expected output format