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

PDF\HtmlToPdf\Layout\InlineFormatter
Horizontal inline flow, measured with exactly the font shaper used by serialization.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(PDF\HtmlToPdf\ConversionOptions $options)

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

Declared methods

face()

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

format()

public function format(array $pieces, float $x, float $width, PDF\HtmlToPdf\Style\ComputedStyle $style, string $paragraph, ?PDF\HtmlToPdf\Layout\LineExclusions $exclusions = null, float $top = 0, bool $firstLine = true, ?float $indentBasis = null): array
@param list<InlinePiece> $pieces
@return list<FlowItem>

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