class final Core · roukmoute/pdf 0.6.2
PDF\Syntax\DocumentStructure\DocumentCatalogThe document's catalog dictionary (ISO 32000-1, table 28).Inheritance and contracts
Parent : PDF\Specification\SchemaDictionary
Interfaces : Countable, IteratorAggregate, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable
Definition in the specification
Table 28 · Entries in the catalog dictionary
ISO 32000-1:2008, §7.7.2 · PDF page 81 ↗
| Entry | PDF type | Source requirement | Table |
|---|---|---|---|
/Type | name | Required | 28 |
/Version | name | Optional; PDF 1.4 | 28 |
/Extensions | dictionary | Optional; ISO 32000 | 28 |
/Pages | dictionary | Required; shall be an indirect reference | 28 |
/PageLabels | number tree | Optional; PDF 1.3 | 28 |
/Names | dictionary | Optional; PDF 1.2 | 28 |
/Dests | dictionary | Optional; PDF 1.1; shall be an indirect reference | 28 |
/ViewerPreferences | dictionary | Optional; PDF 1.2 | 28 |
/PageLayout | name | Optional | 28 |
/PageMode | name | Optional | 28 |
/Outlines | dictionary | Optional; shall be an indirect reference | 28 |
/Threads | array | Optional; PDF 1.1; shall be an indirect reference | 28 |
/OpenAction | array or dictionary | Optional; PDF 1.1 | 28 |
/AA | dictionary | Optional; PDF 1.4 | 28 |
/URI | dictionary | Optional; PDF 1.1 | 28 |
/AcroForm | dictionary | Optional; PDF 1.2 | 28 |
/Metadata | stream | Optional; PDF 1.4; shall be an indirect reference | 28 |
/StructTreeRoot | dictionary | Optional; PDF 1.3 | 28 |
/MarkInfo | dictionary | Optional; PDF 1.4 | 28 |
/Lang | text string | Optional; PDF 1.4 | 28 |
/SpiderInfo | dictionary | Optional; PDF 1.3 | 28 |
/OutputIntents | array | Optional; PDF 1.4 | 28 |
/PieceInfo | dictionary | Optional; PDF 1.4 | 28 |
/OCProperties | dictionary | Optional; PDF 1.5; required if a document contains optional content | 28 |
/Perms | dictionary | Optional; PDF 1.5 | 28 |
/Legal | dictionary | Optional; PDF 1.5 | 28 |
/Requirements | array | Optional; PDF 1.7 | 28 |
/Collection | dictionary | Optional; PDF 1.7 | 28 |
/NeedsRendering | boolean | Optional; PDF 1.7 | 28 |
Conditional descriptions remain traceable. A definition alone does not implement a codec, a signature or every format mechanism. Read the coverage.
Construction
__construct()
public function __construct(PDF\Syntax\DocumentStructure\PageTree\PageTreeNode|PDF\Syntax\Object\IndirectReference $pages, PDF\Syntax\Object\DictionaryObject\Entry ...$entries)Declared methods
entries()
public function entries(): iterablewith()
public function with(PDF\Syntax\Object\DictionaryObject\Entry $entry): staticwithout()
public function without(PDF\Syntax\Object\NameType|string $key): staticInherited methods
8 methods from parents and contracts
__toString()
public function __toString(): stringcount()
public function count(): intdefinition()
public function definition(): PDF\Specification\TableDefinitionget()
public function get(PDF\Syntax\Object\NameType|string $key): ?PDF\Syntax\FileStructure\BasicTypegetIterator()
public function getIterator(): Traversablehas()
public function has(PDF\Syntax\Object\NameType|string $key): booltoPdf()
public function toPdf(PDF\Serialization\SerializationContext $context): stringvalidate()
public function validate(): voidChecks unconditional requirements; conditional and inherited rules remain explicit.Constants
| Name | PHP value | Origin |
|---|---|---|
COMMON_TABLES | | PDF\Specification\SchemaDictionary |
TABLE | | PDF\Syntax\DocumentStructure\DocumentCatalog |