Table of contents
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
- since: 2026-08-31
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2002-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf
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>