puppeteer/new-docs/puppeteer.protocol.page.printtopdfrequest.prefercsspagesize.md

14 lines
662 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [Page](./puppeteer.protocol.page.md) &gt; [PrintToPDFRequest](./puppeteer.protocol.page.printtopdfrequest.md) &gt; [preferCSSPageSize](./puppeteer.protocol.page.printtopdfrequest.prefercsspagesize.md)
## Protocol.Page.PrintToPDFRequest.preferCSSPageSize property
Whether or not to prefer page size as defined by css. Defaults to false, in which case the content will be scaled to fit the paper size.
<b>Signature:</b>
```typescript
preferCSSPageSize?: boolean;
```