Introduction
Learn what PDF API is and how it can help you generate PDFs from any source.
Introduction
PDF API is a powerful, developer-friendly API for generating PDF documents from multiple input sources:
- Markdown - Convert GitHub-flavored Markdown with syntax highlighting
- HTML - Full HTML and CSS support with custom styles
- URL - Capture any webpage as a PDF
- Templates - Use pre-built templates for invoices, receipts, and more
Why PDF API?
Simple Integration
Generate PDFs with a single API call. No complex setup or dependencies required.
curl -X POST https://api.pdfapi.dev/v1/pdf/markdown \
-H "Authorization: Bearer sk_live_xxx" \
-H "Content-Type: application/json" \
-d '{"markdown": "# Hello World"}' \
--output document.pdf
High Quality Output
Powered by headless Chrome, ensuring pixel-perfect rendering of your content including:
- Custom fonts and web fonts
- CSS Grid and Flexbox layouts
- SVG graphics
- Syntax-highlighted code blocks
Developer Experience
- RESTful API with clear, consistent endpoints
- Comprehensive documentation with examples
- SDKs for popular languages (coming soon)
- Detailed error messages
Use Cases
- Invoices & Receipts - Generate professional financial documents
- Reports - Create data-driven reports from your applications
- Documentation - Convert Markdown docs to downloadable PDFs
- Contracts - Generate legal documents from templates
- Certificates - Create achievement or completion certificates
Getting Started
Ready to start generating PDFs? Head to the Quickstart guide to create your first PDF in minutes.