pdf/pdf
Documentation
- source: pdf/pdf.ts
Overview
Classes
PDF
generateTable()
Generates a PDF document containing a styled table based on the standard table template.
tsstatic generateTable(data: PDFTableData, config: PDFTableConfig): void;
Parameter Type Description 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.
tsstatic generate(templatePath: string, data: PDFTableData): void;
Parameter Type Description 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>).
