Website To PDF Converter avatar
Website To PDF Converter

Pricing

$9.00/month + usage

Go to Store
Website To PDF Converter

Website To PDF Converter

louisdeconinck/website-to-pdf-converter

Developed by

Louis Deconinck

Maintained by Community

Convert websites to high-quality PDF documents with customizable options. This powerful actor allows you to transform website pages with both static HTML and dynamic content into professional-grade PDFs, offering a wide range of customization features such as page format, orientation, margins, …

5.0 (1)

Pricing

$9.00/month + usage

1

Monthly users

13

Runs succeeded

>99%

Response time

0.62 hours

Last modified

6 days ago

Convert websites to high-quality PDF documents with customizable options. This powerful actor allows you to transform website pages both static HTML and dynamic content into professional-grade PDFs, offering a wide range of customization features such as page format, orientation, margins, and more.

What does Website to PDF Converter do?

This Apify actor allows you to easily convert web pages to PDF format. It uses Playwright to render web pages and generate PDFs, providing a range of customization options to ensure you get the exact output you need.

Why use Website to PDF Converter?

  • Batch Processing: Convert multiple URLs to PDFs in a single run.
  • Customizable Output: Adjust page format, orientation, margins, and more.
  • Wait for Content: Ensure dynamic content is loaded before PDF generation.
  • High-Quality Results: Utilizes Playwright for accurate web page rendering.

Use Cases

  1. Content Archiving: Save important web pages as PDFs for offline access or archival purposes.
  2. Report Generation: Convert web-based reports into shareable PDF documents.
  3. Print-Friendly Versions: Create print-optimized versions of web content.
  4. Legal Documentation: Capture web pages as PDFs for legal or compliance purposes.

Input

The input fields for the Website to PDF Converter are:

  • startUrls (array): List of URLs to convert to PDF (required)
  • cookies (array): List of cookies to add to each request (optional)
  • waitForSelector (string): CSS selector to wait for before capturing the PDF (optional)
  • sleepTime (integer): Milliseconds to wait before capturing (default: 2000, optional)
  • format (string): Page format (e.g., "A4", "Letter", default: "Letter", optional)
  • landscape (boolean): Use landscape orientation (default: false, optional)
  • margin (number): Margin size in pixels (default: 0, optional)
  • printBackground (boolean): Include background graphics (default: false, optional)
  • scale (number): Webpage rendering scale (10% to 200%, default: 100%, optional)

You can use this Chrome browser extension Copy Cookies to copy the cookies of the current page and paste them in the 'cookies' input.

Output

The actor saves each PDF to the default key-value store and provides a dataset with details about each conversion.

How to use Website to PDF Converter

  1. Click on the "Try for free" button on the Website to PDF Converter page.
  2. Enter the URLs you want to convert in the "Start URLs" input field.
  3. Adjust any other settings as needed (e.g., page format, orientation).
  4. Click "Run" and wait for the actor to finish.
  5. Download your PDFs from the "Dataset" tab or access them via the Apify API.

Tips and Advanced Usage

  • Use the waitForSelector option to ensure dynamic content is loaded before PDF generation.
  • Adjust the sleepTime if you need to wait for animations or other time-dependent content.
  • Experiment with different scale values to find the best balance between quality and file size.
  • For large batch jobs, consider using Apify's proxy services to avoid IP blocking.

Pricing

Pricing model

Rental 

To use this Actor, you have to pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage.

Free trial

1 day

Price

$9.00