URL to PDF Converter
by lexis-solutions
Instantly convert any webpage to a professional PDF for archiving, reporting, or compliance. Automatically saves clean, organized files to your Apify storage.
Opens on Apify.com
About URL to PDF Converter
Need a clean, reliable PDF of a webpage? This actor is my go-to for turning any URL into a polished PDF document. It's incredibly straightforward: you give it a web address, and it hands back a professional PDF, ready for saving or sharing. I use it all the time for a few key things. First, archiving. It's perfect for creating permanent, offline copies of articles, receipts, or web content that might change. Second, reporting. Instead of sending messy links, I can generate a crisp, self-contained PDF report for stakeholders. Finally, it's great for compliance, where you often need a snapshot of a webpage exactly as it appeared at a specific time. The process is fast and just works. Every PDF it creates is automatically saved to your Apify key-value store, which is super convenient for automation. It even cleans up the filenames for you, stripping out weird characters so your files stay organized. Whether you're building a workflow to archive blog posts, compile research, or keep records for an audit, this tool handles the conversion so you don't have to think about it. It's one of those simple utilities that ends up being indispensable.
What does this actor do?
URL to PDF Converter is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
URL to PDF Converter
Converts web pages to PDF documents using Puppeteer, saving them to Apify's Key-Value Store. Ideal for archiving, report generation, and automating document workflows.
Overview
This actor renders web pages and exports them as high-quality PDFs. It waits for network idle and fonts to load, handles backgrounds, and saves files with sanitized names. Each PDF is stored in the Key-Value Store, and a dataset record is created with a direct download link.
Key Features
- High-Quality Output: Generates A4 PDFs with preserved fonts, colors, and background graphics.
- Automatic Waiting: Waits for network activity to become idle and for all fonts to load before conversion.
- Batch Processing: Processes all URLs provided in the
startUrlsarray sequentially. - Secure Filenames: Automatically sanitizes PDF filenames to comply with Key-Value Store naming rules.
- Proxy Support: Can use Apify Proxy via configuration.
- Structured Output: Provides both the PDF file and a dataset with metadata and download URLs.
How to Use
Provide a list of URLs via the input configuration. The actor will process each one, generate a PDF, and store the results.
Input/Output
Input
Configure the actor with a JSON input containing a startUrls array.
startUrls(array, required): List of URLs to convert. Each item can include:url(string, required): The web page URL.method(string, optional): HTTP method (default:GET).headers(object, optional): Custom HTTP headers.userData(object, optional): Custom data to associate with the request.
proxyConfiguration(object, optional): Apify proxy settings. Defaults to using Apify Proxy when available.
Example Input:
{
"startUrls": [
{ "url": "https://example.com/page" },
{
"url": "https://example.com/report",
"headers": { "Authorization": "Bearer token123" }
}
],
"proxyConfiguration": { "useApifyProxy": true }
}
Output
Results are delivered in two places:
-
Key-Value Store: Each PDF is saved as a file (e.g.,
Page_Title.pdf) with the content typeapplication/pdf. Access files via the Key-Value Store API or the Apify Console. -
Dataset: A record is created for each converted URL with the following structure:
json { "url": "https://example.com/page", "pdfUrl": "https://api.apify.com/v2/key-value-stores/{storeId}/records/Page_Title.pdf" }
ThepdfUrlprovides a direct link to download the PDF.
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try URL to PDF Converter now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- lexis-solutions
- Pricing
- Paid
- Total Runs
- 4,676
- Active Users
- 9
Related Actors
Video Transcript Scraper: Youtube, X, Facebook, Tiktok, etc.
by invideoiq
Linkedin Profile Details Scraper + EMAIL (No Cookies Required)
by apimaestro
Twitter (X.com) Scraper Unlimited: No Limits
by apidojo
Content Checker
by jakubbalada
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support