PoDoFo
1.0.0-dev
|
PdfElement is a common base class for all elements in a PDF file. More...
#include <PdfElement.h>
Inherited by PoDoFo::PdfArrayElement, and PoDoFo::PdfDictionaryElement.
Public Member Functions | |
PdfObject & | GetObject () |
Get access to the internal object. More... | |
const PdfObject & | GetObject () const |
Get access to the internal object This is an overloaded member function. More... | |
PdfDocument & | GetDocument () const |
Protected Member Functions | |
PdfElement (PdfObject &obj) | |
PdfElement (PdfObject &obj, PdfDataType expectedDataType) | |
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. More... | |
PdfElement (const PdfElement &element)=default | |
PdfElement is a common base class for all elements in a PDF file.
For example pages, action and annotations.
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 functionality.
|
protected |
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.
obj | refereence to the PdfObject that is modified by this PdfElement |
expectedDataType | the expected datatype of this object |
|
inline |
Get access to the internal object.
|
inline |
Get access to the internal object This is an overloaded member function.