• Draws a table on the provided PDF document page.

    Prop

    Font size for table text (default: 16)

    Prop

    Text color for table content (default: rgb(0, 0, 0))

    Prop

    Text alignment for table content (default: "left")

    Prop

    Font for table content (default: embeddedFont)

    Prop

    Link color for table content (default: rgb(0, 0, 1))

    Prop

    Line height for table content (default: 1.36)

    Prop

    Column-specific options

    Prop

    Row-specific options

    Prop

    Header-specific options

    Prop

    Title-specific options

    Prop

    Border-specific options

    Prop

    Page margin options

    Prop

    Content margin options

    Returns

    • The dimensions of the drawn table

    Parameters

    • doc: default

      PDF document to draw in

    • page: default

      Page to draw table on

    • table: CellContent[][] | TableObject

      2D array of string data representing the table

    • startX: number

      Starting X coordinate for the table

    • startY: number

      Starting Y coordinate for the table

    • Optional options: TableOptionsDeepPartial<DrawTableOptions>

      Drawing options for the table, including:

    Returns Promise<TableDimensions>

Generated using TypeDoc