PDF Web SDK Documentation

Comprehensive Guide for Developers: UI & SDK Integration, Configuration, and API Reference

PDF Web SDK
    Preparing search index...

    Interface IDocumentViewState

    Where the reader had got to in a document, kept so reopening the same file resumes it instead of starting over. Written when the document closes, replayed when it opens again.

    interface IDocumentViewState {
        layout: DocumentViewModeEnum;
        page: number;
        pageView: PdfPageView;
        zoom: number;
    }
    Index

    Properties

    How the pages were laid out (continuous, facing, …).

    page: number

    Zero-based index of the page in view when the document was closed.

    pageView: PdfPageView

    The fit the zoom came from, so "fit width" stays fit to width on a resized window.

    zoom: number

    Zoom factor at that moment — 1 being 100%.