---
title: Get PDF.
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/typescript)

[Browser Rendering](https://developers.cloudflare.com/api/typescript/resources/browser_rendering)

[PDF](https://developers.cloudflare.com/api/typescript/resources/browser_rendering/subresources/pdf)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Get PDF.

client.browserRendering.pdf.create(PDFCreateParamsparams, RequestOptionsoptions?): Response

POST/accounts/{account\_id}/browser-rendering/pdf

Fetches rendered PDF from provided URL or HTML. Check available options like `gotoOptions` and `waitFor*` to control page load behaviour.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Browser Rendering Write`

##### ParametersExpand Collapse

<details>

<summary>

PDFCreateParams = Variant0| Variant1

</summary>

<details>

<summary>

PDFCreateParamsBase {account\_id, url, browser, 21 more }

</summary>

account\_id: string

Path param: Account ID.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20account_id">Link to this property</a>

url: string

Body param

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20url">Link to this property</a>

browser?: "kitesurf"

Query param: Rendering backend. Set to <code>kitesurf</code> to use Kitesurf (beta).

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20browser">Link to this property</a>

cacheTTL?: number

Query param: Cache TTL default is 5s. Set to 0 to disable.

maximum86400

minimum0

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cacheTTL">Link to this property</a>

actionTimeout?: number

Body param: The maximum duration allowed for the browser action to complete after the page has loaded (such as taking screenshots, extracting content, or generating PDFs). If this time limit is exceeded, the action stops and returns a timeout error.

maximum120000

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20actionTimeout">Link to this property</a>

<details>

<summary>

addScriptTag?: Array&lt;AddScriptTag&gt;

Body param: Adds a script element into the page with the desired URL or content.

</summary>

id?: string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20addScriptTag%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

content?: string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20addScriptTag%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20content">Link to this property</a>

type?: string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20addScriptTag%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20type">Link to this property</a>

url?: string

formaturi

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20addScriptTag%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20addScriptTag">Link to this property</a>

<details>

<summary>

addStyleTag?: Array&lt;AddStyleTag&gt;

Body param: Adds a <code>&lt;link rel="stylesheet"&gt;</code> tag into the page with the desired URL or a <code>&lt;style type="text/css"&gt;</code> tag with the content.

</summary>

content?: string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20addStyleTag%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20content">Link to this property</a>

url?: string

formaturi

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20addStyleTag%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20addStyleTag">Link to this property</a>

allowRequestPattern?: Array&lt;string&gt;

Body param: Only allow requests that match the provided regex patterns, eg. ’/^.\*.(css)’. Reject rules are applied first.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowRequestPattern">Link to this property</a>

<details>

<summary>

allowResourceTypes?: Array&lt;"document"| "stylesheet"| "image"| 15 more&gt;

Body param: Only allow requests that match the provided resource types, eg. ‘image’ or ‘script’. Reject rules are applied first.

</summary>

One of the following:

"document"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"stylesheet"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"image"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"media"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"font"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

"script"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

"texttrack"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%206">Link to this property</a>

"xhr"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%207">Link to this property</a>

"fetch"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%208">Link to this property</a>

"prefetch"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%209">Link to this property</a>

"eventsource"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2010">Link to this property</a>

"websocket"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2011">Link to this property</a>

"manifest"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2012">Link to this property</a>

"signedexchange"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2013">Link to this property</a>

"ping"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2014">Link to this property</a>

"cspviolationreport"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2015">Link to this property</a>

"preflight"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2016">Link to this property</a>

"other"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2017">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20allowResourceTypes">Link to this property</a>

<details>

<summary>

authenticate?: <a href="https://developers.cloudflare.com/api/typescript/resources/browser_rendering/subresources/pdf/methods/create#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20authenticate%20%3E%20(schema)">Authenticate</a>

Body param: Provide credentials for HTTP authentication.

</summary>

password: string

minLength1

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20authenticate%20%3E%20(schema)%20%3E%20(property)%20password">Link to this property</a>

username: string

minLength1

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20authenticate%20%3E%20(schema)%20%3E%20(property)%20username">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20authenticate">Link to this property</a>

bestAttempt?: boolean

Body param: Attempt to proceed when ‘awaited’ events fail or timeout.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20bestAttempt">Link to this property</a>

<details>

<summary>

cookies?: Array&lt;Cookie&gt;

Body param: Check <a href="https://pptr.dev/api/puppeteer.page.setcookie">options</a>.

</summary>

name: string

Cookie name.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

value: string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20value">Link to this property</a>

domain?: string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20domain">Link to this property</a>

expires?: number

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20expires">Link to this property</a>

httpOnly?: boolean

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20httpOnly">Link to this property</a>

partitionKey?: string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20partitionKey">Link to this property</a>

path?: string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20path">Link to this property</a>

<details>

<summary>

priority?: "Low"| "Medium"| "High"

</summary>

One of the following:

"Low"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20priority%20%3E%20(member)%200">Link to this property</a>

"Medium"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20priority%20%3E%20(member)%201">Link to this property</a>

"High"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20priority%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20priority">Link to this property</a>

sameParty?: boolean

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20sameParty">Link to this property</a>

<details>

<summary>

sameSite?: "Strict"| "Lax"| "None"

</summary>

One of the following:

"Strict"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20sameSite%20%3E%20(member)%200">Link to this property</a>

"Lax"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20sameSite%20%3E%20(member)%201">Link to this property</a>

"None"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20sameSite%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20sameSite">Link to this property</a>

secure?: boolean

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20secure">Link to this property</a>

sourcePort?: number

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20sourcePort">Link to this property</a>

<details>

<summary>

sourceScheme?: "Unset"| "NonSecure"| "Secure"

</summary>

One of the following:

"Unset"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20sourceScheme%20%3E%20(member)%200">Link to this property</a>

"NonSecure"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20sourceScheme%20%3E%20(member)%201">Link to this property</a>

"Secure"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20sourceScheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20sourceScheme">Link to this property</a>

url?: string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20cookies">Link to this property</a>

emulateMediaType?: string

Body param

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20emulateMediaType">Link to this property</a>

<details>

<summary>

gotoOptions?: <a href="https://developers.cloudflare.com/api/typescript/resources/browser_rendering/subresources/pdf/methods/create#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)">GotoOptions</a>

Body param: Check <a href="https://pptr.dev/api/puppeteer.gotooptions">options</a>.

</summary>

referer?: string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)%20%3E%20(property)%20referer">Link to this property</a>

referrerPolicy?: string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)%20%3E%20(property)%20referrerPolicy">Link to this property</a>

timeout?: number

maximum60000

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)%20%3E%20(property)%20timeout">Link to this property</a>

<details>

<summary>

waitUntil?: "load"| "domcontentloaded"| "networkidle0"| "networkidle2"| Array&lt;"load"| "domcontentloaded"| "networkidle0"| "networkidle2"&gt;

</summary>

One of the following:

<details>

<summary>

"load"| "domcontentloaded"| "networkidle0"| "networkidle2"

</summary>

"load"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)%20%3E%20(property)%20waitUntil%20%3E%20(variant)%200%20%3E%20(member)%200">Link to this property</a>

"domcontentloaded"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)%20%3E%20(property)%20waitUntil%20%3E%20(variant)%200%20%3E%20(member)%201">Link to this property</a>

"networkidle0"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)%20%3E%20(property)%20waitUntil%20%3E%20(variant)%200%20%3E%20(member)%202">Link to this property</a>

"networkidle2"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)%20%3E%20(property)%20waitUntil%20%3E%20(variant)%200%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)%20%3E%20(property)%20waitUntil%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

Array&lt;"load"| "domcontentloaded"| "networkidle0"| "networkidle2"&gt;

</summary>

"load"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)%20%3E%20(property)%20waitUntil%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"domcontentloaded"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)%20%3E%20(property)%20waitUntil%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"networkidle0"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)%20%3E%20(property)%20waitUntil%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"networkidle2"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)%20%3E%20(property)%20waitUntil%20%3E%20(variant)%201%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)%20%3E%20(property)%20waitUntil%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions%20%3E%20(schema)%20%3E%20(property)%20waitUntil">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20gotoOptions">Link to this property</a>

html?: string

Body param

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20html">Link to this property</a>

<details>

<summary>

pdfOptions?: <a href="https://developers.cloudflare.com/api/typescript/resources/browser_rendering/subresources/pdf/methods/create#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)">PDFOptions</a>

Body param: Check <a href="https://pptr.dev/api/puppeteer.pdfoptions">options</a>.

</summary>

displayHeaderFooter?: boolean

Whether to show the header and footer.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20displayHeaderFooter">Link to this property</a>

footerTemplate?: string

HTML template for the print footer.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20footerTemplate">Link to this property</a>

<details>

<summary>

format?: "letter"| "legal"| "tabloid"| 8 more

Paper format. Takes priority over width and height if set.

</summary>

One of the following:

"letter"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(member)%200">Link to this property</a>

"legal"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(member)%201">Link to this property</a>

"tabloid"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(member)%202">Link to this property</a>

"ledger"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(member)%203">Link to this property</a>

"a0"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(member)%204">Link to this property</a>

"a1"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(member)%205">Link to this property</a>

"a2"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(member)%206">Link to this property</a>

"a3"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(member)%207">Link to this property</a>

"a4"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(member)%208">Link to this property</a>

"a5"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(member)%209">Link to this property</a>

"a6"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(member)%2010">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20format">Link to this property</a>

headerTemplate?: string

HTML template for the print header.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20headerTemplate">Link to this property</a>

<details>

<summary>

height?: string| number

Sets the height of paper. Can be a number or string with unit.

</summary>

One of the following:

string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20height%20%3E%20(variant)%200">Link to this property</a>

number

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20height%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20height">Link to this property</a>

landscape?: boolean

Whether to print in landscape orientation.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20landscape">Link to this property</a>

<details>

<summary>

margin?: Margin {bottom, left, right, top }

Set the PDF margins. Useful when setting header and footer.

</summary>

<details>

<summary>

bottom?: string| number

</summary>

One of the following:

string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20margin%20%3E%20(property)%20bottom%20%3E%20(variant)%200">Link to this property</a>

number

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20margin%20%3E%20(property)%20bottom%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20margin%20%3E%20(property)%20bottom">Link to this property</a>

<details>

<summary>

left?: string| number

</summary>

One of the following:

string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20margin%20%3E%20(property)%20left%20%3E%20(variant)%200">Link to this property</a>

number

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20margin%20%3E%20(property)%20left%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20margin%20%3E%20(property)%20left">Link to this property</a>

<details>

<summary>

right?: string| number

</summary>

One of the following:

string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20margin%20%3E%20(property)%20right%20%3E%20(variant)%200">Link to this property</a>

number

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20margin%20%3E%20(property)%20right%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20margin%20%3E%20(property)%20right">Link to this property</a>

<details>

<summary>

top?: string| number

</summary>

One of the following:

string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20margin%20%3E%20(property)%20top%20%3E%20(variant)%200">Link to this property</a>

number

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20margin%20%3E%20(property)%20top%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20margin%20%3E%20(property)%20top">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20margin">Link to this property</a>

omitBackground?: boolean

Hides default white background and allows generating pdfs with transparency.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20omitBackground">Link to this property</a>

outline?: boolean

Generate document outline.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20outline">Link to this property</a>

pageRanges?: string

Paper ranges to print, e.g. ‘1-5, 8, 11-13’.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20pageRanges">Link to this property</a>

preferCSSPageSize?: boolean

Give CSS @page size priority over other size declarations.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20preferCSSPageSize">Link to this property</a>

printBackground?: boolean

Set to true to print background graphics.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20printBackground">Link to this property</a>

scale?: number

Scales the rendering of the web page. Amount must be between 0.1 and 2.

maximum2

minimum0.1

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20scale">Link to this property</a>

tagged?: boolean

Generate tagged (accessible) PDF.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20tagged">Link to this property</a>

timeout?: number

Timeout in milliseconds.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20timeout">Link to this property</a>

<details>

<summary>

width?: string| number

Sets the width of paper. Can be a number or string with unit.

</summary>

One of the following:

string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20width%20%3E%20(variant)%200">Link to this property</a>

number

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20width%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions%20%3E%20(schema)%20%3E%20(property)%20width">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20pdfOptions">Link to this property</a>

rejectRequestPattern?: Array&lt;string&gt;

Body param: Block undesired requests that match the provided regex patterns, eg. ’/^.\*.(css)’.

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectRequestPattern">Link to this property</a>

<details>

<summary>

rejectResourceTypes?: Array&lt;"document"| "stylesheet"| "image"| 15 more&gt;

Body param: Block undesired requests that match the provided resource types, eg. ‘image’ or ‘script’.

</summary>

One of the following:

"document"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"stylesheet"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"image"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"media"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"font"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

"script"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

"texttrack"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%206">Link to this property</a>

"xhr"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%207">Link to this property</a>

"fetch"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%208">Link to this property</a>

"prefetch"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%209">Link to this property</a>

"eventsource"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2010">Link to this property</a>

"websocket"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2011">Link to this property</a>

"manifest"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2012">Link to this property</a>

"signedexchange"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2013">Link to this property</a>

"ping"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2014">Link to this property</a>

"cspviolationreport"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2015">Link to this property</a>

"preflight"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2016">Link to this property</a>

"other"

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2017">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20rejectResourceTypes">Link to this property</a>

setExtraHTTPHeaders?: Record&lt;string, string&gt;

Body param

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20setExtraHTTPHeaders">Link to this property</a>

setJavaScriptEnabled?: boolean

Body param

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20setJavaScriptEnabled">Link to this property</a>

userAgent?: string

Body param

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20userAgent">Link to this property</a>

<details>

<summary>

viewport?: <a href="https://developers.cloudflare.com/api/typescript/resources/browser_rendering/subresources/pdf/methods/create#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20viewport%20%3E%20(schema)">Viewport</a>

Body param: Check <a href="https://pptr.dev/api/puppeteer.page.setviewport">options</a>.

</summary>

height: number

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20viewport%20%3E%20(schema)%20%3E%20(property)%20height">Link to this property</a>

width: number

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20viewport%20%3E%20(schema)%20%3E%20(property)%20width">Link to this property</a>

deviceScaleFactor?: number

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20viewport%20%3E%20(schema)%20%3E%20(property)%20deviceScaleFactor">Link to this property</a>

hasTouch?: boolean

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20viewport%20%3E%20(schema)%20%3E%20(property)%20hasTouch">Link to this property</a>

isLandscape?: boolean

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20viewport%20%3E%20(schema)%20%3E%20(property)%20isLandscape">Link to this property</a>

isMobile?: boolean

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20viewport%20%3E%20(schema)%20%3E%20(property)%20isMobile">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20viewport">Link to this property</a>

<details>

<summary>

waitForSelector?: <a href="https://developers.cloudflare.com/api/typescript/resources/browser_rendering/subresources/pdf/methods/create#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20waitForSelector%20%3E%20(schema)">WaitForSelector</a>

Body param: Wait for the selector to appear in page. Check <a href="https://pptr.dev/api/puppeteer.page.waitforselector">options</a>.

</summary>

selector: string

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20waitForSelector%20%3E%20(schema)%20%3E%20(property)%20selector">Link to this property</a>

hidden?: true

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20waitForSelector%20%3E%20(schema)%20%3E%20(property)%20hidden">Link to this property</a>

timeout?: number

maximum120000

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20waitForSelector%20%3E%20(schema)%20%3E%20(property)%20timeout">Link to this property</a>

visible?: true

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20waitForSelector%20%3E%20(schema)%20%3E%20(property)%20visible">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20waitForSelector">Link to this property</a>

waitForTimeout?: number

Body param: Waits for a specified timeout before continuing.

maximum120000

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20waitForTimeout">Link to this property</a>

</details>

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create.typescript.base_params">Link to this property</a>

Variant0 extends PDFCreateParamsBase {account\_id, url, browser, 21 more }

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%200">Link to this property</a>

Variant1 extends PDFCreateParamsBase {account\_id, url, browser, 21 more }

<a href="#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(params)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create.typescript.params>)

##### ReturnsExpand Collapse

unnamed\_schema\_15 = Response

[Link to this property](<#(resource)%20browser_rendering.pdf%20%3E%20(method)%20create%20%3E%20(network%20schema)>)

### Get PDF.

TypeScript

HTTPTypeScriptPythonGoTerraform

```
import Cloudflare from 'cloudflare';

const client = new Cloudflare({
  apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});

const pdf = await client.browserRendering.pdf.create({
  account_id: 'account_id',
  url: 'https://www.example.com/',
});

console.log(pdf);

const content = await pdf.blob();
console.log(content);
```

429 example

```
{
  "errors": [
    {
      "code": 2001,
      "message": "Rate limit exceeded"
    }
  ],
  "success": false
}
```

##### Returns Examples

429 example

```
{
  "errors": [
    {
      "code": 2001,
      "message": "Rate limit exceeded"
    }
  ],
  "success": false
}
```