Website To PDF Converter – Effortlessly Transform Websites into PDFs
2 min read
Intro:
The Website to PDF Converter from Apify allows users to effortlessly convert web pages into high-quality PDF documents. This tool is especially useful for professionals needing to save web content for offline access, archiving, or reporting.
🔍 What Is Website to PDF Converter?
The Website to PDF Converter is an API that transforms web pages, both static and dynamic, into PDF format. This versatile tool caters to various users, including content creators, legal professionals, and marketers, who require high-quality PDF outputs for documentation and sharing purposes.
✨ Features
- Batch Processing: Convert multiple URLs to PDFs in one go.
- Customizable Output: Tailor page settings such as format, orientation, and margins.
- Wait for Content: Ensure dynamic elements load before PDF generation.
- High-Quality Results: Employs Playwright for precise web page rendering.
🛠️ How to Use It
Step-by-step tutorial:
- Go to the tool’s page: Website to PDF Converter
- Click “Try for free” or “Run actor.”
- Fill in the required input fields:
- startUrls: List of URLs to convert to PDF (required)
- cookies: List of cookies to add to each request (optional)
- waitForSelector: CSS selector to wait for before capturing the PDF (optional)
- sleepTime: Milliseconds to wait before capturing (default: 2000, optional)
- format: Page format (e.g., "A4", "Letter", default: "Letter", optional)
- landscape: Use landscape orientation (default: false, optional)
- margin: Margin size in pixels (default: 0, optional)
- printBackground: Include background graphics (default: false, optional)
- scale: Webpage rendering scale (10% to 200%, default: 100%, optional)
- Click “Run” and wait for results.
- Download results or send them to a webhook.
🧪 Sample Input (JSON)
json { "startUrls": ["https://www.example.com"], "cookies": [], "waitForSelector": ".content", "sleepTime": 2000, "format": "A4", "landscape": false, "margin": 0, "printBackground": false, "scale": 100 }
📤 Output Data (Fields) Each PDF is saved to the default key-value store with details about each conversion, including status and download links.
💰 Pricing This actor is priced at $0.01 per conversion. There is a free tier available for trial users.
👨💻 Built By Louis De Coninck — from Apify.com
✅ Final Thoughts The Website to PDF Converter is perfect for users looking to efficiently save online content in a professional format. Whether for archiving, documentation, or sharing purposes, this tool is a must-try for anyone needing high-quality PDF outputs.
🔗 Try the Actor Now 👉 Website to PDF Converter