puppeteer/website/versioned_docs/version-19.6.0/api/puppeteer.page.pdf.md

24 lines
431 B
Markdown
Raw Normal View History

---
sidebar_label: Page.pdf
---
# Page.pdf() method
2022-10-24 14:31:12 +00:00
#### Signature:
```typescript
class Page {
pdf(options?: PDFOptions): Promise<Buffer>;
}
```
## Parameters
| Parameter | Type | Description |
| --------- | --------------------------------------- | ----------------- |
| options | [PDFOptions](./puppeteer.pdfoptions.md) | <i>(Optional)</i> |
**Returns:**
Promise&lt;Buffer&gt;