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 (Coming Soon) - 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.renderpdf.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
Key Features
PDF Generation
Convert content from multiple sources:
- Markdown to PDF - GitHub-flavored Markdown with themes
- HTML to PDF - Full CSS support
- URL to PDF - Capture any webpage
- Template to PDF - Pre-built templates
PDF Operations
Manipulate and enhance your PDFs:
- Merge PDFs - Combine 2-100 PDFs into one document
- Compression - Reduce file size with configurable levels
- Metadata - Set and retrieve document properties
Storage and Delivery
Manage generated PDFs:
- File Storage - Store PDFs for later retrieval
- Webhooks - Real-time notifications for async workflows
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 (Coming Soon)
- Certificates - Create achievement or completion certificates (Coming Soon)
- Document Assembly - Merge multiple documents into comprehensive packages
Getting Started
Ready to start generating PDFs? Head to the Quickstart guide to create your first PDF in minutes.