VOOZH about

URL: https://apify.com/rainminer/html-to-pdf-converter

โ‡ฑ HTML to PDF Converter ยท Apify


Pricing

from $9.99 / 1,000 pdfs

Go to Apify Store

HTML to PDF Converter

Convert raw HTML or web page URLs into downloadable PDF files using a real browser. Render CSS, images, tables, invoices, reports, and dynamic layouts, then save the generated PDF to the Apify Key-Value Store with dataset metadata.

Pricing

from $9.99 / 1,000 pdfs

Rating

0.0

(0)

Developer

๐Ÿ‘ rainminer

rainminer

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Share

HTML to PDF

Convert raw HTML or a public web page URL into a downloadable PDF with a temporary Playwright browser.

What It Does

HTML to PDF renders your input in headless Chrome, generates a PDF with Playwright page.pdf, saves the file to the Apify Key-Value Store, and pushes one dataset item with the file name, storage key, PDF URL, byte size, source type, and page title when available.

Raw HTML is the primary input. If html is empty, the Actor loads url instead.

Input

{
"html":"<!doctype html><html><head><title>Invoice</title></head><body><h1>Invoice</h1></body></html>",
"fileName":"invoice.pdf",
"format":"A4",
"printBackground":true,
"landscape":false,
"margin":{
"top":"0.4in",
"right":"0.4in",
"bottom":"0.4in",
"left":"0.4in"
},
"viewportWidth":1280,
"viewportHeight":720,
"waitForMillis":0
}

Use url instead of html when you want to render a live page:

{
"url":"https://example.com",
"fileName":"example.pdf"
}

Output

The PDF is stored in the default Key-Value Store under fileName, defaulting to output.pdf.

Example dataset item:

{
"fileName":"invoice.pdf",
"pdfUrl":"https://api.apify.com/v2/key-value-stores/{storeId}/records/invoice.pdf",
"key":"invoice.pdf",
"bytes":18421,
"sourceType":"html",
"title":"Invoice"
}

Notes

  • printBackground defaults to true so CSS backgrounds are included.
  • format defaults to A4.
  • waitForMillis can delay PDF generation for client-side rendering, up to 60 seconds.
  • File names are sanitized to valid Key-Value Store record keys and get a .pdf suffix if missing.

You might also like

Html To Pdf Api

simplifysme/html-to-pdf-api

๐Ÿ“„ Convert any HTML page or URL to high-quality PDF documents via API. Perfect for reports, invoices, documentation, web page archiving, and automated document generation.

๐Ÿ‘ User avatar

SimplifySME Toolbox

1

HTML To PDF API

igview-owner/html-to-pdf-api

Convert HTML content and webpage URLs to high-quality PDF documents instantly. HTML to PDF converter with customizable page formats (A4, Letter), scale control, background graphics, and smart waiting for dynamic content. Perfect for reports, documentation, and automated PDF generation workflows.

๐Ÿ‘ User avatar

Sachin Kumar Yadav

43

URL to PDF Converter

rainminer/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.

HTML to PDF Converter

automation-lab/html-to-pdf-converter

Convert HTML content or web pages to PDF documents. Supports raw HTML strings, single URLs, and bulk URL lists. Full control over page size, margins, orientation, headers, and footers.

๐Ÿ‘ User avatar

Stas Persiianenko

27

HTML to PDF Converter

jancurn/url-to-pdf

Loads a web page in headless Chrome using Puppeteer and prints it to PDF. The input is a JSON object and output is a PDF file.

459

PDF Scraper

onidivo/pdf-scraper

Scrape and extract text from PDF links.

๐Ÿ‘ User avatar

Onidivo Technologies

512

Image to PDF Converter

junipr/image-to-pdf

Convert images (JPG, PNG, WebP, GIF, BMP, TIFF, SVG) to PDF. Custom page size, orientation, margins, scaling. Batch convert multiple images into one PDF or separate files. Output in key-value store.

Convert Image to PDF and PDF to Image

akash9078/image-pdf-converter

Convert images (JPG, PNG, BMP, and more) into high-quality PDFs, or extract images from PDF files in seconds. Imageโ€“PDF Converter Pro delivers fast, reliable, and professional results for all your document and image conversion needs.

๐Ÿ‘ User avatar

Akash Kumar Naik

37

Related articles

How to take screenshots and generate PDFs with Puppeteer
Read more
Web scraping with JavaScript vs. Python in 2025
Read more
How to parse JSON in JavaScript
Read more