PDF GenerationGenerate PDFs from HTML, Markdown, or URLs
The Helix PDF Generation API converts HTML, Markdown, or any URL into professional PDF documents. Supports custom CSS, headers, footers, page numbers, watermarks, and complex layouts via WeasyPrint. Perfect for invoices, reports, contracts, and receipts.
- Free tier with 100 requests/month
- Fast, cached responses
- 99.9% uptime target
- Standard REST + JSON
What is the PDF Generation API?
The Helix PDF Generation API converts HTML, Markdown, or any URL into professional PDF documents. Supports custom CSS, headers, footers, page numbers, watermarks, and complex layouts via WeasyPrint. Perfect for invoices, reports, contracts, and receipts.
How it works
- 1POST /from-html with HTML string → receive PDF bytes.
- 2POST /from-markdown converts Markdown → styled PDF.
- 3POST /from-url renders any webpage to PDF (including JavaScript-rendered content).
- 4Customize: `page_size` (A4/Letter/Legal), `orientation`, `margin`, `header_html`, `footer_html`, `watermark_text`.
- 5Supports CSS3 features: flexbox, grid, custom fonts (Google Fonts auto-loaded), images, page breaks.
Endpoints
3 REST endpoints, all returning consistent JSON.
/from-htmlConvert HTML to PDF
/from-urlConvert webpage to PDF
/from-markdownConvert Markdown to PDF
Code in 5 languages
Copy and paste into your project. Replace YOUR_API_KEY with your RapidAPI key.
// PDF Generation API
const response = await fetch(
"https://pdf-generation-by-helix-api.p.rapidapi.com/from-html",
{
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "pdf-generation-by-helix-api.p.rapidapi.com",
"Content-Type": "application/json"
},
body: JSON.stringify({ "query": "your input" })
}
);
const data = await response.json();
console.log(data);What developers build with this API
Real use cases from production deployments.
Invoice Generation
Build a Stripe/Recurly alternative. Generate branded invoices from your billing data — no Word templates, no design back-and-forth.
Report Exports for SaaS
Let users 'Export to PDF' any dashboard. Charts, tables, branded headers — looks like Tableau output, costs $0.001 per report.
Resume and Document Builders
Build the next Resume.io or Zety. User edits HTML/Markdown live, hits Export, gets a beautiful PDF.
Contracts and Legal Documents
Merge template + dynamic data → output PDF for e-signature. Pair with DocuSign or HelloSign for full workflow.
Ticket and Receipt Printing
E-commerce receipts, event tickets, gift cards. Email-friendly, print-friendly, mobile-friendly PDFs in 200ms.
Pricing
All tiers include this API. No credit card for free tier.
BASIC
Free
- ✓ 100 reqs/month
- ✓ Hard limit
- ✓ All endpoints
PRO
$9.99/mo
- ✓ 10,000/month
- ✓ +$0.005 each
- ✓ All endpoints
ULTRA
$29.99/mo
- ✓ 100,000/month
- ✓ +$0.002 each
- ✓ All endpoints
MEGA
$99.99/mo
- ✓ 1,000,000/month
- ✓ +$0.001 each
- ✓ All endpoints
Frequently asked questions
Real answers to questions developers ask before integrating.