FontInspector

Walks the font resources of an imported page and reports the fonts whose program is not embedded in the source document. Such a font is copied into the destination document as it stands, which no conformance mode requiring embedded fonts accepts (ISO 19005-1 clause 6.3.4, ISO 19005-2 and ISO 19005-3 clause 6.2.11.4.1).

Namespace: Com\Tecnick\Pdf\Import

Final: Yes

File: FontInspector.php line 38

Walks the font resources of an imported page and reports the fonts whose program is not embedded in the source document. Such a font is copied into the destination document as it stands, which no conformance mode requiring embedded fonts accepts (ISO 19005-1 clause 6.3.4, ISO 19005-2 and ISO 19005-3 clause 6.2.11.4.1).

Tags

Constants

MAX_RESOURCE_NODES

File: FontInspector.php line 43

public mixed MAX_RESOURCE_NODES = 1024

Methods

__construct()

File: FontInspector.php line 60

public __construct() : mixed

findNonEmbeddedFonts()

File: FontInspector.php line 77

public findNonEmbeddedFonts(array<string, mixed> $resources, SourceDocument $src) : array<int, string>

The walk follows the /Font entries of the page resources and of every nested Form XObject, and stops after MAX_RESOURCE_NODES dictionaries.

Parameters

  • $resources : array<string, mixed>: Resolved page resource dictionary.
  • $src : SourceDocument : Source document the resources belong to.

Return values

array<int, string>