Pdf/Parser.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Pdf  
Version
$Id$  

\Zend_Pdf_Parser

Package: Zend_Pdf
PDF file parser
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprivatestring $_pdfVersion
PDF version specified in the file header
Details
Type
string
>VPropertyprivate\Zend_Pdf_StringParser $_stringParser
String parser
>VPropertyprivate\Zend_Pdf_Trailer_Keeper $_trailer
Last PDF file trailer

Methods

methodpublic__construct(mixed $source, \Zend_Pdf_ElementFactory_Interface $factory, boolean $load) : void

Object constructor

Note: PHP duplicates string, which is sent by value, only of it's updated. Thus we don't need to care about overhead
Parameters
NameTypeDescription
$sourcemixed
$factory\Zend_Pdf_ElementFactory_Interface
$loadboolean
Throws
ExceptionDescription
\Zend_Exception
methodpublic__destruct() : void

Object destructor

methodprivate_loadXRefTable(integer $offset) : \Zend_Pdf_Trailer_Keeper

Load XReference table and referenced objects

Parameters
NameTypeDescription
$offsetinteger
Returns
TypeDescription
\Zend_Pdf_Trailer_Keeper
Throws
ExceptionDescription
\Zend_Pdf_Exception
methodpublicgetPDFLength() : integer

Get length of source PDF

Returns
TypeDescription
integer
methodpublicgetPDFString() : string

Get PDF String

Returns
TypeDescription
string
methodpublicgetPDFVersion() : string

PDF version specified in the file header

Returns
TypeDescription
string
methodpublicgetTrailer() : \Zend_Pdf_Trailer_Keeper

Get Trailer object

Returns
TypeDescription
\Zend_Pdf_Trailer_Keeper
Documentation was generated by phpDocumentor 2.2.0 .