PdfOptions

Playwright\Page\Options\PdfOptions

Constructor options

OptionTypeDefault
path ?string null
format ?string null
landscape ?bool null
scale ?float null
printBackground ?bool null
width ?string null
height ?string null
margin mixed null
displayHeaderFooter ?bool null
footerTemplate ?string null
headerTemplate ?string null
outline ?bool null
pageRanges ?string null
preferCSSPageSize ?bool null
tagged ?bool null

Methods

__construct()

function __construct( ?string $path = null, ?string $format = null, ?bool $landscape = null, ?float $scale = null, ?bool $printBackground = null, ?string $width = null, ?string $height = null, mixed $margin = null, ?bool $displayHeaderFooter = null, ?string $footerTemplate = null, ?string $headerTemplate = null, ?bool $outline = null, ?string $pageRanges = null, ?bool $preferCSSPageSize = null, ?bool $tagged = null, )

from()

self
function from(array|self $options): self

fromArray()

self
function fromArray(array $options): self

path()

?string
function path(): ?string

withPath()

self
function withPath(?string $path): self

toArray()

array
function toArray(): array