"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[73516],{3905:(e,t,r)=>{r.d(t,{Zo:()=>l,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}functiono(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}functiona(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}vars=n.createContext({}),c=function(e){vart=n.useContext(s),r=t;returne&&(r="function"==typeofe?e(t):o(o({},t),e)),r},l=function(e){vart=c(e.components);returnn.createElement(s.Provider,{value:t},e.children)},f={inlineCode:"code",wrapper:function(e){vart=e.children;returnn.createElement(n.Fragment,{},t)}},u=n.forwardRef((function(e,t){varr=e.components,p=e.mdxType,i=e.originalType,s=e.parentName,l=a(e,["components","mdxType","originalType","parentName"]),u=c(r),d=p,g=u["".concat(s,".").concat(d)]||u[d]||f[d]||i;returnr?n.createElement(g,o(o({ref:t},l),{},{components:r})):n.createElement(g,o({ref:t},l))}));functiond(e,t){varr=arguments,p=t&&t.mdxType;if("string"==typeofe||p){vari=r.length,o=newArray(i);o[0]=u;vara={};for(varsint)hasOwnProperty.call(t,s)&&(a[s]=t[s]);a.originalType=e,a.mdxType="string"==typeofe?e:p,o[1]=a;for(varc=2;c<i;c++)o[c]=r[c];returnn.createElement.apply(null,o)}returnn.createElement.apply(null,r)}u.displayName="MDXCreateElement"},61030:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>o,default:()=>f,frontMatter:()=>i,metadata:()=>a,toc:()=>c});varn=r(87462),p=(r(67294),r(3905));consti={sidebar_label:"PDFOptions.preferCSSPageSize"},o="PDFOptions.preferCSSPageSize property",a={unversionedId:"api/puppeteer.pdfoptions.prefercsspagesize",id:"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/../docs/api/puppeteer.pdfoptions.prefercsspagesize.md",sourceDirName:"api",slug:"/api/puppeteer.pdfoptions.prefercsspagesize",permalink:"/next/api/puppeteer.pdfoptions.prefercsspagesize",draft:!1,tags:[],version:"current",frontMatter:{sidebar_label:"PDFOptions.preferCSSPageSize"},sidebar:"sidebar",previous:{title:"PDFOptions.path",permalink:"/next/api/puppeteer.pdfoptions.path"},next:{title:"PDFOptions.printBackground",permalink:"/next/api/puppeteer.pdfoptions.printbackground"}},s={},c=[],l={toc:c};functionf(e){let{components:t,...r}=e;return(0,p.kt)("wrapper",(0,n.Z)({},l,r,{components:t,mdxType:"MDXLayout"}),(0,p.kt)("h1",{id:"pdfoptionsprefercsspagesize-property"},"PDFOptions.preferCSSPageSize property"),(0,p.kt)("p",null,"Give any CSS ",(0,p.kt)("inlineCode",{parentName:"p"},"@page")," size declared in the page priority over what is declared in the ",(0,p.kt)("inlineCode",{parentName:"p"},"width")," or ",(0,p.kt)("inlineCode",{parentName:"p"},"height")," or ",(0,p.kt)("inlineCode",{parentName:"p"},"format")," option."),(0,p.kt)("p",null,(0,p.kt)("strong",{parentName:"p"},"Signature:")),(0,p.kt)("pre",null,(0,p.kt)("code",{parentName:"pre",className:"language-typescript"},"interface PDFOptions {\n preferCSSPageSize?: boolean;\n}\n")))}f.isMDXComponent=!0}}]);