class final Optional · pdftoolkit/html-to-pdf 0.4.0

PDF\HtmlToPdf\Layout\SemanticTree
A new tree is allocated for each document; source identifiers never become PDF names.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Declared methods

add()

public function add(string $role, ?string $parent = null, ?string $alt = null, ?string $language = null, ?string $scope = null, ?bool $checked = null): string

Declared by PDF\HtmlToPdf\Layout\SemanticTree · View the code ↗

all()

public function all(): array
@return list<SemanticNode>

Declared by PDF\HtmlToPdf\Layout\SemanticTree · View the code ↗

forNode()

public function forNode(PDF\HtmlToPdf\Model\Node $node, string $parent): string

Declared by PDF\HtmlToPdf\Layout\SemanticTree · View the code ↗