PDF Web SDK Documentation

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

PDF Web SDK
    Preparing search index...

    Interface IOpenDocumentOptions

    Options for opening an existing PDF document

    interface IOpenDocumentOptions {
        claims?: readonly string[];
        file: File;
        password?: string;
        path?: string;
        progressCallback?: (progress: number) => void;
        readOnly?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    claims?: readonly string[]

    Claims the file already carries, for a document derived from another — the source's sdk.IDocumentModel.listDocumentClaims plus the operation that produced it (a merge, an OCR result). The WASM core's ledger starts empty for every file it opens, so without this the chain stops at the reopen and the saved result reports no history at all.

    file: File
    password?: string
    path?: string

    Host-app file path of the document — stored on the session and passed to the device save handler.

    progressCallback?: (progress: number) => void
    readOnly?: boolean

    If true, the document will be opened in read-only mode (no editing allowed).