URL to PDF Converter

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.

4,676 runs
9 users
Try This Actor

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

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. 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 startUrls array 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:

  1. Key-Value Store: Each PDF is saved as a file (e.g., Page_Title.pdf) with the content type application/pdf. Access files via the Key-Value Store API or the Apify Console.

  2. 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" }
    The pdfUrl provides a direct link to download the PDF.

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 Trial

Actor Information

Developer
lexis-solutions
Pricing
Paid
Total Runs
4,676
Active Users
9
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support