setasign\FpdiPdfParser\PdfParser\CrossReference

CorruptedReader Class CorruptedReader

File: /FPDI PDF-Parser v2/PdfParser/CrossReference/CorruptedReader.php

This class tries to get object numbers and their positions from the whole PDF content. It doesn't uses a cross-reference at all.

Class hierarchy

Implements

  • \setasign\Fpdi\PdfParser\CrossReference\ReaderInterface

Summary

Properties

$offsets

protected array setasign\FpdiPdfParser\PdfParser\CrossReference\CorruptedReader::$offsets = array()

$parser

protected \setasign\FpdiPdfParser\PdfParser\PdfParser setasign\FpdiPdfParser\PdfParser\CrossReference\CorruptedReader::$parser

$trailer

protected \setasign\Fpdi\PdfParser\Type\PdfDictionary|null setasign\FpdiPdfParser\PdfParser\CrossReference\CorruptedReader::$trailer


Methods

__construct()

getOffsetFor()

public CorruptedReader::getOffsetFor (
int $objectNumber
): int|bool

Get an offset by an object number.

Parameters
$objectNumber : int
 
Return Values

False if the offset was not found.

getTrailer()

public CorruptedReader::getTrailer (
void
): \setasign\Fpdi\PdfParser\Type\PdfDictionary

Get the trailer related to this cross reference.

read()

protected CorruptedReader::read (
void
): void

Extract all information from the pdf stream.