phpdftk API Documentation

RoleMap
in package
implements Serializable

RoleMap dictionary — ISO 32000-2 §14.7.3.

Maps non-standard structure type names to standard structure types. Lives inline on StructTreeRoot::$roleMap.

Example: $map = new RoleMap(); $map->map('Note', 'P'); $map->map('Heading1', 'H1');

Attributes
#[RequiresPdfVersion]
\Phpdftk\Pdf\Core\PdfVersion::V1_3

Table of Contents

Interfaces

Serializable
Contract for anything that can emit raw PDF syntax via `toPdf()`.

Properties

$entries  : array<string, string>

Methods

map()  : self
toDictionary()  : PdfDictionary
toPdf()  : string

Properties

$entries

public array<string, string> $entries = []

Methods

map()

public map(string $customType, string $standardType) : self
Parameters
$customType : string
$standardType : string
Return values
self

toPdf()

public toPdf() : string
Return values
string

        
On this page

Search results