docx
    Preparing search index...

    Type Alias PageLayout

    A page of a document, and what is on it. Lengths are in pixels.

    type PageLayout = {
        body: readonly BlockLayout[];
        endnotes: readonly NoteLayout[];
        footer?: "default" | "first" | "even";
        footnotes: readonly NoteLayout[];
        guesses?: readonly string[];
        header?: "default" | "first" | "even";
        height: number;
        pageNumber?: string;
        section: number;
        textRunsDown?: "fromRight" | "fromLeft";
        width: number;
    }
    Index
    body: readonly BlockLayout[]

    The paragraphs and tables of the body on the page, or the parts of them on it, in order

    endnotes: readonly NoteLayout[]

    The endnotes on the page, which follow the body

    footer?: "default" | "first" | "even"

    Which of its section's footers the page shows, in the same way

    footnotes: readonly NoteLayout[]

    The footnotes at the bottom of the page, in order: the rest of one that goes on from the page before comes first

    guesses?: readonly string[]

    What the layout guessed at on the page, when it was asked to guess: why it would have stopped there, such as "a font not in the width tables", once each. From there on, the lines may not be where Word puts them

    header?: "default" | "first" | "even"

    Which of its section's headers the page shows, as a section's headers names them: the first page's, the even pages', or the default. A section that gives none of a kind shows the one of the section before. None when the page has no header

    height: number
    pageNumber?: string

    The page's number, as the page shows it, such as "3" or "iv". None when Word's isn't known: when its section's page numbers start with a chapter number, or are in a format the layout doesn't write

    section: number

    The section the page starts in, counted from 0

    textRunsDown?: "fromRight" | "fromLeft"

    When its text runs down the page, as in Chinese and Japanese, whether its lines go across it from the right or from the left. Each line is then a line down the page: its x and y are the top left of its room, its width how far across the page the line is, and its height how far down it the room is, its text going textWidth down from its top

    width: number

    The size of the page