class final readonly Optional · pdftoolkit/html-to-pdf 0.4.0
PDF\HtmlToPdf\Drawing\Textx and baseline y are in points from the page's top-left.Inheritance and contracts
Interfaces : PDF\HtmlToPdf\Drawing\Command
Construction
__construct()
public function __construct(PDF\HtmlToPdf\Font\FontFace $font, string $text, float $size, float $x, float $y, PDF\HtmlToPdf\Style\Color $color, ?string $semanticId, ?string $uri = null, PDF\HtmlToPdf\Style\TextSpacing $spacing = new TextSpacing())Properties
| Declaration | Origin and documentation |
|---|---|
public readonly PDF\HtmlToPdf\Style\Color $color | PDF\HtmlToPdf\Drawing\Text |
public readonly PDF\HtmlToPdf\Font\FontFace $font | PDF\HtmlToPdf\Drawing\Text |
public readonly ?string $semanticId | PDF\HtmlToPdf\Drawing\Text |
public readonly float $size | PDF\HtmlToPdf\Drawing\Text |
public readonly PDF\HtmlToPdf\Style\TextSpacing $spacing | PDF\HtmlToPdf\Drawing\Text |
public readonly string $text | PDF\HtmlToPdf\Drawing\Text |
public readonly ?string $uri | PDF\HtmlToPdf\Drawing\Text |
public readonly float $x | PDF\HtmlToPdf\Drawing\Text |
public readonly float $y | PDF\HtmlToPdf\Drawing\Text |