puppeteer/assets/js/63c7967c.d158b58c.js
2021-10-07 15:21:45 +00:00

1 line
4.3 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[35456],{3905:function(e,r,t){t.d(r,{Zo:function(){return u},kt:function(){return d}});var n=t(67294);function p(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function i(e){for(var r=1;r<arguments.length;r++){var t=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))}))}return e}function a(e,r){if(null==e)return{};var t,n,p=function(e,r){if(null==e)return{};var t,n,p={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(p[t]=e[t]);return p}(e,r);if(Object.getOwnPropertySymbols){var o=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])}return p}var s=n.createContext({}),c=function(e){var r=n.useContext(s),t=r;return e&&(t="function"==typeof e?e(r):i(i({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(s.Provider,{value:r},e.children)},f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},l=n.forwardRef((function(e,r){var t=e.components,p=e.mdxType,o=e.originalType,s=e.parentName,u=a(e,["components","mdxType","originalType","parentName"]),l=c(t),d=p,m=l["".concat(s,".").concat(d)]||l[d]||f[d]||o;return t?n.createElement(m,i(i({ref:r},u),{},{components:t})):n.createElement(m,i({ref:r},u))}));function d(e,r){var t=arguments,p=r&&r.mdxType;if("string"==typeof e||p){var o=t.length,i=new Array(o);i[0]=l;var a={};for(var s in r)hasOwnProperty.call(r,s)&&(a[s]=r[s]);a.originalType=e,a.mdxType="string"==typeof e?e:p,i[1]=a;for(var c=2;c<o;c++)i[c]=t[c];return n.createElement.apply(null,i)}return n.createElement.apply(null,t)}l.displayName="MDXCreateElement"},43611:function(e,r,t){t.r(r),t.d(r,{frontMatter:function(){return a},contentTitle:function(){return s},metadata:function(){return c},toc:function(){return u},default:function(){return l}});var n=t(87462),p=t(63366),o=(t(67294),t(3905)),i=["components"],a={},s=void 0,c={unversionedId:"puppeteer.pdfoptions.prefercsspagesize",id:"version-9.1.1/puppeteer.pdfoptions.prefercsspagesize",isDocsHomePage:!1,title:"puppeteer.pdfoptions.prefercsspagesize",description:"Home &gt; puppeteer &gt; PDFOptions &gt; preferCSSPageSize",source:"@site/versioned_docs/version-9.1.1/puppeteer.pdfoptions.prefercsspagesize.md",sourceDirName:".",slug:"/puppeteer.pdfoptions.prefercsspagesize",permalink:"/puppeteer/docs/9.1.1/puppeteer.pdfoptions.prefercsspagesize",editUrl:"https://github.com/facebook/puppeteer/edit/main/website/versioned_docs/version-9.1.1/puppeteer.pdfoptions.prefercsspagesize.md",version:"9.1.1",frontMatter:{}},u=[{value:"PDFOptions.preferCSSPageSize property",id:"pdfoptionsprefercsspagesize-property",children:[]}],f={toc:u};function l(e){var r=e.components,t=(0,p.Z)(e,i);return(0,o.kt)("wrapper",(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.kt)("p",null,(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/index"},"Home")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/puppeteer"},"puppeteer")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/puppeteer.pdfoptions"},"PDFOptions")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/puppeteer.pdfoptions.prefercsspagesize"},"preferCSSPageSize")),(0,o.kt)("h2",{id:"pdfoptionsprefercsspagesize-property"},"PDFOptions.preferCSSPageSize property"),(0,o.kt)("p",null,"Give any CSS ",(0,o.kt)("inlineCode",{parentName:"p"},"@page")," size declared in the page priority over what is declared in the ",(0,o.kt)("inlineCode",{parentName:"p"},"width")," or ",(0,o.kt)("inlineCode",{parentName:"p"},"height")," or ",(0,o.kt)("inlineCode",{parentName:"p"},"format")," option."),(0,o.kt)("b",null,"Signature:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-typescript"},"preferCSSPageSize?: boolean;\n")))}l.isMDXComponent=!0}}]);