class final Core · roukmoute/pdf 0.6.1
PDF\Document\Fonts\CIDWidthArray9.7.4.3: both W forms, preserving explicit runs without expanding ranges.Inheritance and contracts
Parent : PDF\Syntax\Object\ArrayType
Interfaces : Countable, IteratorAggregate, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable
Construction
__construct()
public function __construct(PDF\Document\Fonts\CIDWidthRun|PDF\Document\Fonts\CIDWidthRange ...$runs)Declared methods
width()
public function width(PDF\Syntax\Object\IntegerType $cid, PDF\Syntax\Object\NumericType $default = new IntegerType(1000)): PDF\Syntax\Object\NumericTypeInherited methods
4 methods from parents and contracts
__toString()
public function __toString(): stringcount()
public function count(): intgetIterator()
public function getIterator(): TraversabletoPdf()
public function toPdf(PDF\Serialization\SerializationContext $context): stringProperties
| Declaration | Origin and documentation |
|---|---|
public readonly array $items | PDF\Syntax\Object\ArrayType@var list<BasicType> |
public readonly array $runs | PDF\Document\Fonts\CIDWidthArray@var list<CIDWidthRun|CIDWidthRange> |