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

24 lines
430 B
Markdown
Raw Normal View History

---
sidebar_label: Page.pdf
---
# Page.pdf() method
**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;