P
Automation

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
Interactive Demo
HTML to PDF

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

  1. 1POST /from-html with HTML string → receive PDF bytes.
  2. 2POST /from-markdown converts Markdown → styled PDF.
  3. 3POST /from-url renders any webpage to PDF (including JavaScript-rendered content).
  4. 4Customize: `page_size` (A4/Letter/Legal), `orientation`, `margin`, `header_html`, `footer_html`, `watermark_text`.
  5. 5Supports CSS3 features: flexbox, grid, custom fonts (Google Fonts auto-loaded), images, page breaks.

Endpoints

3 REST endpoints, all returning consistent JSON.

POST
/from-html

Convert HTML to PDF

POST
/from-url

Convert webpage to PDF

POST
/from-markdown

Convert 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.

1

Invoice Generation

Build a Stripe/Recurly alternative. Generate branded invoices from your billing data — no Word templates, no design back-and-forth.

2

Report Exports for SaaS

Let users 'Export to PDF' any dashboard. Charts, tables, branded headers — looks like Tableau output, costs $0.001 per report.

3

Resume and Document Builders

Build the next Resume.io or Zety. User edits HTML/Markdown live, hits Export, gets a beautiful PDF.

4

Contracts and Legal Documents

Merge template + dynamic data → output PDF for e-signature. Pair with DocuSign or HelloSign for full workflow.

5

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
Most Popular

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

View all 20 APIs included →

Frequently asked questions

Real answers to questions developers ask before integrating.

Can I use custom fonts?
Yes — any Google Font loads automatically via @import or <link>. For custom fonts, base64-embed them in the CSS.
Does it support tables and charts?
Yes — any HTML/CSS that renders in Chromium will render in PDF. Charts via Chart.js, D3, etc. work fine.
What's the max page count?
100 pages on standard plans, 1,000 on Ultra+. For longer docs, split into chunks and concatenate via /merge.
Can I add a watermark?
Yes — `watermark_text` adds a diagonal watermark on every page. Or use CSS for full control.
Can I generate from a live URL?
Yes — /from-url renders any URL to PDF, including JS-heavy SPAs. Pass `wait_for` selector to ensure content is loaded.
Is the PDF accessible (PDF/UA)?
Yes — semantic HTML produces accessible PDFs with tags, headings, and alt text. Pass `pdf_ua=true` for strict compliance.

More Automation APIs

Start building with real APIs today

Free tier on every API, a live demo on every page, and a guide for each. No credit card to explore.

Helix-API Newsletter

Get new API launches, integration guides, and code examples in your inbox.