pdfrx_web
    Preparing search index...

    Type Alias LayoutPagesFn

    LayoutPagesFn: (
        pages: readonly PageGeometry[],
        options: { margin: number },
    ) => PageLayout

    A custom page-layout function (see PdfrxViewerOptions.layoutPages). Given the page geometries and the resolved margin, it returns a PageLayout: each page's rect in document coordinates (y-down) and the total document size. @pdfrx/viewer-core exports layoutPagesVertical / layoutPagesHorizontal as ready-made implementations and building blocks.

    Type Declaration