PoDoFo  0.9.1
Public Member Functions
PoDoFo::PdfContents Class Reference

#include <PdfContents.h>

Inheritance diagram for PoDoFo::PdfContents:
PoDoFo::PdfElement

List of all members.

Public Member Functions

 PdfContents (PdfDocument *pParent)
 PdfContents (PdfVecObjects *pParent)
 PdfContents (PdfObject *inObj)
 PdfContents (PdfPage *pParent)
virtual ~PdfContents ()
virtual PdfObjectGetContents () const
virtual PdfObjectGetContentsForAppending () const

Additional Inherited Members

- Private Member Functions inherited from PoDoFo::PdfElement
PdfObjectGetObject ()
const PdfObjectGetObject () const
 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
PdfObjectCreateObject (const char *pszType=NULL)
PdfObjectGetNonConstObject () const

Detailed Description

A interface that provides a wrapper around "PDF content" - the instructions that are used to draw on the PDF "canvas".


Constructor & Destructor Documentation

PoDoFo::PdfContents::PdfContents ( PdfDocument pParent)

Construct a new/empty set of contents in the owning objects

PoDoFo::PdfContents::PdfContents ( PdfVecObjects pParent)

Construct a new/empty set of contents in the owning objects

PoDoFo::PdfContents::PdfContents ( PdfObject inObj)

Construct the contents from an existing PdfObject

PoDoFo::PdfContents::PdfContents ( PdfPage pParent)

Create the contents for an existing page which does not yet have a contents object.

Parameters:
pParenta /Contents key will be added to this page and a contents object will be created.
virtual PoDoFo::PdfContents::~PdfContents ( )
inlinevirtual

Virtual destructor - because ALL destructors should be...


Member Function Documentation

virtual PdfObject* PoDoFo::PdfContents::GetContents ( ) const
inlinevirtual

Get access to the raw contents object. It will either be a PdfStream or a PdfArray

Returns:
a contents object
PdfObject * PoDoFo::PdfContents::GetContentsForAppending ( ) const
virtual

Get access to an object into which you can add contents at the end of the "stream".