Class Zend_Pdf_StringParser

Description

PDF string parser

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

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


	
			
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 $factory, string $pdfString)
 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 87)

Source PDF

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

Current position in a data

  • access: public
Methods
static isDelimiter (line 146)

Character with code $chCode is a delimiter character

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

Character with code $chCode is white space

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

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 685)

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 $factory, string $pdfString)
getLength (line 629)

Get length of source string

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

Read inderect object from a PDF stream

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

Get source string

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

Read comment line

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

Read elemental object from a PDF stream

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

Returns next lexeme from a pdf stream

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

Set current context

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

Skip comment

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

Skip white space

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

Documentation generated on Wed, 21 Feb 2007 12:00:36 -0800 by phpDocumentor 1.3.1