Class Zend_Pdf_StringParser

Description

PDF string parser

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

Located in /Pdf/StringParser.php (line 44)


	
			
Variable Summary
 string $data
 integer $offset
Method Summary
 static boolean isDelimiter (integer $chCode)
 static boolean isWhiteSpace (integer $chCode)
 static integer parseIntFromStream (string $stream, integer $offset, integer $size)
 Zend_Pdf_StringParser __construct ( $source, Zend_Pdf_ElementFactory_Interface $factory, string $pdfString)
 void cleanUp ()
 integer getLength ()
 string getString ()
 string readComment ()
 Zend_Pdf_Element readElement ([ $nextLexeme = null])
 string readLexeme ()
 void skipComment ()
 void skipWhiteSpace ([boolean $skipComment = true])
Variables
string $data = '' (line 51)

Source PDF

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

Current position in a data

  • access: public
Methods
static isDelimiter (line 122)

Character with code $chCode is a delimiter character

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

Character with code $chCode is white space

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

Parse integer value from a binary stream

  • access: public
static integer parseIntFromStream (string $stream, integer $offset, integer $size)
  • string $stream
  • integer $offset
  • integer $size
Constructor __construct (line 726)

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 ( $source, Zend_Pdf_ElementFactory_Interface $factory, string $pdfString)
cleanUp (line 87)

Clean up resources.

Clear current state to remove cyclic object references

  • access: public
void cleanUp ()
getLength (line 670)

Get length of source string

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

Read inderect object from a PDF stream

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

Get source string

  • access: public
string getString ()
readComment (line 202)

Read comment line

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

Read elemental object from a PDF stream

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

Returns next lexeme from a pdf stream

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

Set current context

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

Skip comment

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

Skip white space

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

Documentation generated on Mon, 21 Jun 2010 15:47:05 -0400 by phpDocumentor 1.4.3