Class Zend_Pdf_StringParser

Description

PDF string parser

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

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


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

Source PDF

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

Current position in a data

  • access: public
Methods
static isDelimiter (line 143)

Character with code $chCode is a delimiter character

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

Character with code $chCode is white space

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

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

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

Get length of source string

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

Read inderect object from a PDF stream

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

Get source string

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

Read comment line

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

Read elemental object from a PDF stream

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

Returns next lexeme from a pdf stream

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

Set current context

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

Skip comment

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

Skip white space

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

Documentation generated on Sun, 27 May 2007 23:27:58 -0700 by phpDocumentor 1.3.2