PDF Generation Overview
Server-side PDF rendering from HTML templates for invoices, reports, and documents.
The PlatformXe PDF Service renders HTML content into PDF documents on the server. Use it to generate invoices, reports, contracts, certificates, and any other document your application needs.
How it works
- Your application sends pre-rendered HTML to the PlatformXe API.
- PlatformXe renders the HTML using
@react-pdf/rendereron the server. - The generated PDF is returned as a download URL or base64-encoded content.
PlatformXe is a dumb pipe for PDF generation. Your application owns template selection, data merging, and layout. PlatformXe receives ready-to-render HTML and produces the PDF.
Use cases
| Document type | Example |
|---|---|
| Invoices | Monthly billing statements with line items and totals |
| Reports | Usage analytics, audit summaries, export reports |
| Contracts | Service agreements, terms of service documents |
| Certificates | Completion certificates, verification letters |
| Receipts | Payment confirmations, transaction summaries |
Key features
- Server-side rendering -- no browser or headless Chrome required
- Custom page options -- margins, orientation, paper size
- URL or base64 output -- choose between a hosted PDF URL or inline base64 content
- Fast generation -- typical render times under 2 seconds
API scope
PDF generation endpoints do not require a specific scope. Any valid API key can generate PDFs.
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /api/v1/pdf/generate | Generate a PDF from HTML |
Next steps
- Generate PDF -- API reference for PDF generation