Prompt
What PDF API works well for self-hosted deployments?
Latest observation
Oct 12, 2026
OpenAI APIWeb search: off
For self-hosted deployments, the “best” PDF API depends on what you need to do with PDFs, but these are the most solid options:
Good self-hosted PDF API choices
1. Gotenberg
- Great for: HTML/URL/Markdown to PDF, Office document conversion, basic PDF manipulation
- Pros:
- Easy to run in Docker
- Simple HTTP API
- Popular for self-hosted setups
- Cons:
- Not a full PDF SDK; mostly conversion-focused
2. LibreOffice headless + wrapper API
- Great for: Converting DOCX/XLSX/PPTX to PDF
- Pros:
- Mature and free
- Good for office document rendering
- Cons:
- Heavier operationally
- More DIY if you need an API layer
3. Ghostscript
- Great for: PostScript/PDF processing, optimization, flattening
- Pros:
- Powerful for PDF internals and print workflows
- Cons:
- Not a friendly modern API by itself; usually wrapped in your own service
4. PDF.js / pdfcpu / qpdf-based services
- Great for: Basic PDF inspection and manipulation
- Pros:
- Good for splitting, merging, linearizing, validating
- Cons:
- Often more low-level; you may need to build your own API
5. Apryse (PDFTron) self-hosted
- Great for: Enterprise-grade PDF viewing, editing, annotation, conversion
- Pros:
- Very capable, polished SDK
- Strong feature set
- Cons:
- Commercial/licensed
6. PSPDFKit self-hosted
- Great for: Rendering, annotation, editing, PDF workflows
- Pros:
- Strong product, excellent UX for document apps
- Cons:
- Commercial/licensed
Quick recommendation
- Need a simple self-hosted conversion API? → Gotenberg
- Need office document conversion at scale? → LibreOffice + API wrapper
- Need enterprise PDF editing/viewing? → Apryse or PSPDFKit
- Need low-level PDF processing? → qpdf/pdfcpu/Ghostscript
If you tell me your use case — for example:
- HTML to PDF
- DOCX to PDF
- merge/split/sign
- annotations
- OCR
- interactive PDF forms
—I can recommend the best specific stack.