class final Core · roukmoute/pdf 0.6.2

PDF\Document\Forms\IconFit
Icon scaling/placement from ISO table 247, PDF p.471. Viewport bounds are explicit.

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Specification\SchemaDictionary

Interfaces : Countable, IteratorAggregate, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable

Construction

__construct()

public function __construct(PDF\Document\Forms\IconScaleWhen $when = PDF\Document\Forms\IconScaleWhen::Always, PDF\Document\Forms\IconScaling $scaling = PDF\Document\Forms\IconScaling::Proportional, PDF\Document\Forms\IconAlignment $alignment = new IconAlignment(), PDF\Syntax\Object\BooleanType $fitBounds = new BooleanType(false))

Declared by PDF\Document\Forms\IconFit · View the code ↗

Declared methods

transform()

Apply to the icon's effective bounds after its own form matrix; callers supply border-adjusted viewport.

Declared by PDF\Document\Forms\IconFit · View the code ↗

with()

public function with(PDF\Syntax\Object\DictionaryObject\Entry $entry): static

Declared by PDF\Document\Forms\IconFit · View the code ↗

without()

public function without(PDF\Syntax\Object\NameType|string $key): static

Declared by PDF\Document\Forms\IconFit · View the code ↗

Inherited methods

9 methods from parents and contracts

__toString()

public function __toString(): string

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

count()

public function count(): int

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

definition()

public function definition(): PDF\Specification\TableDefinition

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

entries()

public function entries(): iterable
@return iterable<Entry>

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

get()

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

getIterator()

public function getIterator(): Traversable

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

has()

public function has(PDF\Syntax\Object\NameType|string $key): bool

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

toPdf()

public function toPdf(PDF\Serialization\SerializationContext $context): string

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

validate()

public function validate(): void
Checks unconditional requirements; conditional and inherited rules remain explicit.

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

Properties

Constants