VOOZH about

URL: https://apify.com/simplifysme/html-to-pdf-api

โ‡ฑ Html To Pdf Api [DEPRECATED] ยท Apify


๐Ÿ‘ Html To Pdf Api avatar

Html To Pdf Api

Deprecated

Pricing

from $14.00 / 1,000 results

Go to Apify Store

Html To Pdf Api

Deprecated

๐Ÿ“„ 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.

Pricing

from $14.00 / 1,000 results

Rating

0.0

(0)

Developer

๐Ÿ‘ SimplifySME Toolbox

SimplifySME Toolbox

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

5 months ago

Last modified

Share

๐Ÿ“„ 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.


๐Ÿš€ Key Features

FeatureDescription
๐Ÿ“„ High Quality PDFsProfessional PDF generation with full formatting
๐ŸŒ URL or HTMLConvert URLs or raw HTML content
๐Ÿ“ Custom FormatA4, Letter, Legal, and more page formats
๐Ÿ”„ Landscape/PortraitChoose orientation
๐ŸŽจ Full StylingIncludes backgrounds, colors, and graphics
โฑ๏ธ Smart WaitingWait for selectors before PDF generation
๐Ÿ“Š Header/FooterCustom headers and footers with page numbers
๐Ÿ”— Public URLsDirect download URLs for your PDFs

๐Ÿ“ฅ Input

Required

  • url (string):
    • URL to convert to PDF, OR
    • Raw HTML content (if htmlContent: true)
    • Example: "https://example.com" or "<html><body>Hello</body></html>"

Optional

  • htmlContent (boolean, default: false): Set to true if url contains raw HTML
  • format (string, default: "A4"): Page format (A4, Letter, Legal, Tabloid, Ledger, A0-A6)
  • landscape (boolean, default: false): Print in landscape orientation
  • marginTop (string, default: "1cm"): Top margin in CSS units (e.g., "1cm", "10mm", "1in")
  • marginRight (string, default: "1cm"): Right margin in CSS units
  • marginBottom (string, default: "1cm"): Bottom margin in CSS units
  • marginLeft (string, default: "1cm"): Left margin in CSS units
  • displayHeaderFooter (boolean, default: false): Show header/footer
  • headerTemplate (string): HTML template for header (supports date, title, url, pageNumber, totalPages)
  • footerTemplate (string): HTML template for footer
  • printBackground (boolean, default: true): Include background graphics
  • scale (number, default: 1): Scale factor (0.1 to 2)
  • waitForSelector (string): CSS selector to wait for before generating PDF
  • waitTimeout (number, default: 30000): Max wait time in milliseconds

๐Ÿ“ค Output

Returns PDF metadata with download URL:

{
"url":"https://example.com",
"pdfKey":"pdf-1234567890-abc123.pdf",
"pdfUrl":"https://api.apify.com/v2/key-value-stores/.../pdf-1234567890-abc123.pdf",
"format":"A4",
"landscape":false,
"pageCount":3,
"fileSize":145678,
"timestamp":"2024-01-01T12:00:00.000Z",
"_metadata":{
"runId":"abc123",
"actorId":"user/html-to-pdf-api",
"processedAt":"2024-01-01T12:00:00.000Z",
"processingTimeMs":3500
}
}

๐Ÿ’ก Use Cases

  • โœ… Invoice Generation - Convert HTML invoices to PDF
  • โœ… Report Creation - Generate PDF reports from web dashboards
  • โœ… Documentation - Archive web pages as PDFs
  • โœ… Email Attachments - Generate PDFs for email campaigns
  • โœ… Legal Documents - Convert contracts and agreements
  • โœ… Receipts & Statements - Generate printable documents
  • โœ… Web Page Archiving - Save web pages as PDFs

๐Ÿ“‹ Examples

Basic URL to PDF

{
"url":"https://example.com"
}

HTML Content to PDF

{
"url":"<html><body><h1>Hello World</h1><p>This is a PDF!</p></body></html>",
"htmlContent":true
}

Custom Format with Header/Footer

{
"url":"https://example.com",
"format":"Letter",
"landscape":true,
"displayHeaderFooter":true,
"headerTemplate":"<div style='font-size:10px; text-align:center; width:100%;'><span class='title'></span></div>",
"footerTemplate":"<div style='font-size:10px; text-align:center; width:100%;'>Page <span class='pageNumber'></span> of <span class='totalPages'></span></div>"
}

Wait for Content to Load

{
"url":"https://example.com/dashboard",
"waitForSelector":".chart-container",
"waitTimeout":10000
}

๐Ÿ“ Notes

  • PDFs are stored securely and accessible via public URLs
  • Large pages may take longer to generate
  • Use waitForSelector for pages with dynamic content that needs time to load
  • Header/footer templates support CSS styling and special variables: date, title, url, pageNumber, totalPages

You might also like

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

๐ŸŒ Bulk WHOIS Lookup โ€” Domain Intelligence

nexgendata/domain-whois-lookup

Bulk WHOIS lookups for any domain. Registrar, creation date, expiry, nameservers & registrant info. Find expiring domains, build portfolios & research competitors. Pay per lookup.

Researchgpt Deep Research Agent

wheat_tourist/researchgpt-deep-research-agent

๐Ÿ”ฌ Transform any topic into a comprehensive research report in minutes! Scrapes Wikipedia, arXiv, Semantic Scholar, news & web sources. Outputs professional JSON, HTML & PDF reports. Perfect for students, researchers, content creators & businesses. No API keys needed.

53

Deep Research Agent (Brave + Gemini 3.1/GPT-5.1/Opus4.6)

visita/deep-research-agent

๐Ÿฆ Autonomous research assistant. Uses Brave Search + AI (Gemini 3.1/GPT-5.1/Opus4.6) to search, scrape, and synthesize the web into professional, fully cited reports. ๐Ÿ“„ Features instant HTML/Markdown export and massive context windows. Perfect for market intelligence, academic research, & briefs.

๐Ÿ‘ User avatar

Visita Intelligence

14

HTML To PDF for N8N

exciting_perfume/HTML-to-PDF-Apify-Actor

Generate accurate PDFs from HTML or URLs using Chromium. Supports CSS, fonts, and backgrounds. Automation-ready and perfect for n8n workflows, reports, invoices, and contracts.

๐Ÿ‘ User avatar

Gavin Campbell

20

Fast Pdf Processor

contemporary_fruit/pdf-processor-actor

This API is a PDF Processing Service allowing users to upload a PDF to: Extract Text: Reads all text from the PDF and returns it as structured JSON data per page. Merge Pages: Creates a new PDF containing only the specific pages selected by the user. (260 characters)

Yc Pitch Deck Generator

okpoorav/yc-pitch-deck-generator

Generate professional Y-Combinator style pitch decks in seconds using AI. Just enter your startup details and get a polished 9-slide deck in HTML, PDF, or PowerPoint format

2

5.0

(1)

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

Web Page to Single-Page PDF & HTML (Automation-Ready)

exciting_perfume/Web-Page-to-Single-Page-PDF-and-HTML

Convert webpages to single-page PDFs and extract raw HTML via API. Captures full scroll height (no A4 splits). Built for automation with n8n, Make, and Zapier. Ideal for archiving, AI workflows, compliance, and bulk processing.

๐Ÿ‘ User avatar

Gavin Campbell

9