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

PDF\Html\Html\CssSafetyFilter
Bounded CSS subset: declarations and nested supports/media, without fetched resources.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(PDF\Html\DerivationLimits $limits)

Declared by PDF\Html\Html\CssSafetyFilter · View the code ↗

Declared methods

declarationText()

public function declarationText(string $text): string
Preserve declaration order, including repeated browser fallback properties.

Declared by PDF\Html\Html\CssSafetyFilter · View the code ↗

declarations()

public function declarations(array $declarations): array
@param array<string, string> $declarations
@return array<string, string>

Declared by PDF\Html\Html\CssSafetyFilter · View the code ↗

mergeDeclarations()

public function mergeDeclarations(string $text, array $overrides): string
@param array<string, string> $overrides Explicit PDF CSS replaces the corresponding HTML style properties.

Declared by PDF\Html\Html\CssSafetyFilter · View the code ↗

stylesheet()

public function stylesheet(string $text): string

Declared by PDF\Html\Html\CssSafetyFilter · View the code ↗

Properties

DeclarationOrigin and documentation
public array $diagnosticsPDF\Html\Html\CssSafetyFilter
@var list<Diagnostic>