PageLayout

Backed enum for the PDF /PageLayout name.

Table of contents

Namespace: Com\Tecnick\Pdf\Page

enum PageLayout: string

Source: src/PageLayout.php:35

Backed enum for the PDF /PageLayout name. The backing value of each case is the canonical name produced by Mode::getLayout().

Cases

  • SinglePage = 'SinglePage'
  • OneColumn = 'OneColumn'
  • TwoColumnLeft = 'TwoColumnLeft'
  • TwoColumnRight = 'TwoColumnRight'
  • TwoPageLeft = 'TwoPageLeft'
  • TwoPageRight = 'TwoPageRight'

Methods

fromLoose()

Resolve a loose page layout value to the matching enum case.

Accepts the canonical name, its aliases and the empty-string default, case-insensitively, or an enum instance (returned unchanged). Unknown values fall back to SinglePage, matching Mode::getLayout().

public static fromLoose(string|self $value): self

Parameters:

  • $value (string|self): Page layout name or enum case.

Returns: self

Source: src/PageLayout.php:58