HTML to PDF Converter API: URL & HTML to PDF avatar

HTML to PDF Converter API: URL & HTML to PDF

Pricing

from $3.00 / 1,000 pdf createds

Go to Apify Store
HTML to PDF Converter API: URL & HTML to PDF

HTML to PDF Converter API: URL & HTML to PDF

$0.003 per PDF, failures free. Convert web pages or raw HTML to print-quality PDF: A4/Letter, margins, backgrounds, page numbers. Bulk URLs.

Pricing

from $3.00 / 1,000 pdf createds

Rating

0.0

(0)

Developer

Tidyfold Tools

Tidyfold Tools

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

20 days ago

Last modified

Features

Limited permissions

Share

HTML to PDF Converter turns any web page URL or raw HTML into a PDF using headless Chromium, so CSS, images and fonts render as they do in a browser. Convert one page or hundreds in bulk, choose the paper size and margins, and get a download link for each PDF. $0.003 per PDF, failures free.

How to use it

  1. Add page URLs to URLs, or paste your own HTML into Raw HTML.
  2. Choose paper size, orientation, margins and whether to print backgrounds.
  3. Click Start and download each PDF from its link in the dataset.

Features

  • Bulk URLs or a raw HTML string (great for invoices and reports rendered from templates)
  • Paper sizes A4, Letter, Legal, A3, A5; portrait or landscape; custom margins
  • Print or screen CSS, background colors and images, optional page-number footer
  • Smart waiting for slow, JavaScript-heavy pages (network idle, load, or extra delay)
  • Blocked or missing pages are reported with a clear error and not charged

Use cases

Archiving web pages, saving receipts and order confirmations, generating invoices or reports from HTML templates, compliance and evidence snapshots, turning docs pages into offline PDFs.

Input example

{
"urls": [
"https://example.com"
]
}

Output example

{
"source": "https://example.com",
"status": "ok",
"title": "Example Domain",
"pages": 1,
"bytes": 24117,
"pdfUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/example-com.pdf"
}

How much does it cost to convert 1,000 web pages to PDF?

Pay per event: you pay only for results.

$0.003 per PDF created ($3 per 1,000 PDFs). Pages that fail, time out, or return HTTP 400+ are never charged.

Example: 1,000 PDFs cost $3.00; 100 PDFs cost $0.30.

Apify also charges its standard run-start fee of $0.00005 per GB of run memory (a fraction of a cent per run). The exact prices are always on the Pricing tab, and you can cap any run with Maximum cost per run.

FAQ

Do I pay for pages that fail? No. Pages that fail, time out, or return HTTP 400+ are reported with an error and never charged.

Can I convert my own HTML, like invoices or reports? Yes. Paste raw HTML instead of URLs and get a PDF back.

Can I add page numbers? Yes, there is an optional page-number footer.

More Tidyfold tools

ToolUse it for
Website Screenshot API: Bulk, Full-Page & Mobilewebsite screenshot API
PDF Table Extractor: PDF to Excel, CSV & JSONPDF to Excel
Invoice & Receipt Parser: PDF to JSON (No AI Key)invoice parser
PDF OCR: Scanned PDF to Text ExtractorPDF OCR
NPI Registry Scraper: US Healthcare Provider LeadsNPI registry scraper
Contractor License Scraper: Texas, Colorado & Washingtoncontractor license lookup
New Business Leads: Newly Registered LLCs (CO, NY, OR)new business leads
Contact Details Scraper: Emails, Phones & Tech Stackcontact details scraper
Bulk WHOIS Lookup: Domain Expiry & Availability (RDAP)bulk WHOIS lookup
Sitemap Extractor: Get All URLs from Any Websitesitemap extractor

Use it from code or no-code tools

Every run can be started from the Apify API, the Apify Python/JS clients, or connected to n8n, Make, Zapier and Google Sheets through Apify integrations. Results download as JSON, CSV, Excel or XML.

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("tidyfold/web-to-pdf").call(run_input={'urls': ['https://example.com']})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

Support

Found a bug or need a field added? Open an issue on the Issues tab. Tidyfold maintains these tools daily and usually replies within 1 business day.