PDF Generation API

Everything you need to generate PDFs

Multi-page layouts, markdown support, repeatable headers and footers. Built for developers who need reliable PDF generation.

Built for your use cases

Perfect for SaaS products that need professional PDF generation

On-the-fly reporting

Generate reports instantly within your software products. Your users get professional PDFs without leaving your app.

🖨️

Print-ready reports

High-quality PDFs optimized for printing. Professional layouts that look great on paper.

📧

Email attachments

Automated PDF reports attached to customer retention emails. Keep your users engaged with valuable insights.

Features

Everything you need for professional PDF generation

Multi-page layouts

Create complex multi-page PDF reports without the headache. Automatic page breaks, intelligent content flow, and consistent styling across all pages.

Repeatable elements

Headers, footers, and table headings that repeat automatically on every page. Set once, use everywhere. No manual pagination required.

Markdown support

Rich text formatting with Markdown. Bold, italic, lists, links, tables, and code blocks - all rendered beautifully in PDF.

JSON API

Straightforward JSON API with LLM support. Send your data, get a PDF back. No complex integrations or SDKs needed.

Custom styling

Define your own styles with JSON-based theming. Colors, fonts, spacing - all customizable to match your brand.

Table support

Advanced table rendering with automatic column sizing, row spanning, and intelligent page breaking that keeps rows together.

Simple API

Send JSON, get PDF. It is that simple.

POST /api/v1/generate
{
  "template": "monthly-report",
  "data": {
    "title": "Q4 Performance Report",
    "company": "Acme Inc",
    "revenue": "$124,000",
    "growth": "+23%",
    "charts": [...],
    "tables": [...]
  },
  "options": {
    "format": "A4",
    "orientation": "portrait",
    "style": "modern"
  }
}

Frequently asked questions

Got questions? We have got answers.

How does the JSON API work?

You send a POST request with your data in JSON format, specifying the template and styling options. Our API renders the PDF and returns a download URL or the raw PDF bytes. It is simple, fast, and works with any programming language.

Can I customize the PDF styling?

Absolutely! Pro plans include 3 built-in styles and typography options. Business plans get all built-in styles plus the ability to create custom designs through our style configuration. You control colors, fonts, spacing, and layouts via JSON.

What about page breaks and multi-page documents?

Our layout engine handles page breaks automatically. Tables split intelligently, headers and footers repeat on every page, and content flows naturally. You can also force page breaks with simple markers in your data.

Is there a free trial?

Yes, every plan includes a 14-day free trial with full access to all features. No credit card required to start. You can generate up to 100 PDFs during the trial period.

How do I handle images in my PDFs?

Include image URLs in your JSON data and we will fetch and embed them automatically. We support JPG, PNG, SVG, and WebP formats. Images are optimized for PDF output and can be positioned with standard CSS-like properties.

What is the difference between Pro and Business plans?

Pro is perfect for small teams with built-in styles and download/BYO storage. Business adds whitelabel options (no Cherry on Doc branding), custom design styles, hosted PDFs with global CDN, and priority support.

Ready to generate PDFs?

Start your 14-day free trial today. No credit card required.