public static function resolve(PdfType $value, PdfParser $parser, $stopAtIndirectObject = false)
    {
        if ($value instanceof PdfIndirectObject) {
            if ($stopAtIndirectObject === true) {
                return $value;
            }

            return self::resolve($value->value, $parser, $stopAtIndirectObject);
        }

        if ($value instanceof PdfIndirectObjectReference) {
            return self::resolve($parser->getIndirectObject($value->value), $parser, $stopAtIndirectObject);
        }

        return $value;
    }
public static function resolve(PdfType $value, PdfParser $parser, $stopAtIndirectObject = false)
    {
        if ($value instanceof PdfIndirectObject) {
            if ($stopAtIndirectObject === true) {
                return $value;
            }

            return self::resolve($value->value, $parser, $stopAtIndirectObject);
        }

        if ($value instanceof PdfIndirectObjectReference) {
            return self::resolve($parser->getIndirectObject($value->value), $parser, $stopAtIndirectObject);
        }

        return $value;
    }
public static function resolve ( PdfType $ value , PdfParser $ parser , $ stopAtIndirectObject = false ) { if ( $ value instanceof PdfIndirectObject ) { if ( $ stopAtIndirectObject === true ) { return $ value ; } return self :: resolve ( $ value -> value , $ parser , $ stopAtIndirectObject ) ; } if ( $ value instanceof PdfIndirectObjectReference ) { return self :: resolve ( $ parser -> getIndirectObject ( $ value -> value ) , $ parser , $ stopAtIndirectObject ) ; } return $ value ; }
Resolves a PdfType value to its value.

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

@param PdfType $value
@param PdfParser $parser
@param bool $stopAtIndirectObject
@return PdfType
@throws CrossReferenceException
@throws PdfParserException
Resolves a PdfType value to its value .