Skip to main content

Document Renderer Module

Generate PDFs from text, Markdown, and HTML content. Built-in branding, pagination, and tenant isolation.

Why Use Primus Documents?

PDF generation libraries are complex. Primus Documents provides a simple API with built-in formatting.

// Generate PDF from content
var pdf = await renderer.RenderPdfAsync(request);

Supported Content Types


Result Object (IDocumentRenderer)

MethodReturnsDescription
RenderPdfAsync(request)Task<byte[]>PDF as byte array

RenderDocumentRequest

PropertyTypeDescription
TitlestringDocument title
ContentstringDocument content
ContentTypeDocumentContentTypeText, Markdown, or Html
TenantIdstring?Tenant for branding

Examples


Quick Install

dotnet add package PrimusSaaS.Documents

Next Steps

Want to...See Guide
Get startedQuick Start
Full referenceDocument Renderer