ComPDFKit Web SDK
    Preparing search index...

    Interface PrintInBackgroundOptions

    Options of UI.printInBackground.

    interface PrintInBackgroundOptions {
        includeAnnotations?: boolean;
        includeComments?: boolean;
        isPrintCurrentView?: boolean;
        maintainPageOrientation?: boolean;
        onProgress?: (pageNumber: number) => void;
        pagesToPrint?: number[];
    }
    Index
    includeAnnotations?: boolean

    Include annotations and form fields; false by default (print() and the print button include them).

    includeComments?: boolean

    The three options below have no counterpart here (no comments page, no current-view printing, output already follows each page's orientation); they are ignored with a warning.

    isPrintCurrentView?: boolean

    Not supported; ignored with a warning when true.

    maintainPageOrientation?: boolean

    Not supported; ignored with a warning when true.

    onProgress?: (pageNumber: number) => void

    Called once per rendered page; the second argument (the page's HTML element) is not provided.

    pagesToPrint?: number[]

    Print only these pages (1-based); all pages by default. An empty array warns and prints nothing.