ComPDFKit Web SDK
    Preparing search index...

    Function setLayoutMode

    • Sets the page layout of the active document viewer. Unknown values are ignored with a warning.

      Parameters

      • layoutMode: string

        One of UI.LayoutMode except 'Custom':

        • 'Single': one page at a time.
        • 'Continuous': all pages in one scrolling column.
        • 'Facing': two pages side by side, one pair at a time.
        • 'FacingContinuous': two pages side by side, all pairs in one scrolling column.
        • 'CoverFacing': like 'Facing', with the first page on its own as a cover.
        • 'Cover': like 'FacingContinuous', with the first page on its own as a cover.

      Returns void

      instance.UI.setLayoutMode(instance.UI.LayoutMode.FacingContinuous);