puppeteer/website/versioned_docs/version-19.7.3/api/puppeteer.pdfoptions.prefercsspagesize.md

20 lines
394 B
Markdown
Raw Normal View History

---
sidebar_label: PDFOptions.preferCSSPageSize
---
# PDFOptions.preferCSSPageSize property
Give any CSS `@page` size declared in the page priority over what is declared in the `width` or `height` or `format` option.
2022-10-24 14:31:12 +00:00
#### Signature:
```typescript
interface PDFOptions {
preferCSSPageSize?: boolean;
}
```
2022-10-24 14:31:12 +00:00
#### Default value:
`false`, which will scale the content to fit the paper size.