AboutSupportDeveloper GuideVersion 40.128.82.13

Margins configuration for printing.

interface Margins {
    bottom?: number;
    left?: number;
    marginType?:
        | "none"
        | "default"
        | "printableArea"
        | "custom";
    right?: number;
    top?: number;
}

Properties

bottom?: number

The bottom margin of the printed webpage, in pixels.

left?: number

The left margin of the printed webpage, in pixels.

marginType?:
    | "none"
    | "default"
    | "printableArea"
    | "custom"

The margin type. If custom is chosen, you will also need to specify top, bottom, left, and right.

right?: number

The right margin of the printed webpage, in pixels.

top?: number

The top margin of the printed webpage, in pixels.