"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[71740],{3905:(e,r,t)=>{t.d(r,{Zo:()=>l,kt:()=>d});varn=t(67294);functionp(e,r,t){returnrine?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}functiono(e,r){vart=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){returnObject.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}returnt}functioni(e){for(varr=1;r<arguments.length;r++){vart=null!=arguments[r]?arguments[r]:{};r%2?o(Object(t),!0).forEach((function(r){p(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}returne}functiona(e,r){if(null==e)return{};vart,n,p=function(e,r){if(null==e)return{};vart,n,p={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(p[t]=e[t]);returnp}(e,r);if(Object.getOwnPropertySymbols){varo=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(p[t]=e[t])}returnp}vars=n.createContext({}),c=function(e){varr=n.useContext(s),t=r;returne&&(t="function"==typeofe?e(r):i(i({},r),e)),t},l=function(e){varr=c(e.components);returnn.createElement(s.Provider,{value:r},e.children)},f={inlineCode:"code",wrapper:function(e){varr=e.children;returnn.createElement(n.Fragment,{},r)}},u=n.forwardRef((function(e,r){vart=e.components,p=e.mdxType,o=e.originalType,s=e.parentName,l=a(e,["components","mdxType","originalType","parentName"]),u=c(t),d=p,y=u["".concat(s,".").concat(d)]||u[d]||f[d]||o;returnt?n.createElement(y,i(i({ref:r},l),{},{components:t})):n.createElement(y,i({ref:r},l))}));functiond(e,r){vart=arguments,p=r&&r.mdxType;if("string"==typeofe||p){varo=t.length,i=newArray(o);i[0]=u;vara={};for(varsinr)hasOwnProperty.call(r,s)&&(a[s]=r[s]);a.originalType=e,a.mdxType="string"==typeofe?e:p,i[1]=a;for(varc=2;c<o;c++)i[c]=t[c];returnn.createElement.apply(null,i)}returnn.createElement.apply(null,t)}u.displayName="MDXCreateElement"},47694:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>i,metadata:()=>s,toc:()=>l});t(67294);varn=t(3905);functionp(){returnp=Object.assign||function(e){for(varr=1;r<arguments.length;r++){vart=arguments[r];for(varnint)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}returne},p.apply(this,arguments)}functiono(e,r){if(null==e)return{};vart,n,p=function(e,r){if(null==e)return{};vart,n,p={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(p[t]=e[t]);returnp}(e,r);if(Object.getOwnPropertySymbols){varo=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(p[t]=e[t])}returnp}consti={sidebar_label:"PDFOptions.preferCSSPageSize"},a="PDFOptions.preferCSSPageSize property",s={unversionedId:"api/puppeteer.pdfoptions.prefercsspagesize",id:"version-19.0.0/api/puppeteer.pdfoptions.prefercsspagesize",title:"PDFOptions.preferCSSPageSize property",description:"Give any CSS @page size declared in the page priority over what is declared in the width or height or format option.",source:"@site/versioned_docs/version-19.0.0/api/puppeteer.pdfoptions.prefercsspagesize.md",sourceDirName:"api",slug:"/api/puppeteer.pdfoptions.prefercsspagesize",permalink:"/api/puppeteer.pdfoptions.prefercsspagesize",draft:!1,tags:[],version:"19.0.0",frontMatter:{sidebar_label:"PDFOptions.preferCSSPageSize"},sidebar:"sidebar",previous:{title:"PDFOptions.path",permalink:"/api/puppeteer.pdfoptions.path"},next:{title:"PDFOptions.printBackground",permalink:"/api/puppeteer.pdfoptions.printbackground"}},c={},l=[],f={toc:l};functionu(e){var{components:r}=e,t=o(e,["components"]);return(0,n.kt)("wrapper",p({},f,t,{components:r,mdxType:"MDXLayout"}),(0,n.kt)("h1",p({},{id:"pdfoptionsprefercsspagesize-property"}),"PDFOptions.preferCSSPageSize property"),(0,n.kt)("p",null,"