Type alias PrintOptions

PrintOptions: {
    collate?: boolean;
    color?: boolean;
    content?: "self";
    copies?: number;
    deviceName?: string;
    dpi?: Dpi;
    duplexMode?: "simplex" | "shortEdge" | "longEdge";
    landscape?: boolean;
    margins?: Margins;
    pageRanges?: Record<"from" | "to", number>[];
    pagesPerSheet?: number;
    printBackground?: boolean;
    scaleFactor?: number;
    silent?: boolean;
}

Options for printing a webpage in OpenFin.

Type declaration

  • Optional collate?: boolean

    Collates the webpage before printing.

  • Optional color?: boolean

    Prints in full color (greyscale otherwise).

  • Optional content?: "self"
  • Optional copies?: number

    Number of copies to be printed.

  • Optional deviceName?: string

    Name of the printer device to use.

  • Optional dpi?: Dpi

    Dots per inch of the printed webpage.

  • Optional duplexMode?: "simplex" | "shortEdge" | "longEdge"

    Duplex mode of the printed webpage.

  • Optional landscape?: boolean

    Prints in landscape mode (portrait otherwise).

  • Optional margins?: Margins

    Margins for printed webpage.

  • Optional pageRanges?: Record<"from" | "to", number>[]

    Page range to print.

  • Optional pagesPerSheet?: number

    Number of webpage pages to print per printer sheet.

  • Optional printBackground?: boolean

    Includes the webpage background color and image when printing.

  • Optional scaleFactor?: number

    Scale factor of the printer webpage.

  • Optional silent?: boolean

    Disables prompting the user for print settings.

Generated using TypeDoc