"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[32311],{3905:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>s});vara=n(67294);functionr(t,e,n){returneint?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}functionp(t,e){varn=Object.keys(t);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){returnObject.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}returnn}functionl(t){for(vare=1;e<arguments.length;e++){varn=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}returnt}functioni(t,e){if(null==t)return{};varn,a,r=function(t,e){if(null==t)return{};varn,a,r={},p=Object.keys(t);for(a=0;a<p.length;a++)n=p[a],e.indexOf(n)>=0||(r[n]=t[n]);returnr}(t,e);if(Object.getOwnPropertySymbols){varp=Object.getOwnPropertySymbols(t);for(a=0;a<p.length;a++)n=p[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}returnr}varo=a.createContext({}),d=function(t){vare=a.useContext(o),n=e;returnt&&(n="function"==typeoft?t(e):l(l({},e),t)),n},u=function(t){vare=d(t.components);returna.createElement(o.Provider,{value:e},t.children)},m={inlineCode:"code",wrapper:function(t){vare=t.children;returna.createElement(a.Fragment,{},e)}},k=a.forwardRef((function(t,e){varn=t.components,r=t.mdxType,p=t.originalType,o=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),k=d(n),s=r,g=k["".concat(o,".").concat(s)]||k[s]||m[s]||p;returnn?a.createElement(g,l(l({ref:e},u),{},{components:n})):a.createElement(g,l({ref:e},u))}));functions(t,e){varn=arguments,r=e&&e.mdxType;if("string"==typeoft||r){varp=n.length,l=newArray(p);l[0]=k;vari={};for(varoine)hasOwnProperty.call(e,o)&&(i[o]=e[o]);i.originalType=t,i.mdxType="string"==typeoft?t:r,l[1]=i;for(vard=2;d<p;d++)l[d]=n[d];returna.createElement.apply(null,l)}returna.createElement.apply(null,n)}k.displayName="MDXCreateElement"},53675:(t,e,n)=>{n.r(e),n.d(e,{assets:()=>o,contentTitle:()=>l,default:()=>m,frontMatter:()=>p,metadata:()=>i,toc:()=>d});vara=n(87462),r=(n(67294),n(3905));constp={sidebar_label:"PDFOptions"},l="PDFOptions interface",i={unversionedId:"api/puppeteer.pdfoptions",id:"version-17.1.1/api/puppeteer.pdfoptions",title:"PDFOptions interface",description:"Valid options to configure PDF generation via Page.pdf().",source:"@site/versioned_docs/version-17.1.1/api/puppeteer.pdfoptions.md",sourceDirName:"api",slug:"/api/puppeteer.pdfoptions",permalink:"/api/puppeteer.pdfoptions",draft:!1,tags:[],version:"17.1.1",frontMatter:{sidebar_label:"PDFOptions"},sidebar:"sidebar",previous:{title:"PDFOptions.margin",permalink:"/api/puppeteer.pdfoptions.margin"},next:{title:"PDFOptions.omitBackground",permalink:"/api/puppeteer.pdfoptions.omitbackground"}},o={},d=[{value:"Properties",id:"properties",level:2}],u={toc:d};functionm(t){let{components:e,...n}=t;return(0,r.kt)("wrapper",(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"pdfoptions-interface"},"PDFOptions interface"),(0,r.kt)("p",null,"Valid options to configure PDF generation via ",(0,r.kt)("a",{parentName:"p",href:"/api/puppeteer.page.pdf"},"Page.pdf()"),"."),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Signature:")),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-typescript"},"export interface PDFOptions\n")),(0,r.kt)("h2",{id:"properties"},"Properties"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"Property"),(0,r.kt)("th",{parentName:"tr",align:null},"Modifiers"),(0,r.kt)("th",{parentName:"tr",align:null},"Type"),(0,r.kt)("th",{parentName:"tr",align:null},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align: