class final Core · roukmoute/pdf 0.6.2
PDF\Specification\Dictionary\CrossReferenceStreamDictionaryTable17\WEntryTable 17, /W; PDF type: array; Required.Inheritance and contracts
Parent : PDF\Specification\SchemaEntry
Definition in the specification
Table 17 · Additional entries specific to a cross-reference stream dictionary
ISO 32000-1:2008, §7.5.8.3 · PDF page 58 ↗
/W array
(Required) An array of integers representing the size of the fields in a single cross-reference entry. Table 18 describes the types of entries and their fields. For PDF 1.5, W always contains three integers; the value of each integer shall be the number of bytes (in the decoded stream) of the corresponding field. EXAMPLE [1 2 1] means that the fields are one byte, two bytes, and one byte, respectively. A value of zero for an element in the W array indicates that the corresponding field shall not be present in the stream, and the default value shall be used, if there is one. If the first element is zero, the type field shall not be present, and shall default to type 1. The sum of the items shall be the total length of each entry; it can be used with the Index array to determine the starting position of each subsection. Different cross-reference streams in a PDF file may use different values for W.
Qualifier: Required
- Direct object required
- Direct array elements required
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\Object\ArrayType $value)Inherited methods
3 methods from parents and contracts
definition()
public function definition(): PDF\Specification\EntryDefinitionkey()
public function key(): PDF\Syntax\Object\NameTypevalue()
public function value(): PDF\Syntax\FileStructure\BasicTypeProperties
| Declaration | Origin and documentation |
|---|---|
public readonly PDF\Syntax\Object\NameType $key | PDF\Syntax\Object\DictionaryObject\Entry |
public readonly PDF\Syntax\FileStructure\BasicType $value | PDF\Syntax\Object\DictionaryObject\Entry |
Constants
| Name | PHP value | Origin |
|---|---|---|
KEY | | PDF\Specification\Dictionary\CrossReferenceStreamDictionaryTable17\WEntry |
TABLE | | PDF\Specification\Dictionary\CrossReferenceStreamDictionaryTable17\WEntry |
VARIABLE | | PDF\Specification\SchemaEntry |