Skip to main content

Type Alias: PdfPageRenderer

PdfPageRenderer = (tabData, index, pageSettings) => Promisable<string>

Function signature for rendering a PDF page.

This type defines the signature for custom page renderer functions that generate HTML content for specific tab types in PDF documents. Custom renderers provide complete control over how different content types appear in generated PDFs.

Parameters​

tabData​

PdfDocumentTab

The tab's content data to render

index​

number

Position of this tab in the document

pageSettings​

PageSettings

Page dimensions and layout configuration

Returns​

Promisable<string>

HTML string to render in the PDF