HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.pdf.PdfContentParser Class Reference

Public Member Functions

 PdfContentParser (PRTokeniser tokeniser)
 
ArrayList Parse (ArrayList ls)
 
PRTokeniser GetTokeniser ()
 
PdfDictionary ReadDictionary ()
 
PdfArray ReadArray ()
 
PdfObject ReadPRObject ()
 
bool NextValidToken ()
 

Static Public Attributes

const int COMMAND_TYPE = 200
 

Properties

PRTokeniser Tokeniser [get, set]
 

Detailed Description

Parses the page or template content.

Author
Paulo Soares (psoar.nosp@m.es@c.nosp@m.onsis.nosp@m.te.p.nosp@m.t)

Constructor & Destructor Documentation

◆ PdfContentParser()

iTextSharp.text.pdf.PdfContentParser.PdfContentParser ( PRTokeniser  tokeniser)

Creates a new instance of PdfContentParser

Parameters
tokeniserthe tokeniser with the content

Member Function Documentation

◆ GetTokeniser()

PRTokeniser iTextSharp.text.pdf.PdfContentParser.GetTokeniser ( )

Gets the tokeniser.

Returns
the tokeniser.

◆ NextValidToken()

bool iTextSharp.text.pdf.PdfContentParser.NextValidToken ( )

Reads the next token skipping over the comments.

Returns
true if a token was read, false if the end of content was reached
Exceptions
IOExceptionon error

◆ Parse()

ArrayList iTextSharp.text.pdf.PdfContentParser.Parse ( ArrayList  ls)

Parses a single command from the content. Each command is output as an array of arguments having the command itself as the last element. The returned array will be empty if the end of content was reached.

Parameters
lsan ArrayList to use. It will be cleared before using. If it's null will create a new ArrayList
Returns
the same ArrayList given as argument or a new one
Exceptions
IOExceptionon error

◆ ReadArray()

PdfArray iTextSharp.text.pdf.PdfContentParser.ReadArray ( )

Reads an array. The tokeniser must be positioned past the "[" token.

Returns
an array
Exceptions
IOExceptionon error

◆ ReadDictionary()

PdfDictionary iTextSharp.text.pdf.PdfContentParser.ReadDictionary ( )

Reads a dictionary. The tokeniser must be positioned past the "<<" token.

Returns
the dictionary
Exceptions
IOExceptionon error

◆ ReadPRObject()

PdfObject iTextSharp.text.pdf.PdfContentParser.ReadPRObject ( )

Reads a pdf object.

Returns
the pdf object
Exceptions
IOExceptionon error

Member Data Documentation

◆ COMMAND_TYPE

const int iTextSharp.text.pdf.PdfContentParser.COMMAND_TYPE = 200
static

Commands have this type.

Property Documentation

◆ Tokeniser

PRTokeniser iTextSharp.text.pdf.PdfContentParser.Tokeniser
getset

Sets the tokeniser.

Parameters
tokeniserthe tokeniser

The documentation for this class was generated from the following file: