setasign\FpdiPdfParser\PdfParser
PdfParser A PDF parser class
File: /FPDI PDF-Parser v2/PdfParser/PdfParser.php
Class hierarchy
- setasign\Fpdi\PdfParser\PdfParser
Summary
Methods
- __construct()
- decryptStream()
- ensureExpectedType()
- getCatalog()
- getCrossReference()
- getIndirectObject()
- getPdfVersion()
- getSecHandler()
- getStreamReader()
- getTokenizer()
- parsePdfArray()
- parsePdfDictionary()
- parsePdfHexString()
- parsePdfIndirectObject()
- parsePdfName()
- parsePdfString()
- readValue()
- resolveFileHeader()
Constants
PARAM_IGNORE_PERMISSIONS
PARAM_OWNER_PASSWORD
PARAM_PASSWORD
PARAM_USER_PASSWORD
Properties
$currentIndirectObjectGenerationNumber
$currentIndirectObjectNumber
$fileHeaderOffset
-
The offset to the file header.
$secHandler
$streamReader
-
$tokenizer
-
$xref
-
Methods
__construct()
PdfParser constructor.
Parameters
- $streamReader : \setasign\Fpdi\PdfParser\StreamReader
- $parserParams : array
Exceptions
Throws \setasign\Fpdi\FpdiException
decryptStream()
Parameters
- $stream : \setasign\Fpdi\PdfParser\Type\PdfStream
- $objectNumber : int
- $generationNumber : int
Exceptions
Throws \setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException
Throws \setasign\Fpdi\PdfParser\PdfParserException
Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException
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
getSecHandler()
Exceptions
Throws \setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException
Throws \setasign\Fpdi\PdfParser\PdfParserException
Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException
getStreamReader()
-
Get the stream reader instance.
getTokenizer()
-
Get the tokenizer instance.
parsePdfArray()
-
Exceptions
Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException
parsePdfDictionary()
-
Exceptions
Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException
parsePdfIndirectObject()
Parameters
- $objectNumber : int
- $generationNumber : int
Exceptions
Throws \setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException
Throws \setasign\Fpdi\PdfParser\PdfParserException
Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException
parsePdfName()
-
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