Skip to main content

Document Renderer

Try in Playground

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

PlatformPackageVersion
.NETPrimusSaaS.Documents2.0.0
Node.js@primus-saas/documents1.0.0

Example API

POST /api/documents/render

FieldTypeDescription
tenantIdstringTenant identifier
titlestringDocument title
contentTypestringmarkdown, html, or text
contentstringContent to render

Response: application/pdf binary


Next Steps

Want to...See Guide
5-minute setupIntegration Guide
Advanced configurationAdvanced