URL to PDF Converter avatar

URL to PDF Converter

Pricing

from $14.99 / 1,000 pdfs

Go to Apify Store
URL to PDF Converter

URL to PDF Converter

Converts any web page into a high-quality PDF document ready to download file hosted on Apify. Print any web page to PDF with this actor.

Pricing

from $14.99 / 1,000 pdfs

Rating

0.0

(0)

Developer

rainminer

rainminer

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

5 hours ago

Last modified

Share

URL to PDF Converter

What is URL to PDF Converter?

URL to PDF Converter is an Apify Actor that turns any public web page into a downloadable PDF file. Powered by headless Chrome and Puppeteer, it renders pages exactly as a real browser would — including fonts, CSS backgrounds, and images — then saves each PDF to Apify's Key-Value Store with a direct download link.

Provide a list of URLs and get back a dataset of pdfUrl links ready for download, archiving, or integration into document workflows.

What can URL to PDF Converter do? 📄

  • 📑 Convert any public URL to PDF — full-fidelity render with fonts, backgrounds, and images preserved
  • 🔗 Batch conversion — process a list of URLs in a single run, one PDF file per page
  • 💾 Automatic Key-Value Store storage — each PDF is saved with a filename derived from the page title
  • 🏷️ Smart file naming — filenames are sanitized automatically from the page title
  • 🖨️ Print-ready A4 format — standard A4 size, suitable for printing, sharing, and archiving
  • 📦 Direct download links — dataset row per URL with a ready-to-use pdfUrl
  • Fast — waits for full page load and network idle before rendering; no extra scraping passes

What data does URL to PDF Converter output?

FieldDescriptionExample
urlThe original web page URL that was converted"https://example.com/report"
pdfUrlDirect download link to the generated PDF in storage"https://api.apify.com/v2/key-value-stores/{storeId}/records/Report.pdf"

PDFs themselves are stored in the Key-Value Store tab of your Apify run, accessible without any extra API calls.

How to convert URLs to PDF

  1. Open URL to PDF Converter on Apify Store and click Try for free.
  2. Add your Start URLs — paste one or more web page URLs into the URL list.
  3. (Optional) Configure a proxy if pages are geo-restricted or rate-limited.
  4. Click Start — the Actor opens each page in headless Chrome, waits for full render, and saves the PDF.
  5. Download your PDFs from the Key-Value Store tab, or use the pdfUrl links from the dataset.

How much does it cost to convert URLs to PDF?

URL to PDF Converter uses consumption-based pricing on the Apify platform (Compute Units). Apify offers $5 of free credits every month on the Free plan — enough for a large number of conversions.

Cost depends on page complexity and render time. Simple pages typically complete in a few seconds each. No browser image is pre-warmed on cold starts, so the first run may take slightly longer.

Input

FieldTypeDefaultDescription
startUrlsArrayWeb page URLs to convert to PDF. Required. Each entry can include custom headers.
proxyConfigurationObject{useApifyProxy: false}Proxy settings. Enable Apify Proxy if pages are geo-restricted or rate-limited.

Example input:

{
"startUrls": [
{ "url": "https://example.com/report" },
{ "url": "https://example.com/invoice" }
],
"proxyConfiguration": {
"useApifyProxy": false
}
}

Output example

{
"url": "https://example.com/report",
"pdfUrl": "https://api.apify.com/v2/key-value-stores/{storeId}/records/Report_Page.pdf"
}

You can download PDFs directly from the Key-Value Store tab in Apify Console, or access them programmatically via the pdfUrl from the dataset output.

FAQ

Can I convert multiple pages at once?

Yes. Add as many URLs as you need to startUrls. Each URL is processed in sequence and saved as a separate PDF file in the Key-Value Store.

How do I download the generated PDFs?

Open the Key-Value Store tab in Apify Console after the run completes and click any .pdf entry to download it. You can also use the pdfUrl values in the dataset to fetch PDFs programmatically.

Can I pass custom headers (e.g. for authentication)?

Yes. Each entry in startUrls supports a headers object. Add Authorization, Cookie, or any other HTTP header your target page requires.

What PDF format is used?

PDFs are generated in A4 format with print backgrounds enabled and fonts fully loaded before capture. This matches the standard used by most document management systems.

What happens if a page fails to load?

The Actor waits for network idle before generating the PDF. If the page does not load properly, the PDF will reflect whatever state the browser reached (e.g. an error page). The run will not stop — other URLs in the batch continue.

PDF URLs in the dataset are accessible to anyone with the link if your Key-Value Store is set to public. You can control access in your Apify account settings.


Image Credit

Image credit: Wikimedia Commons