Skip to content

Commit 96fe9a2

Browse files
Update src/content/docs/browser-rendering/quick-actions-rest-api/pdf-endpoint.mdx
Co-authored-by: Sofia <[email protected]>
1 parent 4653fd5 commit 96fe9a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/content/docs/browser-rendering/quick-actions-rest-api/pdf-endpoint.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-
2727

2828
## Advanced usage
2929

30+
Navigate to `https://example.com`, first setting an additional HTTP request header and configuring the page size (`viewport`). Then, wait until there are no more than 2 network connections for at least 500 ms, or until the maximum timeout of 4500 ms is reached, before considering the page loaded and returning the rendered PDF document.
31+
32+
The `goToOptions` parameter exposes most of [Puppeteer'd API](https://pptr.dev/api/puppeteer.gotooptions).
33+
3034
```bash
3135
curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-rendering/pdf' \
3236
-H 'Authorization: Bearer <apiToken>' \

0 commit comments

Comments
 (0)