Interface ExtractedTable

A structured table extracted from a document.

interface ExtractedTable {
    headers: string[];
    rows: string[][];
    caption?: string;
    pageNumber?: number;
}

Properties

headers: string[]

Column header labels, in order.

rows: string[][]

Data rows; each row is an array of cell strings aligned to headers.

caption?: string

Optional caption or title for the table.

pageNumber?: number

Page number the table appears on (1-based, PDF/DOCX).