Documents Active
Fast PDF Generator
Convert HTML content to professional PDF documents with support for custom headers, footers, page sizes, and styling. Perfect for invoices, reports, and certificates.
https://fast-pdf-generate.localapi.ro < 2s Response Time
1/sec Rate Limit
None Auth Required
Free Pricing
Quick Start
Request
curl -X POST "https://fast-pdf-generate.localapi.ro/generate" \
-H "Content-Type: application/json" \
-d '{"html": "<h1>Hello World</h1><p>Generated PDF</p>"}' \
--output document.pdf Request
import requests
response = requests.post(
"https://fast-pdf-generate.localapi.ro/generate",
json={
"html": "<h1>Hello World</h1><p>Generated PDF</p>",
"options": {"format": "A4"}
}
)
with open("document.pdf", "wb") as f:
f.write(response.content)
print("PDF saved successfully!") Request
const response = await fetch("https://fast-pdf-generate.localapi.ro/generate", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
html: "<h1>Hello World</h1><p>Generated PDF</p>",
options: { format: "A4" }
})
});
const blob = await response.blob();
const url = URL.createObjectURL(blob);
// Download or display the PDF Response
200 OK application/pdf
Binary PDF content Available Endpoints
POST
/generate Generate a PDF from HTML content.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
html | string | Yes | HTML content to convert |
options | object | No | PDF options (format, margins, etc.) |
GET
/health Check service health and availability status.
Error Codes
| Code | Description |
|---|---|
400 | Invalid request - missing HTML content |
422 | Processing error - invalid HTML |
429 | Rate limit exceeded |
500 | Internal server error |