ServicesHTML to PDF

HTML to PDF

Render HTML into pixel-perfect PDFs with a single API call

Convert HTML templates into PDFs for invoices, reports, and exports. Send HTML or base64 content and receive a ready-to-download PDF instantly (response-only, no storage).

<1s
Avg render time
10 MB
Max size
PDF
Formats

Key capabilities

Built for production workloads with enterprise requirements.

Fast HTML to PDF rendering

Supports custom page sizes and margins

CSS and web fonts respected

Inline or remote images

Base64 response for immediate download

No storage by default (response-only)

Ideal for invoices, receipts, and reports

Features

Everything you need to integrate and scale with confidence.

HTML Rendering

Submit HTML payloads and render PDFs with consistent layout and typography.

Layout Options

Control page size, margins, and orientation with wkhtmltopdf options.

Instant Delivery

Receive the PDF in the response without waiting for storage or CDN uploads.

Template-ready

Pair with your existing HTML templates for invoices, tickets, and reports.

Secure Access

All requests require API keys, with optional scope references for auditing.

Conversion Logs

Track conversion status, duration, and sizes for monitoring.

Use cases

How teams use this service to solve real problems.

Fintech

Invoices & Receipts

Generate PDFs from HTML templates for billing workflows.

SaaS

Operational Reports

Export analytics dashboards and reports to PDF for sharing.

Events

Tickets & Vouchers

Issue printable tickets, vouchers, and confirmations.

Enterprise

Compliance Archives

Store immutable document snapshots for compliance purposes.

API Reference

API documentation

Simple REST API with consistent patterns across all endpoints.

Endpoints

POST/pdf/v1/convert
GET/pdf/v1/items

Example request

cURL
curl -X POST https://api.serbices.com/pdf/v1/convert \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk_live_xxx" \
  -d '{
    "html": "<html><body><h1>Invoice #123</h1></body></html>",
    "options": { "pageSize": "A4", "marginTop": "10mm" },
    "scopeKey": "invoice_123"
  }'

Example response

JSON
{
  "conversionId": "pdf_8g7h6j5k4l3m",
  "status": "completed",
  "durationMs": 842,
  "outputBytes": 34567,
  "pdfBase64": "JVBERi0xLjQKJ..."
}

Simple, transparent pricing

Pay only for what you use. No hidden fees, no surprises.

Per conversion
Starting at $0.001

Volume discounts available for high throughput.

Ready to get started?

Talk with our team to learn how HTML to PDF can help your platform scale.