PdfOptions
Playwright\Page\Options\PdfOptions
Constructor options
| Option | Type | Default |
|---|---|---|
| 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()
selffunction from(array|self $options): self
fromArray()
selffunction fromArray(array $options): self
path()
?stringfunction path(): ?string
withPath()
selffunction withPath(?string $path): self
toArray()
arrayfunction toArray(): array