setasign\FpdiPdfParser\PdfParser
PdfParser A PDF parser class
File: /FPDI PDF-Parser v2/PdfParser/PdfParser.php
Class hierarchy
- setasign\Fpdi\PdfParser\PdfParser
Summary
Properties
$fileHeaderOffset
-
The offset to the file header.
$streamReader
-
$tokenizer
-
$xref
-
Methods
__construct()
-
PdfParser constructor.
Parameters
- $streamReader : \setasign\Fpdi\PdfParser\StreamReader
ensureExpectedType()
-
Ensures that the token will evaluate to an expected object type (or not).
Parameters
- $token : string
- $expectedType : string|null
Exceptions
Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException
getCatalog()
-
Get the catalog dictionary.
Exceptions
Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException
Throws \setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException
Throws \setasign\Fpdi\PdfParser\PdfParserException
getCrossReference()
Get the cross reference instance.
Exceptions
Throws \setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException
Throws \setasign\Fpdi\PdfParser\PdfParserException
Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException
getIndirectObject()
-
Get an indirect object by its object number.
Parameters
- $objectNumber : int
- $cache : bool
Exceptions
Throws \setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException
Throws \setasign\Fpdi\PdfParser\PdfParserException
getPdfVersion()
-
Get the PDF version.
Return Values
An array of major and minor version.
Exceptions
Throws \setasign\Fpdi\PdfParser\PdfParserException
getStreamReader()
-
Get the stream reader instance.
getTokenizer()
-
Get the tokenizer instance.
readValue()
-
Read a PDF value.
Parameters
- $token : null|bool|string
- $expectedType : null|string
Exceptions
Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException
resolveFileHeader()
-
Resolves the file header.
Exceptions
Throws \setasign\Fpdi\PdfParser\PdfParserException