📄 Perfect PDF Generation

HTML to PDF API
Free Developer API

Convert HTML to PDF with pixel-perfect formatting using modern Chromium. Generate invoices, reports, certificates, and documents from HTML/CSS. Perfect for dynamic content and complex layouts.

100 PDFs/month free • No credit card required

How It Works

1

Send HTML Content

POST your HTML content or URL with PDF formatting options

2

Chromium Renders

Modern browser engine processes your content with perfect CSS support

3

Get Your PDF

Receive a perfectly formatted PDF document ready for download or sharing

Key Features

Perfect CSS Rendering

Full support for modern CSS including Grid, Flexbox, and custom fonts.

Custom Page Settings

Control margins, page size, orientation, headers, footers, and page breaks.

Dynamic Content

Generate PDFs from templates with variables, charts, and real-time data.

Password Protection

Secure sensitive documents with password encryption and access controls.

High Performance

Generate PDFs in seconds with optimized rendering and smart caching.

Developer Friendly

Simple REST API with comprehensive docs and SDKs for all languages.

Code Examples

curl -X POST https://api.toolcenter.dev/v1/pdf \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "html": "

Hello World

This is a PDF!

", "pageFormat": "A4", "margins": {"top": 20, "bottom": 20, "left": 20, "right": 20}, "printBackground": true }' \ --output document.pdf

Use Cases

Invoice & Receipt Generation

Generate professional invoices, receipts, and financial documents with your branding. Perfect for SaaS billing, e-commerce checkouts, and accounting systems.

Report Generation

Convert dashboards, analytics, and data visualizations into shareable PDF reports. Include charts, tables, and dynamic content from your application.

Certificates & Documents

Create course certificates, legal documents, contracts, and official paperwork with custom formatting and branding.

Email Attachments

Generate PDFs on-the-fly for email campaigns, order confirmations, shipping labels, and customer communications.

Pricing

Free

€0/month
  • ✓ 100 PDFs/month
  • ✓ All PDF features
  • ✓ API documentation
  • ✓ Email support
Get Started

Pro

€9/month
  • ✓ 10,000 API calls/month
  • ✓ All 5 APIs included
  • ✓ Priority support
  • ✓ 99.9% SLA
Choose Pro

Business

€29/month
  • ✓ 50,000 API calls/month
  • ✓ Dedicated support
  • ✓ Custom rate limits
  • ✓ SLA guarantee
Choose Business

Frequently Asked Questions

What page formats and sizes do you support?

We support standard formats (A4, A3, Letter, Legal) and custom dimensions up to 40 inches. You can set portrait or landscape orientation and control all margins.

Can I include headers, footers, and page numbers?

Yes! You can add custom headers and footers with page numbers, document titles, dates, or any HTML content. Perfect for official documents and reports.

How do you handle CSS and web fonts?

Our Chromium engine supports all modern CSS features including custom fonts, Grid, Flexbox, and CSS variables. External fonts and stylesheets are fully supported.

Can I convert existing web pages to PDF?

Absolutely! Pass any URL instead of HTML content, and we'll fetch and convert the live page. Perfect for archiving, reports, or saving dynamic content.

What about file size and optimization?

PDFs are automatically optimized for size while maintaining quality. We support compression settings and can generate web-optimized PDFs for fast loading.

Ready to Get Started?

Join thousands of developers using our PDF API. Free tier includes 100 PDFs per month.