#include <PdfParserObject.h>
Inheritance diagram for PoDoFo::PdfParserObject:
Public Member Functions | |
PdfParserObject (PdfVecObjects *pCreator, const PdfRefCountedInputDevice &rDevice, const PdfRefCountedBuffer &rBuffer, pdf_long lOffset=-1) | |
PdfParserObject (const PdfRefCountedBuffer &rBuffer) | |
void | ParseFile (PdfEncrypt *pEncrypt, bool bIsTrailer=false) |
bool | HasStreamToParse () const |
bool | IsLoadOnDemand () const |
void | SetLoadOnDemand (bool bDelayed) |
void | SetObjectNumber (unsigned int nObjNo) |
void | FreeObjectMemory (bool bForce=false) |
Protected Member Functions | |
virtual void | DelayedLoadImpl () |
virtual void | DelayedStreamLoadImpl () |
void | ParseStream () |
|
Parse the object data from the given file handle starting at the current position.
|
|
Parse the object data for an internal object. You have to call ParseDictionaryKeys as next function call. The following two parameters are used to avoid allocation of a new buffer in PdfSimpleParser.
|
|
Load all data of the object if load object on demand is enabled. Reimplemented from PdfVariant. Do not call this directly, use DelayedLoad(). Reimplemented from PoDoFo::PdfVariant. |
|
Load the stream of the object if it has one and if loading on demand is enabled. Reimplemented from PdfObject. Do not call this directly, use DelayedStreamLoad(). Reimplemented from PoDoFo::PdfObject. |
|
Tries to free all memory allocated by this PdfObject (variables and streams) and reads it from disk again if it is requested another time. This will only work if load on demand is used. If the object is dirty if will not be free'd.
|
|
Returns if this object has a stream object appended. which has to be parsed.
|
|
|
|
Parse the object data from the given file handle If delayed loading is enabled, only the object and generation number is read now and everything else is read later.
|
|
Starts reading at the file position m_lStreamOffset and interprets all bytes as contents of the objects stream. It is assumed that the dictionary has a valid /Length key already. Called from DelayedStreamLoadImpl(). Do not call directly. |
|
Sets wether this object shall be loaded on demand when it's data is accessed for the first time.
|
|
Set the object number of this object. It is almost never necessary to use this call. It is only included for usage in the PdfParser.
|