docx
    Preparing search index...

    Type Alias ISectionOptions

    Options for a document section.

    Each section can have its own headers, footers, and page properties.

    type ISectionOptions = {
        children: readonly FileChild[];
        footers?: { default?: Footer; even?: Footer; first?: Footer };
        headers?: { default?: Header; even?: Header; first?: Header };
        properties?: ISectionPropertiesOptions;
    }
    Index

    Properties

    children: readonly FileChild[]

    Array of content elements (paragraphs, tables, etc.) for this section

    footers?: { default?: Footer; even?: Footer; first?: Footer }

    Optional footer definitions for the section

    Type Declaration

    • Optional Readonlydefault?: Footer

      Default footer for all pages (when first/even not specified).

    • Optional Readonlyeven?: Footer

      Footer for even-numbered pages.

    • Optional Readonlyfirst?: Footer

      Footer for the first page of the section.

    headers?: { default?: Header; even?: Header; first?: Header }

    Optional header definitions for the section

    Type Declaration

    • Optional Readonlydefault?: Header

      Default header for all pages (when first/even not specified).

    • Optional Readonlyeven?: Header

      Header for even-numbered pages.

    • Optional Readonlyfirst?: Header

      Header for the first page of the section.

    Section properties such as page size, margins, and orientation