PoDoFo
0.9.1
|
#include <PdfCanvas.h>
Public Member Functions | |
virtual | ~PdfCanvas () |
virtual PdfObject * | GetContents () const =0 |
virtual PdfObject * | GetContentsForAppending () const =0 |
virtual PdfObject * | GetResources () const =0 |
virtual const PdfRect | GetPageSize () const =0 |
void | AddColorResource (const PdfColor &rColor) |
void | AddResource (const PdfName &rIdentifier, const PdfReference &rRef, const PdfName &rName) |
Static Public Member Functions | |
static const PdfArray & | GetProcSet () |
A interface that provides the necessary features for a painter to draw onto a PdfObject.
virtual PoDoFo::PdfCanvas::~PdfCanvas | ( | ) | [inline, virtual] |
Virtual destructor to avoid compiler warnings
void PoDoFo::PdfCanvas::AddColorResource | ( | const PdfColor & | rColor | ) |
Register a colourspace for a (separation) colour in the resource dictionary of this page or XObbject so that it can be used for any following drawing operations.
rColor | reference to the PdfColor |
void PoDoFo::PdfCanvas::AddResource | ( | const PdfName & | rIdentifier, |
const PdfReference & | rRef, | ||
const PdfName & | rName | ||
) |
Register an object in the resource dictionary of this page or XObbject so that it can be used for any following drawing operations.
rIdentifier | identifier of this object, e.g. /Ft0 |
rRef | reference to the object you want to register |
rName | register under this key in the resource dictionary |
virtual PdfObject* PoDoFo::PdfCanvas::GetContents | ( | ) | const [pure virtual] |
Get access to the contents object of this page. If you want to draw onto the page, you have to add drawing commands to the stream of the Contents object.
Implemented in PoDoFo::PdfPage, and PoDoFo::PdfXObject.
virtual PdfObject* PoDoFo::PdfCanvas::GetContentsForAppending | ( | ) | const [pure virtual] |
Get access an object that you can use to ADD drawing to. If you want to draw onto the page, you have to add drawing commands to the stream of the Contents object.
Implemented in PoDoFo::PdfPage, and PoDoFo::PdfXObject.
virtual const PdfRect PoDoFo::PdfCanvas::GetPageSize | ( | ) | const [pure virtual] |
Get the current page size in PDF Units
Implemented in PoDoFo::PdfXObject, and PoDoFo::PdfPage.
const PdfArray & PoDoFo::PdfCanvas::GetProcSet | ( | ) | [static] |
Get a reference to a static procset PdfArray.
virtual PdfObject* PoDoFo::PdfCanvas::GetResources | ( | ) | const [pure virtual] |
Get access to the resources object of this page. This is most likely an internal object.
Implemented in PoDoFo::PdfPage, and PoDoFo::PdfXObject.