PoDoFo 0.9.6
|
#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.
|
inlinevirtual |
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 XObject 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 |
|
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.
|
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.
|
pure virtual |
Get the current page size in PDF Units
Implemented in PoDoFo::PdfPage, and PoDoFo::PdfXObject.
|
static |
|
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.