Website To PDF Converter avatar

Website To PDF Converter

Try for free

1 day trial then $9.00/month - No credit card required now

View all Actors
Website To PDF Converter

Website To PDF Converter

louisdeconinck/website-to-pdf-converter
Try for free

1 day trial then $9.00/month - No credit card required now

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, …

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)
  • 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)

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.
Developer
Maintained by Community
Actor metrics
  • 3 monthly users
  • 1 star
  • 100.0% runs succeeded
  • Created in Oct 2024
  • Modified 14 days ago