Class Zend_Pdf_StringParser

Description

PDF string parser

Located in /Zend/Pdf/StringParser.php (line 83)


	
			
Variable Summary
Method Summary
 Zend_Pdf_StringParser __construct (mixed $source, Zend_Pdf_ElementFactory $factory, string $pdfString)
 integer getLength ()
 Zend_Pdf_Element_Object getObject (integer $offset, Zend_Pdf_Element_Reference_Context $context)
 string getString ()
 boolean isDelimiter (integer $chCode)
 boolean isWhiteSpace (integer $chCode)
 integer parseIntFromStream (string $stream, integer $offset, integer $size)
 string readComment ()
 Zend_Pdf_Element readElement ([mixed $nextLexeme = null])
 string readLexeme ()
 void setContext (Zend_Pdf_Element_Reference_Context $context)
 void skipComment ()
 void skipWhiteSpace ([boolean $skipComment = true])
 Zend_Pdf_Element_Numeric _readNumeric ([string $nextLexeme = null])
 Zend_Pdf_Element_Reference _readReference ([string $nextLexeme = null])
Variables
string $data = '' (line 90)

Source PDF

  • access: public
integer $offset = 0 (line 97)

Current position in a data

  • access: public
Zend_Pdf_Element_Reference_Context $_context = null (line 104)

Current reference context

  • access: private
array $_elements = array() (line 111)

Array of elements of the currently parsed object/trailer

  • access: private
Zend_Pdf_ElementFactory $_objFactory = null (line 118)

PDF objects factory.

  • access: private
Methods
Constructor __construct (line 688)

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

  • access: public
Zend_Pdf_StringParser __construct (mixed $source, Zend_Pdf_ElementFactory $factory, string $pdfString)
getLength (line 632)

Get length of source string

  • access: public
integer getLength ()
getObject (line 526)

Read inderect object from a PDF stream

  • access: public
Zend_Pdf_Element_Object getObject (integer $offset, Zend_Pdf_Element_Reference_Context $context)
getString (line 642)

Get source string

  • access: public
string getString ()
isDelimiter (line 149)

Character with code $chCode is a delimiter character

  • static:
  • access: public
boolean isDelimiter (integer $chCode)
  • integer $chCode
isWhiteSpace (line 127)

Character with code $chCode is white space

  • static:
  • access: public
boolean isWhiteSpace (integer $chCode)
  • integer $chCode
parseIntFromStream (line 656)

Parse integer value from a binary stream

  • static:
  • access: public
integer parseIntFromStream (string $stream, integer $offset, integer $size)
  • string $stream
  • integer $offset
  • integer $size
readComment (line 211)

Read comment line

  • access: public
string readComment ()
readElement (line 278)

Read elemental object from a PDF stream

  • access: public
  • throws: Zend_Pdf_Exception
Zend_Pdf_Element readElement ([mixed $nextLexeme = null])
readLexeme (line 239)

Returns next lexeme from a pdf stream

  • access: public
string readLexeme ()
setContext (line 674)

Set current context

  • access: public
void setContext (Zend_Pdf_Element_Reference_Context $context)
skipComment (line 191)

Skip comment

  • access: public
void skipComment ()
skipWhiteSpace (line 174)

Skip white space

  • access: public
void skipWhiteSpace ([boolean $skipComment = true])
  • boolean $skipComment
_readArray (line 417)

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

  • access: private
  • throws: Zend_Pdf_Exception
Zend_Pdf_Element_Array _readArray ()
_readBinaryString (line 388)

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

  • access: private
  • throws: Zend_Pdf_Exception
Zend_Pdf_Element_String_Binary _readBinaryString ()
_readDictionary (line 440)

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

  • access: private
  • throws: Zend_Pdf_Exception
Zend_Pdf_Element_Dictionary _readDictionary ()
_readNumeric (line 509)

Read numeric PDF object

  • access: private
Zend_Pdf_Element_Numeric _readNumeric ([string $nextLexeme = null])
  • string $nextLexeme
_readReference (line 471)

Read reference PDF object

  • access: private
Zend_Pdf_Element_Reference _readReference ([string $nextLexeme = null])
  • string $nextLexeme
_readString (line 347)

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

  • access: private
  • throws: Zend_Pdf_Exception
Zend_Pdf_Element_String _readString ()

Documentation generated on Tue, 18 Apr 2006 11:55:41 -0700 by phpDocumentor 1.3.0RC3