pdfextract API
    Preparing search index...

    Interface TextBlock

    Lines grouped heuristically by columns and paragraph spacing. A detected table forms one block with one line per table row, its cells separated by tab characters.

    interface TextBlock {
        bbox: Box;
        furniture?: "header" | "footer" | "margin";
        headingLevel?: number;
        lines: TextLine[];
        tableIndex?: number;
        text: string;
    }
    Index
    bbox: Box

    Union of line bounds in canonical page points.

    furniture?: "header" | "footer" | "margin"

    Page furniture: a running header or footer (journal line, running title, page number, copyright or download notice), inferred from its place at the page edge, its separation from the text and repetition across pages, or a margin stamp: text set at a quarter turn along a side edge (a download notice, a preprint identifier). The block stays in the text; toMarkdown can leave it out (furniture: false).

    headingLevel?: number

    Heading rank on its page when this block was inferred to be a heading, 1 for the largest type: short lines set larger than the page's body text, or bold where it is not. A heuristic, not tagged PDF structure.

    lines: TextLine[]

    Lines in deterministic geometric reading order.

    tableIndex?: number

    Index into TextPage.tables when this block is a detected table.

    text: string

    Text derived from this block’s ordered lines.