setasign\Fpdi\PdfParser\Type

PdfNumeric Class representing a numeric PDF object

File: /FPDI v2/PdfParser/Type/PdfNumeric.php

Class hierarchy

Summary

Properties

$value

public mixed setasign\Fpdi\PdfParser\Type\PdfNumeric::$value

The value of the PDF type.


Static Methods

create()

public static PdfNumeric::create (
int|float $value
): PdfNumeric

Helper method to create an instance.

Parameters
$value : int|float
 

ensure()

public static PdfNumeric::ensure (
mixed $value
): PdfNumeric

Ensures that the passed value is a PdfNumeric instance.

Parameters
$value : mixed
 

ensureType()

protected static PdfType::ensureType (
string $type, PdfType $value, string $errorMessage
): mixed

Ensure that a value is an instance of a specific PDF type.

Parameters
$type : string
 
$value : PdfType
 
$errorMessage : string
 
Exceptions

Throws PdfTypeException

resolve()

public static PdfType::resolve (
PdfType $value, \setasign\Fpdi\PdfParser\PdfParser $parser [, bool $stopAtIndirectObject = false ]
): PdfType

Resolves a PdfType value to its value.

This method is used to evaluate indirect and direct object references until a final value is reached.

Parameters
$value : PdfType
 
$parser : \setasign\Fpdi\PdfParser\PdfParser
 
$stopAtIndirectObject : bool