class final Core · roukmoute/pdf 0.6.2

PDF\Specification\Dictionary\StandardLayoutAttributesSpecificToInlineLevelStructureElementsTable345\LineHeightEntry
Table 345, /LineHeight; PDF type: number or name; Optional; inheritable.

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Specification\SchemaEntry

Definition in the specification

Table 345 · Standard layout attributes specific to inline-level structure elements
ISO 32000-1:2008, §14.8.5.4.4 · PDF page 612 ↗

/LineHeight number or name

(Optional; inheritable) The element’s preferred height, measured in default user space units in the block-progression direction. The height of a line shall be determined by the largest LineHeight value for any complete or partial ILSE that it contains. The name Normal or Auto in place of a numeric value shall indicate that no specific height constraint is to be imposed. The element’s height shall be set to a reasonable value based on the content’s font size: Normal Adjust the line height to include any nonzero value specified for BaselineShift. Auto Adjustment for the value of BaselineShift shall not be made. Default value: Normal. This attribute applies to all ILSEs (including implicit ones) that are children of this element or of its nested ILSEs, if any. It shall not apply to nested BLSEs. When translating to a specific export format, the values Normal and Auto, if specified, shall be used directly if they are available in the target format. The meaning of the term “reasonable value” is left to the conforming reader to determine. It should be approximately 1.2 times the font size, but this value can vary depending on the export format. NOTE 1 In the absence of a numeric value for LineHeight or an explicit value for the font size, a reasonable method of calculating the line height from the information in a Tagged PDF file is to find the difference between the associated font’s Ascent and Descent values (see 9.8, “Font Descriptors”), map it from glyph space to default user space (see 9.4.4, “Text Space Details”), and use the maximum resulting value for any character in the line.

Qualifier: Optional; inheritable

Conditional descriptions remain traceable. A definition alone does not implement a codec, a signature or every format mechanism. Read the coverage.

Construction

__construct()

Declared by PDF\Specification\Dictionary\StandardLayoutAttributesSpecificToInlineLevelStructureElementsTable345\LineHeightEntry · View the code ↗

Inherited methods

3 methods from parents and contracts

definition()

public function definition(): PDF\Specification\EntryDefinition

Declared by PDF\Specification\SchemaEntry · View the code ↗

key()

public function key(): PDF\Syntax\Object\NameType

Declared by PDF\Syntax\Object\DictionaryObject\Entry · View the code ↗

value()

public function value(): PDF\Syntax\FileStructure\BasicType

Declared by PDF\Syntax\Object\DictionaryObject\Entry · View the code ↗

Properties

Constants