PoDoFo 0.9.6
|
#include <PdfXObject.h>
Public Member Functions | |
PdfXObject (const PdfRect &rRect, PdfDocument *pParent, const char *pszPrefix=NULL, bool bWithoutObjNum=false) | |
PdfXObject (const PdfRect &rRect, PdfVecObjects *pParent, const char *pszPrefix=NULL) | |
PdfXObject (const PdfMemDocument &rSourceDoc, int nPage, PdfDocument *pParent, const char *pszPrefix=NULL, bool bUseTrimBox=false) | |
PdfXObject (PdfDocument *pDoc, int nPage, const char *pszPrefix=NULL, bool bUseTrimBox=false) | |
PdfXObject (PdfObject *pObject) | |
virtual PdfObject * | GetContents () const |
virtual PdfObject * | GetContentsForAppending () const |
virtual PdfObject * | GetResources () const |
virtual const PdfRect | GetPageSize () const |
const PdfName & | GetIdentifier () const |
const PdfReference & | GetObjectReference () const |
![]() | |
PdfObject * | GetObject () |
const PdfObject * | GetObject () const |
![]() | |
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) |
Additional Inherited Members | |
![]() | |
static const PdfArray | GetProcSet () |
![]() | |
PdfElement (const char *pszType, PdfVecObjects *pParent) | |
PdfElement (const char *pszType, PdfDocument *pParent) | |
PdfElement (const char *pszType, PdfObject *pObject) | |
PdfElement (EPdfDataType eExpectedDataType, PdfObject *pObject) | |
const char * | TypeNameForIndex (int i, const char **ppTypes, long lLen) const |
int | TypeNameToIndex (const char *pszType, const char **ppTypes, long lLen, int nUnknownValue) const |
PdfObject * | CreateObject (const char *pszType=NULL) |
PdfObject * | GetNonConstObject () const |
A XObject is a content stream with several drawing commands and data which can be used throughout a PDF document.
You can draw on a XObject like you would draw onto a page and can draw this XObject later again using a PdfPainter.
PoDoFo::PdfXObject::PdfXObject | ( | const PdfRect & | rRect, |
PdfDocument * | pParent, | ||
const char * | pszPrefix = NULL , |
||
bool | bWithoutObjNum = false |
||
) |
Create a new XObject with a specified dimension in a given document
rRect | the size of the XObject |
pParent | the parent document of the XObject |
pszPrefix | optional prefix for XObject-name |
bWithoutObjNum | do not create an object identifier name |
PoDoFo::PdfXObject::PdfXObject | ( | const PdfRect & | rRect, |
PdfVecObjects * | pParent, | ||
const char * | pszPrefix = NULL |
||
) |
Create a new XObject with a specified dimension in a given vector of PdfObjects
rRect | the size of the XObject |
pParent | the parent vector of the XObject |
pszPrefix | optional prefix for XObject-name |
PoDoFo::PdfXObject::PdfXObject | ( | const PdfMemDocument & | rSourceDoc, |
int | nPage, | ||
PdfDocument * | pParent, | ||
const char * | pszPrefix = NULL , |
||
bool | bUseTrimBox = false |
||
) |
Create a new XObject from a page of another document in a given document
rSourceDoc | the document to create the XObject from |
nPage | the page-number in rDoc to create the XObject from |
pParent | the parent document of the XObject |
pszPrefix | optional prefix for XObject-name |
bUseTrimBox | if true try to use trimbox for size of xobject |
PoDoFo::PdfXObject::PdfXObject | ( | PdfDocument * | pDoc, |
int | nPage, | ||
const char * | pszPrefix = NULL , |
||
bool | bUseTrimBox = false |
||
) |
Create a new XObject from an existing page
pDoc | the document to create the XObject at |
nPage | the page-number in pDoc to create the XObject from |
pszPrefix | optional prefix for XObject-name |
bUseTrimBox | if true try to use trimbox for size of xobject |
PoDoFo::PdfXObject::PdfXObject | ( | PdfObject * | pObject | ) |
Create a XObject from an existing PdfObject
pObject | an existing object which has to be a XObject |
|
inlinevirtual |
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.
The contents object is a this pointer in this case.
Implements PoDoFo::PdfCanvas.
|
inlinevirtual |
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.
The contents object is a this pointer in this case.
Implements PoDoFo::PdfCanvas.
|
inline |
Get the identifier used for drawig this object
|
inline |
|
inlinevirtual |
Get the current page size in PDF Units
Implements PoDoFo::PdfCanvas.
|
inlinevirtual |
Get access to the resources object of this page. This is most likely an internal object.
Implements PoDoFo::PdfCanvas.