API Documentation

Pdf/StringParser.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Pdf
version
$Id: StringParser.php 22312 2010-05-27 13:11:23Z padraic $
Classes
Zend_Pdf_StringParser

Description

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.

Zend_Pdf_StringParser

copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Pdf
Properties
$data
$offset
$_context
$_elements
$_objFactory
Methods
cleanUp
isWhiteSpace
isDelimiter
skipWhiteSpace
skipComment
readComment
readLexeme
readElement
_readString
_readBinaryString
_readArray
_readDictionary
_readReference
_readNumeric
getObject
getLength
getString
parseIntFromStream
setContext
__construct

Description

PDF string parser

Properties

$_context

Zend_Pdf_Element_Reference_Context $_context = 'null'

Current reference context

Details

$_context
Zend_Pdf_Element_Reference_Context
visibility
private
default
null
final
false
static
false

$_elements

array $_elements = 'array'

Array of elements of the currently parsed object/trailer

Details

$_elements
array
visibility
private
default
array
final
false
static
false

$_objFactory

Zend_Pdf_ElementFactory_Interface $_objFactory = 'null'

PDF objects factory.

Details

$_objFactory
Zend_Pdf_ElementFactory_Interface
visibility
private
default
null
final
false
static
false

$data

string $data = ''

Source PDF

Details

$data
string
visibility
public
default
final
false
static
false

$offset

integer $offset = '0'

Current position in a data

Details

$offset
integer
visibility
public
default
0
final
false
static
false

Methods

__construct

__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

Arguments
$source
$factory
Zend_Pdf_ElementFactory_Interface
Details
visibility
public
final
false
static
false

_readArray

_readArray( ) : Zend_Pdf_Element_Array

Read array PDF object Also reads trailing ']' from a pdf stream

Details
visibility
private
final
false
static
false
throws

_readBinaryString

_readBinaryString( ) : Zend_Pdf_Element_String_Binary

Read binary string PDF object Also reads trailing '>' from a pdf stream

Details
visibility
private
final
false
static
false
throws

_readDictionary

_readDictionary( ) : Zend_Pdf_Element_Dictionary

Read dictionary PDF object Also reads trailing '>>' from a pdf stream

Details
visibility
private
final
false
static
false
throws

_readNumeric

_readNumeric( string $nextLexeme = null ) : Zend_Pdf_Element_Numeric

Read numeric PDF object

Arguments
$nextLexeme
string
Details
visibility
private
final
false
static
false

_readReference

_readReference( string $nextLexeme = null ) : Zend_Pdf_Element_Reference

Read reference PDF object

Arguments
$nextLexeme
string
Details
visibility
private
final
false
static
false

_readString

_readString( ) : Zend_Pdf_Element_String

Read string PDF object Also reads trailing ')' from a pdf stream

Details
visibility
private
final
false
static
false
throws

cleanUp

cleanUp( ) :

Clean up resources.

Clear current state to remove cyclic object references

Details
visibility
public
final
false
static
false

getLength

getLength( ) : integer

Get length of source string

Output
integer
Details
visibility
public
final
false
static
false

getObject

getObject( integer $offset, Zend_Pdf_Element_Reference_Context $context ) : Zend_Pdf_Element_Object

Read inderect object from a PDF stream

Arguments
$offset
integer
$context
Zend_Pdf_Element_Reference_Context
Details
visibility
public
final
false
static
false

getString

getString( ) : string

Get source string

Output
string
Details
visibility
public
final
false
static
false

isDelimiter

isDelimiter( integer $chCode ) : boolean

Character with code $chCode is a delimiter character

Arguments
$chCode
integer
Output
boolean
Details
visibility
public
final
false
static
true

isWhiteSpace

isWhiteSpace( integer $chCode ) : boolean

Character with code $chCode is white space

Arguments
$chCode
integer
Output
boolean
Details
visibility
public
final
false
static
true

parseIntFromStream

parseIntFromStream( string $stream, integer $offset, integer $size ) : integer

Parse integer value from a binary stream

Arguments
$stream
string
$offset
integer
$size
integer
Output
integer
Details
visibility
public
final
false
static
true

readComment

readComment( ) : string

Read comment line

Output
string
Details
visibility
public
final
false
static
false

readElement

readElement(  $nextLexeme = null ) : Zend_Pdf_Element

Read elemental object from a PDF stream

Arguments
$nextLexeme
Details
visibility
public
final
false
static
false
throws

readLexeme

readLexeme( ) : string

Returns next lexeme from a pdf stream

Output
string
Details
visibility
public
final
false
static
false

setContext

setContext( Zend_Pdf_Element_Reference_Context $context ) :

Set current context

Arguments
$context
Zend_Pdf_Element_Reference_Context
Details
visibility
public
final
false
static
false

skipComment

skipComment( ) :

Skip comment

Details
visibility
public
final
false
static
false

skipWhiteSpace

skipWhiteSpace( boolean $skipComment = true ) :

Skip white space

Arguments
$skipComment
boolean
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.