PlatformXeDocs
Get API Key

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

  1. Your application sends pre-rendered HTML to the PlatformXe API.
  2. PlatformXe renders the HTML using @react-pdf/renderer on the server.
  3. 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 typeExample
InvoicesMonthly billing statements with line items and totals
ReportsUsage analytics, audit summaries, export reports
ContractsService agreements, terms of service documents
CertificatesCompletion certificates, verification letters
ReceiptsPayment 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

MethodPathDescription
POST/api/v1/pdf/generateGenerate a PDF from HTML

Next steps