public class DocxTable
Represents a table extracted from an OpenXML Word document (.docx).
Provides access to the extracted grid of cells (rows and columns) and formats table content into standard Markdown syntax.
import klyn.io.docx
try doc = DocxDocument("spec.docx"):
for table in doc.tables:
print(table.toMarkdown())| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | columnCountcolumnCount as Int |
Maximum number of columns across all rows in the table. |
| public readonly property | rowCountrowCount as Int |
Number of rows in the table. |
| public readonly property | rows | The list of rows, each represented as an immutable list of cell string values. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | DocxTable | Initializes a new DocxTable from a two-dimensional matrix of cell text strings. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | toMarkdowntoMarkdown() as String |
Converts the table into a standard Markdown grid representation. |