The HTML-to-PDF API Built to Lighten Your Workload
PDFMule is reliable, scalable, and easy to integrate. Convert HTML and URLs to PDFs or images with one powerful REST API.
Reliable PDF & Image Generation Without the Infrastructure Management
Stop struggling with obsolete rendering engines, outdated libraries, and crash-prone headless browser sessions.
Let PDFMule carry the load with a simple API call.
☁️ No Headless Browser Headaches
Stop managing server clusters, memory leaks, and zombie Chrome processes. We handle the scaling and containerization, giving you a stable endpoint that's built to work, regardless of your traffic volume.
📐 Modern CSS Support
Don't struggle with limited rendering engines. Our API supports modern CSS flexbox, grid, and web fonts, delivering results that align with contemporary browser standards so you can spend less time hacking together print stylesheets.
⚡ Integrate in Minutes
Ditch the heavy SDKs and local dependencies. Generate high-resolution invoices or dynamic images with a single POST request. PDFMule carries the technical load so you can stay focused on your core product.
Integrate in Minutes with a Single POST Request
No heavy SDKs or headless browser infrastructure to maintain.
cURL
curl -X POST https://api.pdfmule.com/v1/convert/pdf \
-H "x-api-key: sk_live_xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "responseType": "binary"}' \
-o output.pdf
Node.js
// In a production deployment, store your API key securely,
// and implement robust error handling.
import fs from 'node:fs';
import { Readable } from 'node:stream';
const response = await fetch('https://api.pdfmule.com/v1/convert/pdf', {
method: 'POST',
headers: {
'x-api-key': 'sk_live_xxxxxxxxxx',
'Content-Type': 'application/json',
},
body: JSON.stringify({
url: 'https://example.com',
responseType: 'binary'
}),
});
Readable.fromWeb(response.body).pipe(fs.createWriteStream('output.pdf'));
Python
# In a production deployment, store your API key securely
# and implement robust error handling.
import requests
response = requests.post(
"https://api.pdfmule.com/v1/convert/pdf",
headers={"x-api-key": "sk_live_xxxxxxxxxx"},
json={"url": "https://example.com", "responseType": "binary"},
)
response.raise_for_status()
with open("output.pdf", "wb") as f:
f.write(response.content)
PHP
<?php
// In a production deployment, store your API key securely,
// and implement robust error handling.
$ch = curl_init('https://api.pdfmule.com/v1/convert/pdf');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'x-api-key: sk_live_xxxxxxxxxx',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://example.com',
'responseType' => 'binary'
]),
]);
$pdf = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($pdf === false || $status >= 400) {
throw new RuntimeException('PDF conversion failed (HTTP ' . $status . ')');
}
file_put_contents('output.pdf', $pdf);
The API for Modern Document Workflows
Dynamic Invoicing
Generate professional, brand-accurate PDFs for every transaction instantly.
Social Preview Images
Automatically create dynamic Open Graph images and marketing assets from your site data.
Automated Reports
Transform complex data visualizations into clean, shareable, and printable documents.
Marketing Assets
Convert web listings into high-quality printable flyers or digital brochures on the fly.
Straightforward Pricing, No Surprises
Try PDFmule with 100 free conversions upon signup. Upgrade anytime starting at $19/mo.
Starter
- 2,000 conversions / month
- 50 conversions / minute
- Convert to PDF, PNG, and JPEG
- Synchronous and asynchronous responses
- Optional file hosting via CDN
- Human email support
Professional
- 10,000 conversions / month
- 100 conversions / minute
- Convert to PDF, PNG, and JPEG
- Synchronous and asynchronous responses
- Optional file hosting via CDN
- Human email support
Business
- 40,000 conversions / month
- 150 conversions / minute
- Convert to PDF, PNG, and JPEG
- Synchronous and asynchronous responses
- Optional CDN file hosting
- Human email support
Enterprise
- Need a plan tailored to your requirements?
We Build for Developers
We built PDFmule to be fast, reliable, and easy for developers to use. We spent months analyzing the real-world pain points of existing HTML-to-PDF APIs. Much of that time was spent compiling developer feedback, benchmarking performance bottlenecks, and testing endpoints ourselves. That research shaped every design decision we made, resulting in an API that just works and clear, concise, and well organized documentation to help you get started in minutes.