PdfReader
in package
A PDF reader class
Table of Contents
Properties
- $pageCount : int
- $pages : array<string|int, PdfIndirectObjectReference>|array<string|int, PdfIndirectObject>
- Indirect objects of resolved pages.
- $parser : PdfParser
Methods
- __construct() : mixed
- PdfReader constructor.
- __destruct() : mixed
- PdfReader destructor.
- getPage() : Page
- Get a page instance.
- getPageCount() : int
- Get the page count.
- getParser() : PdfParser
- Get the pdf parser instance.
- getPdfVersion() : string
- Get the PDF version.
- readPages() : mixed
- Walk the page tree and resolve all indirect objects of all pages.
Properties
$pageCount
protected
int
$pageCount
$pages
Indirect objects of resolved pages.
protected
array<string|int, PdfIndirectObjectReference>|array<string|int, PdfIndirectObject>
$pages
= []
$parser
protected
PdfParser
$parser
Methods
__construct()
PdfReader constructor.
public
__construct(PdfParser $parser) : mixed
Parameters
- $parser : PdfParser
__destruct()
PdfReader destructor.
public
__destruct() : mixed
getPage()
Get a page instance.
public
getPage(int|numeric-string $pageNumber) : Page
Parameters
- $pageNumber : int|numeric-string
Tags
Return values
PagegetPageCount()
Get the page count.
public
getPageCount() : int
Tags
Return values
intgetParser()
Get the pdf parser instance.
public
getParser() : PdfParser
Return values
PdfParsergetPdfVersion()
Get the PDF version.
public
getPdfVersion() : string
Tags
Return values
stringreadPages()
Walk the page tree and resolve all indirect objects of all pages.
protected
readPages([bool $readAll = false ]) : mixed
Parameters
- $readAll : bool = false