fpdi_pdf_parser
class fpdi_pdf_parser extends pdf_parser
Properties
string | $filename | Filename | from pdf_parser |
resource | $f | File resource | from pdf_parser |
object | $c | PDF Context | from pdf_parser |
array | $xref | xref-Data | from pdf_parser |
array | $root | root-Object | from pdf_parser |
string | $pdfVersion | PDF Version of imported Document | |
boolean | $readPlain | For reading encrypted documents and xref/objectstreams are in use | from pdf_parser |
array | $pages | Pages Index beginns at 0 | |
integer | $page_count | Page count | |
integer | $pageno | actual page number | |
object | $fpdi | FPDI Reference | |
array | $availableBoxes | Available BoxTypes |
Methods
Overwrite parent::error()
Get PDF-Version
Resolve an object
Constructor
Get pagecount from sourcefile
Set pageno
Get page-resources from current page
Get page-resources from /Page
Get content of current page
Resolve all content-objects
Rebuild content-streams
Get a Box from a page Arrayformat is same as used by fpdf_tpl
Get all page boxes by page no
Get all boxes from /Page
Get the page rotation by pageno
No description
Read all /Page(es)
Details
in pdf_parser at line 101
pdf_parser(string $filename)
Constructor
in pdf_parser at line 127
closeFile()
Close the opened file
at line 89
error(string $msg)
Overwrite parent::error()
in pdf_parser at line 146
getEncryption()
Check Trailer for Encryption
in pdf_parser at line 157
array
pdf_find_root()
Find/Return /Root
in pdf_parser at line 168
pdf_read_root()
Read the /Root
at line 404
getPDFVersion()
Get PDF-Version
And reset the PDF Version used in FPDI if needed
in pdf_parser at line 189
pdf_find_xref()
Find the xref-Table
in pdf_parser at line 214
pdf_read_xref(array $result, integer $offset)
Read xref-table
in pdf_parser at line 331
mixed
pdf_read_value(object $c, string $token = null)
Reads an Value
in pdf_parser at line 523
pdf_resolve_object(object $c, array $obj_spec, boolean $encapsulate = true)
Resolve an object
in pdf_parser at line 611
mixed
pdf_read_token(object $c)
Reads a token from the file
at line 69
fpdi_pdf_parser(string $filename, object $fpdi)
Constructor
at line 98
int
getPageCount()
Get pagecount from sourcefile
at line 108
setPageno(int $pageno)
Set pageno
at line 123
array
getPageResources()
Get page-resources from current page
at line 132
_getPageResources(array $obj)
Get page-resources from /Page
at line 164
string
getContent()
Get content of current page
If more /Contents is an array, the streams are concated
at line 184
array
_getPageContent(array $content_ref)
Resolve all content-objects
at line 210
string
_rebuildContentStream(array $obj)
Rebuild content-streams
at line 278
array
getPageBox(array $page, string $box_index, float $k)
Get a Box from a page Arrayformat is same as used by fpdf_tpl
at line 314
array
getPageBoxes(int $pageno, float $k)
Get all page boxes by page no
at line 324
array
_getPageBoxes($page, $k)
Get all boxes from /Page
at line 342
array
getPageRotation(integer $pageno)
Get the page rotation by pageno
at line 346
_getPageRotation($obj)
at line 372
read_pages(object $c, array $pages, array $result)
Read all /Page(es)