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

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 ( ) [inline, virtual]

Virtual destructor - because ALL destructors should be...


Member Function Documentation

virtual PdfObject* PoDoFo::PdfContents::GetContents ( ) const [inline, virtual]

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".