Pdf Generator avatar
Pdf Generator

Pricing

from $5.00 / 1,000 results

Go to Apify Store
Pdf Generator

Pdf Generator

Generate PDF documents from HTML content or URLs. Supports multiple page formats (A4, Letter), landscape/portrait orientation, and custom margins. Perfect for creating reports, invoices, and documentation.

Pricing

from $5.00 / 1,000 results

Rating

0.0

(0)

Developer

Fabio Suizu

Fabio Suizu

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

18 days ago

Last modified

Share

PDF Generator - HTML to PDF & URL to PDF

Generate professional PDFs from HTML or URLs in under 1 second. Perfect for reports, invoices, and documents. Supports custom page sizes, margins, and styling.

Features

  • Fast Processing: Lightning-fast pdf generator - html to pdf & url to pdf powered by Azure
  • Reliable: 99.9% uptime with automatic failover
  • Scalable: Handle single requests or bulk operations
  • Secure: Enterprise-grade security with API key authentication
  • Well Documented: Comprehensive API documentation and examples

Use Cases

  • Development: Integrate into your development workflow
  • Automation: Build automated pipelines
  • Integration: Connect with other services

Input Parameters

ParameterTypeRequiredDescription
htmlstringNoHTML content to convert to PDF
urlstringNoWeb page URL to convert to PDF
urlsarrayNoArray of URLs for batch PDF generation
formatstringNoPDF page format
landscapebooleanNoUse landscape orientation

Output Format

{
"success": true,
"result": { ... },
"timestamp": "2026-01-07T00:00:00Z"
}

Code Examples

JavaScript (Node.js)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const input = {
"html": "example_html",
"url": "example_url",
"urls": [],
"format": "A4",
"landscape": false
};
const run = await client.actor("vivid_astronaut/pdf-generator").call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python

from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run_input = {
"html": "example_html",
"url": "example_url",
"urls": [],
"format": "A4",
"landscape": false
}
run = client.actor("vivid_astronaut/pdf-generator").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

cURL

curl -X POST "https://api.apify.com/v2/acts/vivid_astronaut~pdf-generator/runs?token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"html": "example_html",
"url": "example_url",
"urls": [],
"format": "A4",
"landscape": false
}'

Pricing

Model: Pay per result Price: $0.005 per result

You only pay for successful results. Platform usage costs are included.

API Documentation

Full API documentation is available at:

Support

Version History

See ./CHANGELOG.md for version history.


Powered by Azure Cloud Infrastructure