class final Core · pdftoolkit/pdf 0.12.4

PDF\Document\Geospatial\Viewport
Table 265 and 12.9.1, physical page 611: a PDF measurement viewport.

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Document\Geospatial\GeospatialDictionary

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

ISO 32000-2:2020 EC3 definition

Table 265 · Entries in a viewport dictionary
§12.9.1 · PDF page 611

Original PDF at the documented commit ↗ · Source metadata at the documented commit ↗ · Public errata ↗

Original retained in the core repository. Table inventory and semantic validation remain distinct.

EntryPDF typePhysical PDF pageRequirement
/Typename611Optional
/BBoxrectangle611Required
/Nametext string611Optional
/Measuredictionary611Optional
/PtDatadictionary611Optional

PDF 2.0 scope and limits.

Construction

__construct()

Declared by PDF\Document\Geospatial\Viewport · View the code ↗

Declared methods

contains()

public function contains(PDF\Graphics\CoordinateSystems\Point $point): bool

Declared by PDF\Document\Geospatial\Viewport · View the code ↗

local()

Declared by PDF\Document\Geospatial\Viewport · View the code ↗

validateVersion()

public function validateVersion(PDF\Syntax\FileStructure\EffectivePdfVersion $version): void

Declared by PDF\Document\Geospatial\Viewport · 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 ↗

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\Syntax\Object\DictionaryType · View the code ↗

with()

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

Declared by PDF\Document\Geospatial\GeospatialDictionary · View the code ↗

without()

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

Declared by PDF\Document\Geospatial\GeospatialDictionary · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly PDF\Syntax\DataStructure\Rectangle $boundsPDF\Document\Geospatial\Viewport