DocRaptor

API

HTML to PDF and Excel API built on the Prince engine

Price
Free tier, then paid
Access
API key

About

Hosted API that converts HTML and CSS into PDF or XLS/XLSX files using the Prince engine, with paged-media CSS for headers, footers and page numbers. Watermarked test documents are free and unlimited; paid plans are priced by documents per month.

What you can do with it

  • Turn HTML invoices, reports and statements into print-ready PDFs
  • Add running headers, footers and page numbers with CSS paged media
  • Generate accessible tagged PDFs or XLSX spreadsheets from HTML

Get started

  1. Sign up and copy your API key
  2. Set test to true while you build; test documents are free

Example

# The docs' public key YOUR_API_KEY_HERE also works for watermarked test documents
curl https://$DOCRAPTOR_API_KEY@api.docraptor.com/docs \
  --fail --silent --show-error \
  --header "Content-Type:application/json" \
  --data '{"test": true,
           "document_url": "https://docraptor.com/examples/invoice.html",
           "type": "pdf" }' > docraptor.pdf

Details

Hosting
Hosted service
Available in
Worldwide
Official SDKs
PHP, Python, JavaScript/TypeScript, Ruby, Java, C#
MCP server
None

Tasks

Alternatives

Other tools for the same tasks.

Last checked on .