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::PdfParserObject Class Reference

#include <PdfParserObject.h>

Inheritance diagram for PoDoFo::PdfParserObject:
Inheritance graph
Collaboration diagram for PoDoFo::PdfParserObject:
Collaboration graph

List of all members.

Public Member Functions

void Clear ()
void DelayedStreamLoad () const
void FlateCompressStream ()
void FreeObjectMemory (bool bForce=false)
const PdfArrayGetArray () const
PdfArrayGetArray ()
bool GetBool () const
pdf_long GetByteOffset (const char *pszKey, EPdfWriteMode eWriteMode)
EPdfDataType GetDataType () const
const char * GetDataTypeString () const
const PdfDictionaryGetDictionary () const
PdfDictionaryGetDictionary ()
bool GetImmutable () const
PdfObjectGetIndirectKey (const PdfName &key) const
const PdfNameGetName () const
pdf_long GetNextNumber ()
bool GetNextToken (const char *&pszToken, EPdfTokenType *peType=NULL)
void GetNextVariant (PdfVariant &rVariant, PdfEncrypt *pEncrypt)
pdf_int64 GetNumber () const
pdf_long GetObjectLength (EPdfWriteMode eWriteMode)
PdfVecObjectsGetOwner () const
PdfObjectGetParent () const
const PdfDataGetRawData () const
PdfDataGetRawData ()
double GetReal () const
const PdfReferenceGetReference () const
const PdfStreamGetStream () const
PdfStreamGetStream ()
const PdfStringGetString () const
bool HasStream () const
bool HasStreamToParse () const
bool IsArray () const
bool IsBool () const
bool IsDictionary () const
bool IsDirty () const
bool IsEmpty () const
bool IsHexString () const
bool IsLoadOnDemand () const
bool IsName () const
bool IsNextToken (const char *pszToken)
bool IsNull () const
bool IsNumber () const
bool IsRawData () const
bool IsReal () const
bool IsReference () const
bool IsString () const
PdfObjectMustGetIndirectKey (const PdfName &key) const
bool operator!= (const PdfVariant &rhs) const
PODOFO_NOTHROW bool operator< (const PdfObject &rhs) const
bool operator== (const PdfVariant &rhs) const
PODOFO_NOTHROW bool operator== (const PdfObject &rhs) const
void ParseFile (PdfEncrypt *pEncrypt, bool bIsTrailer=false)
 PdfParserObject (PdfVecObjects *pCreator, const PdfRefCountedInputDevice &rDevice, const PdfRefCountedBuffer &rBuffer, pdf_long lOffset=-1)
 PdfParserObject (const PdfRefCountedBuffer &rBuffer)
const PdfReferenceReference () const
void SetBool (bool b)
void SetImmutable (bool bImmutable)
void SetLoadOnDemand (bool bDelayed)
void SetNumber (long l)
void SetObjectNumber (unsigned int nObjNo)
void SetOwner (PdfVecObjects *pVecObjects)
void SetReal (double d)
void ToString (std::string &rsData, EPdfWriteMode eWriteMode=ePdfWriteMode_Clean) const
virtual void Write (PdfOutputDevice *pDevice, EPdfWriteMode eWriteMode, const PdfEncrypt *pEncrypt, const PdfName &keyStop) const
void Write (PdfOutputDevice *pDevice, EPdfWriteMode eWriteMode, const PdfEncrypt *pEncrypt=NULL) const
void WriteObject (PdfOutputDevice *pDevice, EPdfWriteMode eWriteMode, PdfEncrypt *pEncrypt, const PdfName &keyStop=PdfName::KeyNull) const

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()
static PdfVariant NullValue

Protected Member Functions

void AssertMutable () const
void DelayedLoad () const
PODOFO_NOTHROW bool DelayedLoadDone () const
virtual void DelayedLoadImpl ()
PODOFO_NOTHROW bool DelayedStreamLoadDone () const
virtual void DelayedStreamLoadImpl ()
EPdfDataType DetermineDataType (const char *pszToken, EPdfTokenType eType, PdfVariant &rVariant)
void EnableDelayedLoading ()
void EnableDelayedStreamLoading ()
const PdfArrayGetArray_NoDL () const
PdfArrayGetArray_NoDL ()
const PdfDictionaryGetDictionary_NoDL () const
PdfDictionaryGetDictionary_NoDL ()
void GetNextVariant (const char *pszToken, EPdfTokenType eType, PdfVariant &rVariant, PdfEncrypt *pEncrypt)
PdfStreamGetStream_NoDL ()
void ParseStream ()
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)
void SetDirty (bool bDirty)

Protected Attributes

PdfRefCountedBuffer m_buffer
PdfRefCountedInputDevice m_device
PdfReference m_reference

Private Member Functions

void InitPdfParserObject ()
void ParseFileComplete (bool bIsTrailer)
void ReadObjectNumber ()

Private Attributes

bool m_bIsTrailer
bool m_bLoadOnDemand
bool m_bStream
pdf_long m_lOffset
pdf_long m_lStreamOffset

Detailed Description

A PdfParserObject constructs a PdfObject from a PDF file. Parsing starts always at the current file position.

Definition at line 37 of file PdfParserObject.h.

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

Generated by  Doxygen 1.6.0   Back to index