API Documentation

Zend/Pdf/Parser.php

Show: inherited
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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Pdf  
Version
$Id: Parser.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Pdf_Parser

Package: Zend\Pdf

PDF file parser

Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprivatestring  $_pdfVersion= ''

PDF version specified in the file header

Details
Type
string
Propertyprivate\Zend_Pdf_StringParser  $_stringParser= ''

String parser

Details
Type
\Zend_Pdf_StringParser
Propertyprivate\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
Name Type Description
$source mixed
$factory \Zend_Pdf_ElementFactory_Interface
$load boolean
Throws
Exception Description
\Zend_Exception
methodpublic__destruct( ) : void

Object destructor

methodprivate_loadXRefTable( integer $offset ) : \Zend_Pdf_Trailer_Keeper

Load XReference table and referenced objects

Parameters
Name Type Description
$offset integer
Returns
Type Description
\Zend_Pdf_Trailer_Keeper
Throws
Exception Description
\Zend_Pdf_Exception
methodpublicgetPDFLength( ) : integer

Get length of source PDF

Returns
Type Description
integer
methodpublicgetPDFString( ) : string

Get PDF String

Returns
Type Description
string
methodpublicgetPDFVersion( ) : string

PDF version specified in the file header

Returns
Type Description
string
methodpublicgetTrailer( ) : \Zend_Pdf_Trailer_Keeper

Get Trailer object

Returns
Type Description
\Zend_Pdf_Trailer_Keeper
Documentation was generated by DocBlox 0.15.1.