puppeteer/website/versioned_docs/version-19.5.0/api/puppeteer.screenshotoptions.omitbackground.md
2023-01-09 10:58:41 +01:00

311 B

sidebar_label
ScreenshotOptions.omitBackground

ScreenshotOptions.omitBackground property

Hides default white background and allows capturing screenshots with transparency.

Signature:

interface ScreenshotOptions {
  omitBackground?: boolean;
}

Default value:

false