class final readonly Optionnel · pdftoolkit/html-to-pdf 0.4.0
PDF\HtmlToPdf\Style\ComputedStyleHéritage et contrats
Ce type ne déclare pas de parent, d’interface ou de trait.
Construction
__construct()
public function __construct(string $display = 'inline', float $fontSize = 12, float $lineHeight = 16, int $fontWeight = 400, bool $italic = false, PDF\HtmlToPdf\Style\Color $color = new Color(), ?PDF\HtmlToPdf\Style\Color $background = null, string $textAlign = 'left', string $whiteSpace = 'normal', bool $underline = false, PDF\HtmlToPdf\Style\Edges $margin = new Edges(), PDF\HtmlToPdf\Style\Edges $padding = new Edges(), float $borderWidth = 0, PDF\HtmlToPdf\Style\Color $borderColor = new Color(), ?PDF\HtmlToPdf\Style\Length $width = null, ?PDF\HtmlToPdf\Style\Length $height = null, string $breakBefore = 'auto', string $breakAfter = 'auto', bool $breakInsideAvoid = false, int $orphans = 2, int $widows = 2, string $listStyleType = 'disc', string $verticalAlign = 'top', string $tableLayout = 'auto', ?PDF\HtmlToPdf\Style\Borders $borders = null, string $float = 'none', string $clear = 'none', PDF\HtmlToPdf\Style\FontFamilyList $fontFamily = new FontFamilyList(), PDF\HtmlToPdf\Style\TextSpacing $textSpacing = new TextSpacing(), PDF\HtmlToPdf\Style\TextIndent $textIndent = new TextIndent())Méthodes déclarées
borderEdges()
public function borderEdges(): PDF\HtmlToPdf\Style\BordersIndependent sides take precedence; the uniform 0.1 constructor remains usable.