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
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.
Document Conversion
Thumbnails
Screenshots
Extract Pages
Password Protection
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.
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.
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.
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