puppeteer/new-docs/puppeteer.pdfoptions.prefercsspagesize.md
Jack Franklin 9fdf2ba280
chore(docs): migrate page.pdf() docs (#6228)
Also took the opportunity to pull out the PDF types into their own file
to clear up `Page.ts` slightly and give the PDF code a more natural
place to live.
2020-07-17 13:58:56 +01:00

14 lines
497 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [PDFOptions](./puppeteer.pdfoptions.md) &gt; [preferCSSPageSize](./puppeteer.pdfoptions.prefercsspagesize.md)
## 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.
<b>Signature:</b>
```typescript
preferCSSPageSize?: boolean;
```