Respawn Tech Dev

Marketing & QR Codes

Dynamic QR CodeQR codes with editable destinations, custom design and analytics for every scan.

Documents

HTML to PDFConvert HTML and CSS to PDF, PNG or JPG — one document or 500 at once.

Artificial intelligence

Knowledge baseSemantic search over your documents for AI chatbots, assistants and agents.
See all products→
  • Developers
  • Use cases
  • Docs↗
  • Blog
Pricing
Sign inSign up
Respawn Tech Dev

Products

Dynamic QR CodeHTML to PDFKnowledge baseSee all products →

Resources

PricingDevelopersUse casesDocsBlog
Sign upSign in
  1. Home
  2. /Use cases
  3. /Invoices and reports

HTML to PDF

PDF invoices and reports straight from your HTML

Reuse the templates you already have and stop maintaining rendering servers.

Sign upHTML to PDF

The problem

PDF libraries force you to rewrite layouts, and running your own Chromium in production costs memory, updates and engineering time.

The solution

Send the HTML and CSS you already use; the API renders it in a managed Chromium, with support for Google Fonts, per-page headers and footers, and JavaScript for charts.

How it works

Invoices and reports

  1. 1

    Build the HTML

    Use your current template engine to generate the invoice HTML.

  2. 2

    Send it for conversion

    POST /convert with the HTML and a webhook_url.

  3. 3

    Deliver to the customer

    When the webhook arrives, download the PDF and email it or attach it to the order.

  • Layout identical to the web
  • No rendering infrastructure
  • Webhook when it's ready
Product usedHTML to PDF
curl -X POST 'https://api.respawntech.dev/v1/tools/document/pdf/convert' \
  -H "X-API-Token: $RESPAWN_API_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "html": "<h1>Fatura #001</h1><p>Total: R$ 199,90</p>",
  "format": "pdf",
  "page_size": "A4",
  "webhook_url": "https://seu-app.com/webhooks/pdf"
}'

FAQ

Frequently asked questions

Can I number pages?

Yes. Use header_html and footer_html for a header and footer repeated on every page.

What about reports with JavaScript charts?

Enable enable_js and use wait_selector to wait for the chart to render before generating the PDF.

Start integrating today

Create your account, generate a token and make your first call in a few minutes.

Sign upRead the docs
Respawn Tech Dev

Production-ready APIs. Pay only for what you use.

Products

  • Dynamic QR Code
  • HTML to PDF
  • Knowledge base
  • See all products
  • Pricing

Resources

  • Developers
  • Use cases
  • Docs
  • Blog

Company

  • About
  • Contact
  • Dashboard

© 2026 Respawn Tech LTDA — All rights reserved.

Privacy PolicyTerms of Use

Privacy & cookies

We use analytics cookies (Google Analytics and Plausible) only with your consent, to understand how the site is used. We do not show ads.

View policy