PDF generation for developers who have real work to do.

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'])

One API. Every PDF workflow.

The tools you already trust — Headless Chrome, wkhtmltopdf, and LibreOffice — wrapped in one transparent, serverless REST API.

PDF Generation

Convert HTML and URLs to PDF format with Headless Chrome or wkhtmltopdf.

Document Conversion

Convert images and Microsoft Office documents (Word, Powerpoint) to PDF format with LibreOffice.

Merge PDFs Together

Combine multiple PDF files into a single PDF.

Barcodes

Generate barcodes and QR codes with Zebra Xing.

Thumbnails

Create a thumbnail of a PDF or Microsoft Word, Powerpoint, and other files.

Screenshot Websites

Take a screenshot of a website, url, or raw HTML.

Extract Pages From PDFs

Splice out pages from existing PDFs by specifying a page range.

Add Password to PDF

Lock an existing PDF with a password.

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":"<h1>Hello World</h1>"}'

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/pdf
curl -X POST 'https://v2.api2pdf.com/libreoffice/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.

Built for developers

The content and markup on this site are intentionally readable. Posts, landing sections, and code blocks are structured semantically, styled cleanly, and easy to copy, parse, and index. That is better for SEO, better for LLM visibility, and better for people too.

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