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).
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.
Invoices & Receipts
Generate PDFs from HTML templates for billing workflows.
Operational Reports
Export analytics dashboards and reports to PDF for sharing.
Tickets & Vouchers
Issue printable tickets, vouchers, and confirmations.
Compliance Archives
Store immutable document snapshots for compliance purposes.
API documentation
Simple REST API with consistent patterns across all endpoints.
Endpoints
Example request
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
{
"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.
Volume discounts available for high throughput.
Other services
Explore more services to power your platform.
Ready to get started?
Talk with our team to learn how HTML to PDF can help your platform scale.