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[];
        header?: "default" | "first" | "even";
        height: number;
        pageNumber?: string;
        section: number;
        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

    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

    width: number

    The size of the page