|
PoDoFo 1.1.0
|
A interface that provides the necessary features for a painter to draw onto a PdfObject. More...
#include <PdfCanvas.h>
Public Member Functions | |
| virtual | ~PdfCanvas () |
| Virtual destructor to avoid compiler warnings. | |
| const PdfObject * | GetContentsObject () const |
| Get access to the contents object of this page. | |
| PdfObject * | GetContentsObject () |
| virtual PdfObjectStream & | GetOrCreateContentsStream (PdfStreamAppendFlags flags)=0 |
| Get access an object that you can use to ADD drawing to. | |
| virtual PdfObjectStream & | ResetContentsStream ()=0 |
| Reset the contents object and create a new stream for appending. | |
| charbuff | GetContentsCopy () const |
| void | CopyContentsTo (charbuff &buffer) const |
| virtual void | CopyContentsTo (OutputStream &stream) const =0 |
| PdfResources * | GetResources () |
| Get the resource object of this page. | |
| const PdfResources * | GetResources () const |
| PdfDictionaryElement & | GetElement () |
| const PdfDictionaryElement & | GetElement () const |
| virtual PdfResources & | GetOrCreateResources ()=0 |
| Get or create the resource object of this page. | |
| void | EnsureResourcesCreated () |
| Ensure resources initialized on this canvas. | |
| virtual Corners | GetRectRaw () const =0 |
| Get the current canvas size in PDF Units. | |
| virtual bool | TryGetRotationRadians (double &teta) const =0 |
| Try getting the current canvas rotation. | |
Protected Member Functions | |
| virtual PdfObject * | getContentsObject ()=0 |
| virtual PdfResources * | getResources ()=0 |
| virtual PdfDictionaryElement & | getElement ()=0 |
A interface that provides the necessary features for a painter to draw onto a PdfObject.
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.
|
pure virtual |
Get access an object that you can use to ADD drawing to.
|
pure virtual |
Get or create the resource object of this page.
Get the current canvas size in PDF Units.
Implemented in PoDoFo::PdfPage.
| PdfResources * PdfCanvas::GetResources | ( | ) |
Get the resource object of this page.
Try getting the current canvas rotation.
| teta | counterclockwise rotation in radians |
Implemented in PoDoFo::PdfPage.