PoDoFo 0.9.20
|
#include <PdfCanvas.h>
Public Member Functions | |
virtual | ~PdfCanvas () |
const PdfObject * | GetContentsObject () const |
virtual PdfObjectStream & | GetStreamForAppending (PdfStreamAppendFlags flags)=0 |
PdfObject * | GetFromResources (const std::string_view &type, const std::string_view &key) |
PdfResources * | GetResources () |
virtual PdfResources & | GetOrCreateResources ()=0 |
virtual void | EnsureResourcesCreated ()=0 |
virtual Rect | GetRectRaw () const =0 |
virtual bool | HasRotation (double &teta) const =0 |
A interface that provides the necessary features for a painter to draw onto a PdfObject.
|
virtual |
Virtual destructor to avoid compiler warnings
|
pure virtual |
Ensure resources initialized on this canvas
const PdfObject * PdfCanvas::GetContentsObject | ( | ) | const |
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.
PdfObject * PoDoFo::PdfCanvas::GetFromResources | ( | const std::string_view & | type, |
const std::string_view & | key ) |
Get an element from the pages resources dictionary, using a type (category) and a key.
type | the type of resource to fetch (e.g. /Font, or /XObject) |
key | the key of the resource |
|
pure virtual |
Get or create the resource object of this page.
Implemented in PoDoFo::PdfPage.
|
pure virtual |
Get the current canvas size in PDF Units
Implemented in PoDoFo::PdfPage.
PdfResources * PdfCanvas::GetResources | ( | ) |
Get the resource object of this page.
|
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.
|
pure virtual |
Get the current canvas rotation
teta | counterclockwise rotation in radians |
Implemented in PoDoFo::PdfPage.