Document Renderer
Render plain text, Markdown, or HTML into PDF with no external services. All processing runs in-process using QuestPDF (.NET) or Puppeteer (Node.js).
Complete Data Isolation
Primus Document Renderer runs entirely within your application. All document generation happens locally. No document content is ever transmitted to Primus servers.
Key Capabilities
- Plain text, Markdown, and HTML input support
- PDF output with customizable styling
- Branded headers and footers
- Tenant isolation with tenant ID in footer
- Configurable page margins and font sizes
- Self-test mode for validation
Packages
| Platform | Package | Version |
|---|---|---|
| .NET | PrimusSaaS.Documents | 2.0.0 |
| Node.js | @primus-saas/documents | 1.0.0 |
Example API
POST /api/documents/render
| Field | Type | Description |
|---|---|---|
tenantId | string | Tenant identifier |
title | string | Document title |
contentType | string | markdown, html, or text |
content | string | Content to render |
Response: application/pdf binary
Next Steps
| Want to... | See Guide |
|---|---|
| 5-minute setup | Integration Guide |
| Advanced configuration | Advanced |