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.
PDF string parser
Zend_Pdf_Element_Reference_Context $_context = 'null'
Current reference context
array $_elements = 'array'
Array of elements of the currently parsed object/trailer
Zend_Pdf_ElementFactory_Interface $_objFactory = 'null'
PDF objects factory.
string $data = ''
Source PDF
integer $offset = '0'
Current position in a data
__construct(
$source, Zend_Pdf_ElementFactory_Interface $factory
)
:
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
_readArray(
)
:
Zend_Pdf_Element_Array
Read array PDF object Also reads trailing ']' from a pdf stream
_readBinaryString(
)
:
Zend_Pdf_Element_String_Binary
Read binary string PDF object Also reads trailing '>' from a pdf stream
_readDictionary(
)
:
Zend_Pdf_Element_Dictionary
Read dictionary PDF object Also reads trailing '>>' from a pdf stream
_readNumeric(
string $nextLexeme
=
null
)
:
Zend_Pdf_Element_Numeric
Read numeric PDF object
_readReference(
string $nextLexeme
=
null
)
:
Zend_Pdf_Element_Reference
Read reference PDF object
_readString(
)
:
Zend_Pdf_Element_String
Read string PDF object Also reads trailing ')' from a pdf stream
cleanUp(
)
:
Clean up resources.
Clear current state to remove cyclic object references
getLength(
)
:
integer
Get length of source string
getObject(
integer $offset, Zend_Pdf_Element_Reference_Context $context
)
:
Zend_Pdf_Element_Object
Read inderect object from a PDF stream
getString(
)
:
string
Get source string
isDelimiter(
integer $chCode
)
:
boolean
Character with code $chCode is a delimiter character
isWhiteSpace(
integer $chCode
)
:
boolean
Character with code $chCode is white space
parseIntFromStream(
string $stream, integer $offset, integer $size
)
:
integer
Parse integer value from a binary stream
readComment(
)
:
string
Read comment line
readElement(
$nextLexeme
=
null
)
:
Zend_Pdf_Element
Read elemental object from a PDF stream
readLexeme(
)
:
string
Returns next lexeme from a pdf stream
setContext(
Zend_Pdf_Element_Reference_Context $context
)
:
Set current context
skipComment(
)
:
Skip comment
skipWhiteSpace(
boolean $skipComment
=
true
)
:
Skip white space