# PrintOptions

**Kind**: interface | **Module**: [Windows](https://docs.interop.io/desktop/reference/javascript/windows/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/windows/printoptions/index.html

Options for printing web pages.

## Properties

- **`collate`** (`boolean`, optional)
  If `true`, the web page will be collated when printing multiple copies.
- **`color`** (`boolean`, optional) default: `true`
  If `true`, the printed web page will be in color. Set to `false` for grayscale.
- **`copies`** (`number`, optional)
  The number of copies of the web page to print.
- **`deviceName`** (`string`, optional)
  Sets the printer device name to use. Must be the system-defined name and not the user-friendly name.
- **`dpi`** (`{ horizontal?: number; vertical?: number; }`, optional)
  Print resolution in pixels.
- **`duplexMode`** (`"simplex" | "shortEdge" | "longEdge"`, optional)
  Duplex mode for the printed web page.
- **`footer`** (`string`, optional)
  String to be printed as a page footer.
- **`header`** (`string`, optional)
  String to be printed as a page header.
- **`landscape`** (`boolean`, optional) default: `false`
  If `true`, the web page will be printed in landscape mode.
- **`margins`** (`Margins`, optional)
  Margins for the printed web page.
- **`pageRanges`** (`PageRange[]`, optional)
  Page range to print.
- **`pageSize`** (`("A3" | "A4" | "A5" | "Legal" | "Letter" | "Tabloid") | Size`, optional)
  Page size for the printed web page.
- **`pagesPerSheet`** (`number`, optional)
  Number of pages to print per sheet.
- **`printBackground`** (`boolean`, optional) default: `false`
  Prints the background color and image of the web page.
- **`scaleFactor`** (`number`, optional)
  Scale factor of the web page.
- **`silent`** (`boolean`, optional) default: `false`
  If `true`, won't ask the user for print settings.

## Related types

- [Margins](https://docs.interop.io/desktop/reference/javascript/windows/margins/index.md)
- [PageRange](https://docs.interop.io/desktop/reference/javascript/windows/pagerange/index.md)
- [Size](https://docs.interop.io/desktop/reference/javascript/windows/size/index.md)
