"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[32578],{3905:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});varn=r(67294);functionp(e,t,r){returntine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functioni(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}returnr}functiona(e){for(vart=1;t<arguments.length;t++){varr=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}functiono(e,t){if(null==e)return{};varr,n,p=function(e,t){if(null==e)return{};varr,n,p={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(p[r]=e[r]);returnp}(e,t);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(p[r]=e[r])}returnp}varl=n.createContext({}),s=function(e){vart=n.useContext(l),r=t;returne&&(r="function"==typeofe?e(t):a(a({},t),e)),r},c=function(e){vart=s(e.components);returnn.createElement(l.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){vart=e.children;returnn.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){varr=e.components,p=e.mdxType,i=e.originalType,l=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),f=s(r),d=p,y=f["".concat(l,".").concat(d)]||f[d]||u[d]||i;returnr?n.createElement(y,a(a({ref:t},c),{},{components:r})):n.createElement(y,a({ref:t},c))}));functiond(e,t){varr=arguments,p=t&&t.mdxType;if("string"==typeofe||p){vari=r.length,a=newArray(i);a[0]=f;varo={};for(varlint)hasOwnProperty.call(t,l)&&(o[l]=t[l]);o.originalType=e,o.mdxType="string"==typeofe?e:p,a[1]=o;for(vars=2;s<i;s++)a[s]=r[s];returnn.createElement.apply(null,a)}returnn.createElement.apply(null,r)}f.displayName="MDXCreateElement"},16998:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>o,default:()=>f,frontMatter:()=>a,metadata:()=>l,toc:()=>c});r(67294);varn=r(3905);functionp(){returnp=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varr=arguments[t];for(varninr)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}returne},p.apply(this,arguments)}functioni(e,t){if(null==e)return{};varr,n,p=function(e,t){if(null==e)return{};varr,n,p={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(p[r]=e[r]);returnp}(e,t);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(p[r]=e[r])}returnp}consta={sidebar_label:"PDFOptions.preferCSSPageSize"},o="PDFOptions.preferCSSPageSize property",l={unversionedId:"api/puppeteer.pdfoptions.prefercsspagesize",id:"version-19.7.5/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.7.5/api/puppeteer.pdfoptions.prefercsspagesize.md",sourceDirName:"api",slug:"/api/puppeteer.pdfoptions.prefercsspagesize",permalink:"/api/puppeteer.pdfoptions.prefercsspagesize",draft:!1,tags:[],version:"19.7.5",frontMatter:{sidebar_label:"PDFOptions.preferCSSPageSize"},sidebar:"api",previous:{title:"PDFOptions.path",permalink:"/api/puppeteer.pdfoptions.path"},next:{title:"PDFOptions.printBackground",permalink:"/api/puppeteer.pdfoptions.printbackground"}},s={},c=[{value:"Signature:",id:"signature",level:4},{value:"Default value:",id:"default-value",level:4}],u={toc:c};functionf(e){var{components:t}=e,r=i(e,["components"]);return(0,n.kt)("wrapper",p({},u,r,{components:t,mdxType:"MDXLayout"}),(0,n.kt)("h1",p({},{id:"pdfoption