ComPDFKit Web SDK
    Preparing search index...

    Interface PrintDefaults

    Options of UI.setDefaultPrintOptions; merged with the defaults already set.

    interface PrintDefaults {
        includeAnnotations?: boolean;
        includeComments?: boolean;
        maintainPageOrientation?: boolean;
        margins?: string;
        pageScaling?: "fit" | "actualSize";
    }
    Index
    includeAnnotations?: boolean

    Whether print() and the print button include annotations and form fields; true by default.

    includeComments?: boolean

    Reserved; currently has no effect (there is no printed comments page). Warns when true.

    maintainPageOrientation?: boolean

    Reserved; currently has no effect (each page is already printed in its own orientation). Warns when true.

    margins?: string

    Page margins: one to four lengths in CSS margin shorthand order, for example "0.5in" or "0.5in 0.4in 0.3in 0.2in" (units in, cm, mm, pt, px or pc); 0 by default.

    pageScaling?: "fit" | "actualSize"

    How pages are sized on the paper: 'fit' (default) scales every page to fill the printable area; 'actualSize' prints each page at its own size (1 pt = 1/72 in, centered horizontally), so cropped or smaller pages stay smaller; pages larger than the paper are scaled down to fit. Not applied to embedded printing (UI.useEmbeddedPrint), where the browser's print dialog offers its own scaling.