Skip to content

pdf/pdf

Documentation

Overview

Classes

PDF

generateTable()

Generates a PDF document containing a styled table based on the standard table template.

ts
static generateTable(data: PDFTableData, config: PDFTableConfig): void;
ParameterTypeDescription
dataPDFTableDataThe structured data to populate the table.
configPDFTableConfigOptional configuration for page size and alignment.

Returns

  • Type: void
  • Description: The generated PDF content as a byte array (Array<number>).

generate()

Generates a PDF document using a custom template path and data payload.

ts
static generate(templatePath: string, data: PDFTableData): void;
ParameterTypeDescription
templatePathstringThe path to the custom template file (e.g., in the Registry).
dataPDFTableDataThe data to be injected into the template.

Returns

  • Type: void
  • Description: The generated PDF content as a byte array (Array<number>).