Skip to main content

Module table

Module table 

Source
Expand description

Table module for PPTX generation

This module provides comprehensive table support including:

  • Cell content and formatting
  • Row and column management
  • Text alignment (horizontal and vertical)
  • Cell backgrounds and borders
  • Text wrapping
  • XML generation for OOXML

Structs§

Table
Table definition with rows and positioning
TableBuilder
Builder for creating tables with fluent API
TableCell
Table cell content with formatting options
TableRow
Table row containing cells

Enums§

CellAlign
Horizontal text alignment
CellVAlign
Vertical text alignment

Constants§

HEADER_TEXT
Standard header text color.
HELPER_HEADER_BG
Header background used by helper table presets.
IMPORT_HEADER_BG
Header background used by HTML/Markdown import tables.

Functions§

generate_cell_xml
Generate cell XML with formatting. Based on reference PPTX structure: txBody comes before tcPr.
generate_table_xml
Generate table XML for a slide
header_cell
Styled header cell preset.
table_from_string_rows
Build a positioned table from string rows with optional header styling.