Wait for the pageFunction to execute in the page. If the pageFunction doesn't execute successfully after the timeout milliseconds of waiting, the request will continue.
Changes the timezone of the page. See ICU’s metaZones.txt for a list of supported timezone IDs.
Was this page helpful?
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Doczilla","colors":{"primary":"#17E286","light":"#17E286","dark":"#17E286"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/doczilla/yA67lL7oehM3XiOm/images/logo.svg?fit=max\u0026auto=format\u0026n=yA67lL7oehM3XiOm\u0026q=85\u0026s=29829af5c66efb627f6a2394dd7e4fcc","dark":"https://mintcdn.com/doczilla/yA67lL7oehM3XiOm/images/logo.svg?fit=max\u0026auto=format\u0026n=yA67lL7oehM3XiOm\u0026q=85\u0026s=29829af5c66efb627f6a2394dd7e4fcc","href":"https://doczilla.app"},"api":{"openapi":"api-reference/openapi.json"},"appearance":{"default":"dark","strict":true},"background":{"decoration":null,"color":{"light":"#000","dark":"#000"}},"navbar":{"links":[{"label":"Login","href":"https://doczilla.app/login"}],"primary":{"type":"button","label":"Sign up","href":"https://doczilla.app/signup"}},"footer":{"socials":{"github":"https://github.com/doczilla-app","website":"https://doczilla.app"},"links":[{"header":null,"items":[{"label":"Pricing","href":"https://doczilla.app/pricing"},{"label":"PDF API","href":"https://doczilla.app/features/pdf-api"},{"label":"Screenshot API","href":"https://doczilla.app/features/screenshot-api"}]},{"header":null,"items":[{"label":"Blog","href":"https://doczilla.app/blog"},{"label":"About us","href":"https://doczilla.app/about"},{"label":"Privacy Policy","href":"https://doczilla.app/privacy"},{"label":"Terms of Service","href":"https://doczilla.app/terms"}]},{"header":null,"items":[{"label":"Contact","href":"mailto:contact@doczilla.app"},{"label":"Community","href":"/community"},{"label":"Examples","href":"https://doczilla.app/terms"}]}]},"integrations":{"posthog":{"apiKey":"phc_YhKaViejsEL77Sp2WhzFvU4XArynP0nwT7cm4vp8fY6","apiHost":"https://eu.posthog.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"doczilla","hasAudioNarration":false,"actualSubdomain":"doczilla","customDomains":["docs.doczilla.app"],"gitSource":{"type":"github","owner":"doczilla-app","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e61133a4518725aab129","collectionId":"91be9ac5-be07-45b6-9dbd-d056ca1eb385","schemaVersion":"v2"},"feedback":{"thumbs":true,"issues":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a21e61133a4518725aab129:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Documentation","count":28},{"language":"default","tag":"Examples","count":13},{"language":"default","tag":"Libraries","count":6},{"language":"default","tag":"Manage Templates","count":5},{"language":"default","tag":"API Documentation","count":5},{"language":"default","tag":"Get Started","count":4},{"language":"default","tag":"Screenshots","count":4},{"language":"default","tag":"PDFs","count":4},{"language":"default","tag":"Templating","count":4},{"language":"default","tag":"PDF","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/page-options","slug":"/api-reference/page-options","pageMetadata":{"title":"Page options","description":"All the available page options for the PDF/screenshot API endpoints.","openapi-schema":"PageOptions","href":"/api-reference/page-options","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"All the available page options for the PDF/screenshot API endpoints.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{Warning}=_components;if(!Warning)_missingMdxReference(`Warning`,true);return _jsx(Warning,{children:_jsxs(_components.p,{children:[`Either `,_jsx(_components.code,{children:`page.url`}),`, `,_jsx(_components.code,{children:`page.html`}),` or `,_jsx(_components.code,{children:`page.htmlTemplate`}),` needs to be set, they cannot be used at the same time!`]})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Page options","description":"All the available page options for the PDF/screenshot API endpoints.","openapi-schema":"PageOptions","href":"/api-reference/page-options","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"schemaData":{"type":"object","properties":{"url":{"oneOf":[{"type":"string","description":"URL to go to. Should include the scheme, e.g. `https://`","uniqueKey":"url.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to go to. Should include the scheme, e.g. `https://`","uniqueKey":"url.oneOf.1","typeLabel":"null"}],"uniqueKey":"url","typeLabel":"string | null"},"html":{"oneOf":[{"type":"string","description":"HTML to render. Needs to be base64 encoded!","uniqueKey":"html.oneOf.0","typeLabel":"string"},{"type":"null","description":"HTML to render. Needs to be base64 encoded!","uniqueKey":"html.oneOf.1","typeLabel":"null"}],"uniqueKey":"html","typeLabel":"string | null"},"htmlTemplate":{"oneOf":[{"type":"string","description":"HTML template to render, uses [Handlebars](https://handlebarsjs.com/) to render your HTML together with the provided `templateData`. Needs to be base64 encoded!","uniqueKey":"htmlTemplate.oneOf.0","typeLabel":"string"},{"type":"null","description":"HTML template to render, uses [Handlebars](https://handlebarsjs.com/) to render your HTML together with the provided `templateData`. Needs to be base64 encoded!","uniqueKey":"htmlTemplate.oneOf.1","typeLabel":"null"}],"uniqueKey":"htmlTemplate","typeLabel":"string | null"},"templateData":{"oneOf":[{"type":"object","description":"Template data, only used in combination with `page.htmlTemplate`.","uniqueKey":"templateData.oneOf.0","typeLabel":"object"},{"type":"null","description":"Template data, only used in combination with `page.htmlTemplate`.","uniqueKey":"templateData.oneOf.1","typeLabel":"null"}],"uniqueKey":"templateData","typeLabel":"object | null"},"waitUntil":{"type":"string","example":"auto","description":"When to consider waiting succeeds.\n- `auto` our smart waiting option that can handle 90% of the cases.\n- `load` waits for the 'load' event.\n- `domcontentloaded` waits for the 'DOMContentLoaded' event.\n- `networkidle0` waits till there are no more than 0 network connections for at least `500` ms.\n- `networkidle2` waits till there are no more than 2 network connections for at least `500` ms. ","enum":["auto","load","domcontentloaded","networkidle0","networkidle2"],"default":"auto","uniqueKey":"waitUntil","typeLabel":"enum\u003cstring>"},"waitForMilliseconds":{"oneOf":[{"type":"number","description":"Wait for a certain amount of milliseconds before the request continues.","maximum":5000,"minimum":0,"uniqueKey":"waitForMilliseconds.oneOf.0","typeLabel":"number"},{"type":"null","description":"Wait for a certain amount of milliseconds before the request continues.","maximum":5000,"minimum":0,"uniqueKey":"waitForMilliseconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"waitForMilliseconds","typeLabel":"number | null"},"waitForSelector":{"oneOf":[{"type":"object","description":"Wait for the [selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors) to appear in page. If the [selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors) doesn't appear after the `timeout` milliseconds of waiting, the request will continue.","required":["selector"],"properties":{"selector":{"type":"string","description":"The [selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors) of an element to wait for.","minLength":1,"maxLength":1024,"isRequired":true,"uniqueKey":"waitForSelector.oneOf.0.selector","typeLabel":"string"},"options":{"oneOf":[{"type":"object","description":"Options for configuring waiting behavior.","properties":{"visible":{"type":"boolean","example":false,"description":"Wait for the selected element to be present in DOM and to be visibleAn element is considered to be visible if all of the following is true:\n- the element has [computed styles](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle)\n- the element has a non-empty [bounding client rect](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect)\n- the element's [visibility](https://developer.mozilla.org/en-US/docs/Web/CSS/visibility) is not `hidden` or `collapse`","default":false,"uniqueKey":"waitForSelector.oneOf.0.options.oneOf.0.visible","typeLabel":"boolean"},"hidden":{"type":"boolean","example":false,"description":"Wait for the selected element to not be found in the DOM or to be hidden.An element is considered to be hidden if at least one of the following is true:\n- the element has no [computed styles](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle)\n- the element has an empty [bounding client rect](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect)\n- the element's [visibility](https://developer.mozilla.org/en-US/docs/Web/CSS/visibility) is `hidden` or `collapse`","default":false,"uniqueKey":"waitForSelector.oneOf.0.options.oneOf.0.hidden","typeLabel":"boolean"},"timeout":{"type":"number","example":10000,"description":"Maximum time to wait in milliseconds.","minimum":1,"maximum":30000,"default":10000,"uniqueKey":"waitForSelector.oneOf.0.options.oneOf.0.timeout","typeLabel":"number"}},"uniqueKey":"waitForSelector.oneOf.0.options.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"waitForSelector.oneOf.0.options.oneOf.1","typeLabel":"null"}],"uniqueKey":"waitForSelector.oneOf.0.options","typeLabel":"object | null"}},"uniqueKey":"waitForSelector.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"waitForSelector.oneOf.1","typeLabel":"null"}],"uniqueKey":"waitForSelector","typeLabel":"object | null"},"waitForFunction":{"oneOf":[{"type":"object","description":"Wait for the `pageFunction` to execute in the page. If the `pageFunction` doesn't execute successfully after the `timeout` milliseconds of waiting, the request will continue.","required":["pageFunction"],"properties":{"pageFunction":{"type":"string","example":"window.innerWidth \u003c 100","description":"Function to be evaluated in browser context until it returns a truthy value.","minLength":1,"maxLength":1024,"isRequired":true,"uniqueKey":"waitForFunction.oneOf.0.pageFunction","typeLabel":"string"},"options":{"oneOf":[{"type":"object","description":"Options for configuring waiting behavior.","properties":{"polling":{"oneOf":[{"type":"string","description":"An interval at which the `pageFunction` is executed, defaults to `raf`. If `polling` is a number, then it is treated as an interval in milliseconds at which the function would be executed. If `polling` is a string, then it can be one of the following values:\n- `raf` to constantly execute `pageFunction` in `requestAnimationFrame` callback. This is the tightest polling mode which is suitable to observe styling changes.\n- `mutation` to execute `pageFunction` on every DOM mutation.","default":"raf","enum":["raf","mutation"],"example":"raf","uniqueKey":"waitForFunction.oneOf.0.options.oneOf.0.polling.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"number","description":"An interval at which the `pageFunction` is executed, defaults to `raf`. If `polling` is a number, then it is treated as an interval in milliseconds at which the function would be executed. If `polling` is a string, then it can be one of the following values:\n- `raf` to constantly execute `pageFunction` in `requestAnimationFrame` callback. This is the tightest polling mode which is suitable to observe styling changes.\n- `mutation` to execute `pageFunction` on every DOM mutation.","default":"raf","example":"raf","uniqueKey":"waitForFunction.oneOf.0.options.oneOf.0.polling.oneOf.1","typeLabel":"number"}],"uniqueKey":"waitForFunction.oneOf.0.options.oneOf.0.polling","typeLabel":"enum\u003cstring> | number"},"timeout":{"type":"number","example":10000,"description":"Maximum time to wait in milliseconds.","minimum":1,"maximum":30000,"default":10000,"uniqueKey":"waitForFunction.oneOf.0.options.oneOf.0.timeout","typeLabel":"number"}},"uniqueKey":"waitForFunction.oneOf.0.options.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"waitForFunction.oneOf.0.options.oneOf.1","typeLabel":"null"}],"uniqueKey":"waitForFunction.oneOf.0.options","typeLabel":"object | null"}},"uniqueKey":"waitForFunction.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"waitForFunction.oneOf.1","typeLabel":"null"}],"uniqueKey":"waitForFunction","typeLabel":"object | null"},"headers":{"oneOf":[{"type":"object","description":"An object containing additional HTTP headers to be sent with every request. All header values must be strings.","example":{"x-foo":"bar"},"uniqueKey":"headers.oneOf.0","typeLabel":"object"},{"type":"null","description":"An object containing additional HTTP headers to be sent with every request. All header values must be strings.","example":{"x-foo":"bar"},"uniqueKey":"headers.oneOf.1","typeLabel":"null"}],"uniqueKey":"headers","typeLabel":"object | null"},"adblock":{"type":"boolean","example":true,"description":"Use our build-in adblocker.","default":true,"uniqueKey":"adblock","typeLabel":"boolean"},"javascript":{"type":"boolean","example":true,"description":"Whether or not to enable JavaScript on the page.","default":true,"uniqueKey":"javascript","typeLabel":"boolean"},"cookies":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Cookie name.","minLength":1,"maxLength":1024,"isRequired":true,"uniqueKey":"cookies.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"type":"string","description":"Cookie value.","minLength":1,"maxLength":4096,"isRequired":true,"uniqueKey":"cookies.oneOf.0.items.[INDEX].value","typeLabel":"string"},"domain":{"type":"string","description":"Cookie domain.","minLength":1,"maxLength":512,"isRequired":true,"uniqueKey":"cookies.oneOf.0.items.[INDEX].domain","typeLabel":"string"},"url":{"oneOf":[{"type":"string","description":"The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie. Should include the scheme, e.g. `https://`","uniqueKey":"cookies.oneOf.0.items.[INDEX].url.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie. Should include the scheme, e.g. `https://`","uniqueKey":"cookies.oneOf.0.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"uniqueKey":"cookies.oneOf.0.items.[INDEX].url","typeLabel":"string | null"},"path":{"oneOf":[{"type":"string","description":"Cookie path.","maxLength":512,"minLength":1,"uniqueKey":"cookies.oneOf.0.items.[INDEX].path.oneOf.0","typeLabel":"string"},{"type":"null","description":"Cookie path.","maxLength":512,"minLength":1,"uniqueKey":"cookies.oneOf.0.items.[INDEX].path.oneOf.1","typeLabel":"null"}],"uniqueKey":"cookies.oneOf.0.items.[INDEX].path","typeLabel":"string | null"},"secure":{"oneOf":[{"type":"boolean","description":"`true` if cookie is secure.","uniqueKey":"cookies.oneOf.0.items.[INDEX].secure.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"`true` if cookie is secure.","uniqueKey":"cookies.oneOf.0.items.[INDEX].secure.oneOf.1","typeLabel":"null"}],"uniqueKey":"cookies.oneOf.0.items.[INDEX].secure","typeLabel":"boolean | null"},"httpOnly":{"oneOf":[{"type":"boolean","description":"`true` if cookie is http-only.","uniqueKey":"cookies.oneOf.0.items.[INDEX].httpOnly.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"`true` if cookie is http-only.","uniqueKey":"cookies.oneOf.0.items.[INDEX].httpOnly.oneOf.1","typeLabel":"null"}],"uniqueKey":"cookies.oneOf.0.items.[INDEX].httpOnly","typeLabel":"boolean | null"},"sameSite":{"oneOf":[{"type":"string","description":"Cookie SameSite type.","enum":["Strict","Lax","None"],"uniqueKey":"cookies.oneOf.0.items.[INDEX].sameSite.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Cookie SameSite type.","enum":["Strict","Lax","None"],"uniqueKey":"cookies.oneOf.0.items.[INDEX].sameSite.oneOf.1","typeLabel":"null"}],"uniqueKey":"cookies.oneOf.0.items.[INDEX].sameSite","typeLabel":"enum\u003cstring> | null"},"expires":{"oneOf":[{"type":"number","description":"Cookie expiration date (UTC time in seconds, counted from January 1, 1970.), session cookie if not set. ","uniqueKey":"cookies.oneOf.0.items.[INDEX].expires.oneOf.0","typeLabel":"number"},{"type":"null","description":"Cookie expiration date (UTC time in seconds, counted from January 1, 1970.), session cookie if not set. ","uniqueKey":"cookies.oneOf.0.items.[INDEX].expires.oneOf.1","typeLabel":"null"}],"uniqueKey":"cookies.oneOf.0.items.[INDEX].expires","typeLabel":"number | null"}},"required":["name","value","domain"],"uniqueKey":"cookies.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Cookies added to the page, Also accepted as string inside `headers.cookie`.","uniqueKey":"cookies.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Cookies added to the page, Also accepted as string inside `headers.cookie`.","uniqueKey":"cookies.oneOf.1","typeLabel":"null"}],"uniqueKey":"cookies","typeLabel":"object[] | null"},"authentication":{"oneOf":[{"type":"object","description":"Provide credentials for `HTTP authentication`.","required":["username","password"],"properties":{"username":{"type":"string","minLength":1,"maxLength":1024,"isRequired":true,"uniqueKey":"authentication.oneOf.0.username","typeLabel":"string"},"password":{"type":"string","minLength":1,"maxLength":4096,"isRequired":true,"uniqueKey":"authentication.oneOf.0.password","typeLabel":"string"}},"uniqueKey":"authentication.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"authentication.oneOf.1","typeLabel":"null"}],"uniqueKey":"authentication","typeLabel":"object | null"},"colorScheme":{"oneOf":[{"type":"string","description":"Color-scheme to set on the page.","maxLength":20,"uniqueKey":"colorScheme.oneOf.0","typeLabel":"string"},{"type":"null","description":"Color-scheme to set on the page.","maxLength":20,"uniqueKey":"colorScheme.oneOf.1","typeLabel":"null"}],"uniqueKey":"colorScheme","typeLabel":"string | null"},"mediaType":{"oneOf":[{"type":"string","description":"Changes the CSS media type of the page.","enum":["screen","print"],"uniqueKey":"mediaType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Changes the CSS media type of the page.","enum":["screen","print"],"uniqueKey":"mediaType.oneOf.1","typeLabel":"null"}],"uniqueKey":"mediaType","typeLabel":"enum\u003cstring> | null"},"timezone":{"oneOf":[{"type":"string","description":"Changes the timezone of the page. See [ICU’s metaZones.txt](https://source.chromium.org/chromium/chromium/deps/icu.git/+/faee8bc70570192d82d2978a71e2a615788597d1:source/data/misc/metaZones.txt) for a list of supported timezone IDs.","uniqueKey":"timezone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Changes the timezone of the page. See [ICU’s metaZones.txt](https://source.chromium.org/chromium/chromium/deps/icu.git/+/faee8bc70570192d82d2978a71e2a615788597d1:source/data/misc/metaZones.txt) for a list of supported timezone IDs.","uniqueKey":"timezone.oneOf.1","typeLabel":"null"}],"uniqueKey":"timezone","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object","example":{"title":"Example","value":{"url":"\u003cstring>","html":"\u003cstring>","htmlTemplate":"\u003cstring>","templateData":{},"waitUntil":"auto","waitForMilliseconds":2500,"waitForSelector":{"selector":"\u003cstring>","options":{"visible":false,"hidden":false,"timeout":10000}},"waitForFunction":{"pageFunction":"window.innerWidth \u003c 100","options":{"polling":"raf","timeout":10000}},"headers":{"x-foo":"bar"},"adblock":true,"javascript":true,"cookies":[{"name":"\u003cstring>","value":"\u003cstring>","domain":"\u003cstring>","url":"\u003cstring>","path":"\u003cstring>","secure":true,"httpOnly":true,"expires":123}],"authentication":{"username":"\u003cstring>","password":"\u003cstring>"},"colorScheme":"\u003cstring>","timezone":"\u003cstring>"}}},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"doczilla","siteName":"Doczilla","title":"Page options - Doczilla","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T23:53:08.875Z","originalFileLocation":"api-reference/page-options.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"All the available page options for the PDF/screenshot API endpoints.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Doczilla\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Page options - Doczilla\">\u003cmeta data-mint-head property=\"og:description\" content=\"All the available page options for the PDF/screenshot API endpoints.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Doczilla\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.doczilla.app/api-reference/page-options\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://doczilla.mintlify.app/_mintlify/api/og/v2?division=API+Documentation\u0026amp;title=Page+options\u0026amp;description=All+the+available+page+options+for+the+PDF%2Fscreenshot+API+endpoints.\u0026amp;theme=30ce5dc97ebef1a375a0ea5f\u0026amp;signature=fe6aa784386e469ed2c094c3476ccdfddc9712d096afe799f9b5bbf698c6aa0f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Page options - Doczilla\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"All the available page options for the PDF/screenshot API endpoints.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://doczilla.mintlify.app/_mintlify/api/og/v2?division=API+Documentation\u0026amp;title=Page+options\u0026amp;description=All+the+available+page+options+for+the+PDF%2Fscreenshot+API+endpoints.\u0026amp;theme=30ce5dc97ebef1a375a0ea5f\u0026amp;signature=fe6aa784386e469ed2c094c3476ccdfddc9712d096afe799f9b5bbf698c6aa0f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Doczilla\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#17E286\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.doczilla.app/api-reference/page-options\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/page-options.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.doczilla.app/#organization\",\"name\":\"Doczilla\",\"url\":\"https://docs.doczilla.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/doczilla/yA67lL7oehM3XiOm/images/logo.svg?fit=max\u0026auto=format\u0026n=yA67lL7oehM3XiOm\u0026q=85\u0026s=29829af5c66efb627f6a2394dd7e4fcc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.doczilla.app#website\",\"name\":\"Doczilla\",\"url\":\"https://docs.doczilla.app\",\"publisher\":{\"@id\":\"https://docs.doczilla.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.doczilla.app/api-reference/page-options#webpage\",\"url\":\"https://docs.doczilla.app/api-reference/page-options\",\"name\":\"Page options\",\"description\":\"All the available page options for the PDF/screenshot API endpoints.\",\"dateModified\":\"2026-01-06T23:53:08.875Z\",\"isPartOf\":{\"@id\":\"https://docs.doczilla.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.doczilla.app/api-reference/page-options#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.doczilla.app/api-reference/page-options#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Documentation\",\"item\":\"https://docs.doczilla.app/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Page options\",\"item\":\"https://docs.doczilla.app/api-reference/page-options\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.doczilla.app/api-reference/page-options#apireference\",\"headline\":\"Page options\",\"name\":\"Page options\",\"description\":\"All the available page options for the PDF/screenshot API endpoints.\",\"url\":\"https://docs.doczilla.app/api-reference/page-options\",\"mainEntityOfPage\":{\"@id\":\"https://docs.doczilla.app/api-reference/page-options#webpage\"},\"dateModified\":\"2026-01-06T23:53:08.875Z\",\"publisher\":{\"@id\":\"https://docs.doczilla.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.doczilla.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Doczilla\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Doczilla","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Community","href":"/community"},{"title":"Common issues","href":"/common-issues"}]},{"group":"Templating","pages":[{"title":"Templating with Handlebars","sidebarTitle":"Introduction","href":"/templating/introduction"},{"title":"Available helpers","href":"/templating/helpers"}]},{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Render PDF or Screenshots from a Template","sidebarTitle":"Templates","description":"Define ones, render repeatedly with templates.","href":"/api-reference/templates"},{"title":"Page options","href":"/api-reference/page-options"},{"title":"PDF options","description":"All available options for the PDF API endpoints.","href":"/api-reference/pdf-options"},{"title":"Screenshot options","href":"/api-reference/screenshot-options"}]},{"group":"Sync/Async options","pages":[{"title":"Storage options","href":"/api-reference/storage-options"},{"title":"Webhook options","href":"/api-reference/webhook-options"},{"title":"Webhook event","href":"/api-reference/webhook-event"}]},{"group":"Screenshot","pages":[{"title":"Create screenshot","openapi":"POST /v1/screenshot","href":"/api-reference/endpoint/screenshot"},{"title":"Create screenshot sync","openapi":"POST /v1/screenshot/sync","href":"/api-reference/endpoint/sync-screenshot"},{"title":"Create screenshot async","openapi":"POST /v1/screenshot/async","href":"/api-reference/endpoint/async-screenshot"}]},{"group":"PDF","pages":[{"title":"Create PDF","openapi":"POST /v1/pdf","href":"/api-reference/endpoint/pdf"},{"title":"Create PDF sync","openapi":"POST /v1/pdf/sync","href":"/api-reference/endpoint/sync-pdf"},{"title":"Create PDF async","openapi":"POST /v1/pdf/async","href":"/api-reference/endpoint/async-pdf"}]},{"group":"Template","pages":[{"title":"From Template","openapi":"POST /v1/template/{id}","href":"/api-reference/endpoint/template"},{"title":"From Template sync","openapi":"POST /v1/template/{id}/sync","href":"/api-reference/endpoint/sync-template"},{"title":"From Template async","openapi":"POST /v1/template/{id}/async","href":"/api-reference/endpoint/async-template"}]},{"group":"Manage Templates","pages":[{"title":"Get all Templates","openapi":"GET /v1/templates","href":"/api-reference/endpoint/list-templates"},{"title":"Create new Template","openapi":"POST /v1/templates","href":"/api-reference/endpoint/create-template"},{"title":"Get Template","openapi":"GET /v1/templates/{id}","href":"/api-reference/endpoint/get-template"},{"title":"Update Template","openapi":"PUT /v1/templates/{id}","href":"/api-reference/endpoint/update-template"},{"title":"Delete Template","openapi":"DELETE /v1/templates/{id}","href":"/api-reference/endpoint/delete-template"}]}]},{"tab":"Examples","pages":[{"title":"Examples","href":"/examples/introduction"}]},{"tab":"Libraries","pages":[{"title":"Libraries","href":"/libraries/nodejs"}]}]},"basePath":"","title":"Page options - Doczilla","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}