fpdi_pdf_parser Class fpdi_pdf_parser
File: /FPDI v1/fpdi_pdf_parser.php
Class hierarchy
Summary
Methods
- __construct()
- __destruct()
- _findXref()
- _getPageBox()
- _getPageBoxes()
- _getPageContent()
- _getPageResources()
- _getPageRotation()
- _readPages()
- _readRoot()
- _readToken()
- _readValue()
- _readXref()
- _unFilterStream()
- closeFile()
- getContent()
- getEncryption()
- getPageBoxes()
- getPageCount()
- getPageResources()
- getPageRotation()
- getPdfVersion()
- resolveObject()
- setPageNo()
Constants
TYPE_ARRAY
Type constant
TYPE_BOOLEAN
Type constant
TYPE_DICTIONARY
Type constant
TYPE_HEX
Type constant
TYPE_NULL
Type constant
TYPE_NUMERIC
Type constant
TYPE_OBJDEC
Type constant
TYPE_OBJECT
Type constant
TYPE_OBJREF
Type constant
TYPE_REAL
Type constant
TYPE_STREAM
Type constant
TYPE_STRING
Type constant
TYPE_TOKEN
Type constant
Static Properties
$searchForStartxrefLength
Define the amount of byte in which the initial keyword of a PDF document should be searched.
Properties
$_c
PDF Context
$_currentObj
The current read object
$_f
File resource
$_pageCount
Page count
$_pdfVersion
PDF version of imported document
$_root
Data of the Root object
$_xref
xref-Data
$filename
Filename
$pageNo
Current page number
Methods
__construct()
The constructor.
Parameters
- $filename : string
The source filename
Exceptions
Throws InvalidArgumentException
_getPageBox()
Get a boundary box from a page
Array format is same as used by FPDF_TPL.
Parameters
- $page : array
a /Page dictionary
- $boxIndex : string
Type of box {see $availableBoxes)
- $k : float
Scale factor from user space units to points
_getPageBoxes()
Get all boxes from /Page dictionary
Parameters
- $page : array
A /Page dictionary
- $k : float
Scale factor from user space units to points
_getPageResources()
Get page-resources from a /Page dictionary.
Parameters
- $obj : array
Array of pdf-data
_readPages()
Read all pages
Parameters
- $pages : array
/Pages dictionary
- $result : array
The result array
Exceptions
Throws Exception
_readToken()
_readValue()
_readXref()
Read the xref table
Parameters
- $result : array
Array of xref table entries
- $offset : integer
of xref table
Exceptions
Throws Exception
_unFilterStream()
getEncryption()
getPageBoxes()
Get all page boundary boxes by page number
Parameters
- $pageNo : int
The page number
- $k : float
Scale factor from user space units to points
Exceptions
Throws InvalidArgumentException
getPageRotation()
Get the page rotation by page number
Parameters
- $pageNo : integer
Exceptions
Throws InvalidArgumentException
resolveObject()
setPageNo()
Set the page number.
Parameters
- $pageNo : int
Page number to use
Exceptions
Throws InvalidArgumentException