@qrcommunication/gigapdf-lib — SDK API reference - v0.110.3
    Preparing search index...

    Interface ViewerPreferences

    Authoring options for the catalog /ViewerPreferences dictionary (ISO 32000-1 §12.2) — UX hints a reader honours when it opens the document.

    Every field is optional: an omitted (or undefined) field leaves whatever the document already had untouched; a boolean sets the corresponding key. Passed to GigaPdfDoc.setViewerPreferences.

    interface ViewerPreferences {
        hideToolbar?: boolean;
        hideMenubar?: boolean;
        hideWindowUI?: boolean;
        fitWindow?: boolean;
        centerWindow?: boolean;
        displayDocTitle?: boolean;
        direction?: "L2R" | "R2L";
    }
    Index

    Properties

    hideToolbar?: boolean

    /HideToolbar — hide the reader's tool bars.

    hideMenubar?: boolean

    /HideMenubar — hide the reader's menu bar.

    hideWindowUI?: boolean

    /HideWindowUI — hide scroll bars / navigation controls, page only.

    fitWindow?: boolean

    /FitWindow — resize the window to fit the first page.

    centerWindow?: boolean

    /CenterWindow — centre the document window on screen.

    displayDocTitle?: boolean

    /DisplayDocTitle — show the doc title (not the file name) in the title bar.

    direction?: "L2R" | "R2L"

    /Direction — predominant reading order: "L2R" or "R2L".