Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

PoDoFo::PdfContentsTokenizer Class Reference

#include <PdfContentsTokenizer.h>

Inheritance diagram for PoDoFo::PdfContentsTokenizer:
Inheritance graph
Collaboration diagram for PoDoFo::PdfContentsTokenizer:
Collaboration graph

List of all members.

Public Member Functions

pdf_long GetNextNumber ()
bool GetNextToken (const char *&pszToken, EPdfTokenType *peType=NULL)
void GetNextVariant (PdfVariant &rVariant, PdfEncrypt *pEncrypt)
bool IsNextToken (const char *pszToken)
 PdfContentsTokenizer (PdfCanvas *pCanvas)
 PdfContentsTokenizer (const char *pBuffer, long lLen)
bool ReadNext (EPdfContentsType &reType, const char *&rpszKeyword, PoDoFo::PdfVariant &rVariant)

Static Public Member Functions

static PODOFO_NOTHROW int GetHexValue (const unsigned char ch)
static PODOFO_NOTHROW bool IsDelimiter (const unsigned char ch)
static PODOFO_NOTHROW bool IsPrintable (const unsigned char ch)
static PODOFO_NOTHROW bool IsRegular (const unsigned char ch)
static PODOFO_NOTHROW bool IsWhitespace (const unsigned char ch)

Static Public Attributes

static const unsigned int HEX_NOT_FOUND = std::numeric_limits<unsigned int>::max()

Protected Member Functions

EPdfDataType DetermineDataType (const char *pszToken, EPdfTokenType eType, PdfVariant &rVariant)
void GetNextVariant (const char *pszToken, EPdfTokenType eType, PdfVariant &rVariant, PdfEncrypt *pEncrypt)
void QuequeToken (const char *pszToken, EPdfTokenType eType)
void ReadArray (PdfVariant &rVariant, PdfEncrypt *pEncrypt)
void ReadDataType (EPdfDataType eDataType, PdfVariant &rVariant, PdfEncrypt *pEncrypt)
void ReadDictionary (PdfVariant &rVariant, PdfEncrypt *pEncrypt)
void ReadHexString (PdfVariant &rVariant, PdfEncrypt *pEncrypt)
void ReadName (PdfVariant &rVariant)
void ReadString (PdfVariant &rVariant, PdfEncrypt *pEncrypt)

Protected Attributes

PdfRefCountedBuffer m_buffer
PdfRefCountedInputDevice m_device

Private Member Functions

bool ReadInlineImgData (EPdfContentsType &reType, const char *&rpszKeyword, PoDoFo::PdfVariant &rVariant)
void SetCurrentContentsStream (PdfObject *pObject)

Private Attributes

std::list< PdfObject * > m_lstContents
 A list containing pointers to all contents objects.
bool m_readingInlineImgData
 A state of reading inline image data.

Detailed Description

This class is a parser for content streams in PDF documents.

The parsed content stream can be used and modified in various ways.

This class is currently work in progress and subject to change!

Definition at line 50 of file PdfContentsTokenizer.h.

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

Generated by  Doxygen 1.6.0   Back to index