#include <PdfElement.h>
Inheritance diagram for PoDoFo::PdfElement:
Public Member Functions | |
PdfObject * | GetObject () |
const PdfObject * | GetObject () const |
Protected Member Functions | |
PdfElement (const char *pszType, PdfVecObjects *pParent) | |
PdfElement (const char *pszType, PdfDocument *pParent) | |
PdfElement (const char *pszType, PdfObject *pObject) | |
PdfElement (EPdfDataType eExpectedDataType, PdfObject *pObject) | |
const char * | TypeNameForIndex (int i, const char **ppTypes, long lLen) const |
int | TypeNameToIndex (const char *pszType, const char **ppTypes, long lLen, int nUnknownValue) const |
PdfObject * | CreateObject (const char *pszType=NULL) |
PdfObject * | GetNonConstObject () const |
Every PDF element has one PdfObject and provides an easier interface to modify the contents of the dictionary.
A PdfElement base class can be created from an existing PdfObject or created from scratch. In the later case, the PdfElement creates a PdfObject and adds it to a vector of objects.
A PdfElement cannot be created directly. Use one of the subclasses which implement real functionallity.
|
Creates a new PdfElement
|
|
Creates a new PdfElement
|
|
Create a PdfElement from an existing PdfObject The object must be a dictionary.
|
|
Create a PdfElement from an existing PdfObject The object might be of any data type, PdfElement will throw an exception if the PdfObject if not of the same datatype as the expected one. This is necessary in rare cases. E.g. in PdfContents.
|
|
Create a PdfObject in the parent of this PdfElement which might either be a PdfStreamedDocument, a PdfDocument or a PdfVecObjects Use this function in an own subclass of PdfElement to create new PdfObjects.
|
|
Get access to the internal object. Use this method if you need access to the internal object in a const-method without having to do a const cast.
|
|
Get access to the internal object This is an overloaded member function.
|
|
Get access to the internal object
|
|
Convert an enum or index to its string representation which can be written to the PDF file. This is a helper function for various PdfElement subclasses that need strings and enums for their SubTypes keys.
|
|
Convert a string type to an array index or enum. This is a helper function for various PdfElement subclasses that need strings and enums for their SubTypes keys.
|