PDF generation for developers who have real work to do.

Generate PDFs from HTML and URLs, convert Office docs, merge files, add barcodes, and push document workflows to production without babysitting headless infrastructure.

REST API · Serverless · Pay as you go

python example
import requests
import json

api_key = 'your-api-key'
endpoint = 'https://v2.api2pdf.com/chrome/pdf/html'
html_to_convert = '<p>Hello World</p>'

api_response = requests.post(
    endpoint,
    json={'html': html_to_convert},
    headers={'Authorization': api_key}
)
print(json.loads(api_response.content)['FileUrl'])

Everything you need for document-heavy apps.

PDF generation, document conversion, merging, barcodes, screenshots, and more through a single REST API.

PDF Generation

Convert Markdown, HTML, and URLs to PDF with Chrome.

Document Conversion

Convert Word, PowerPoint, Excel, and images into PDF with LibreOffice.

Merge PDFs

Combine multiple PDFs into a single document through a simple API call.

Barcodes

Generate QR and barcodes for labels, invoices, and shipping workflows.

Thumbnails

Create thumbnails from PDFs and Office documents for previews and gallery views.

Screenshots

Capture a website, URL, or raw HTML as a screenshot when PDF is not the deliverable.

Extract Pages

Splice specific page ranges out of existing PDFs without adding more moving parts.

Password Protection

Lock an existing PDF with a password for compliance or customer-facing delivery.

See the API in action.

Use these starter requests to understand the shape of the API, then jump into the full docs when you are ready.

The fast path when your app already has HTML ready to go.

POST /chrome/pdf/html
curl -X POST 'https://v2.api2pdf.com/chrome/pdf/html' \
  -H 'Authorization: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{"html":"

Hello World

"}'

Great for dashboards, invoices, reports, or anything already hosted.

POST /chrome/pdf/url
curl -X POST 'https://v2.api2pdf.com/chrome/pdf/url' \
  -H 'Authorization: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://www.github.com"}'

Send Office files through LibreOffice without owning the infrastructure.

POST /libreoffice/any-to-pdf
curl -X POST 'https://v2.api2pdf.com/libreoffice/any-to-pdf' \
  -H 'Authorization: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://example.com/sample.docx"}'

A better experience for teams that just need PDF stuff to work.

Mission statement

API2PDF exists to make the experience of generating PDFs for application developers not completely miserable. That attitude is part of the brand, not a throwaway joke.

Transparency

Most services hide what they run under the hood. API2PDF does the opposite. Headless Chrome, wkhtmltopdf, LibreOffice, barcode tooling, merge operations, thumbnails, and screenshots are all surfaced clearly so developers know what they are buying into.

Why this matters

PDF generation is one of those features that looks easy until you own it. Serverless infrastructure, queueing, compute spikes, huge files, browser rendering quirks, and office conversion edge cases all pile up fast. API2PDF handles the ugly operational side so product teams can stay focused on shipping.

Get your API key and start shipping.

Start free, hit the docs, and move from prototype to production without turning PDF generation into its own internal platform project.

GET MY API KEY