![]() |
PDFix SDK
7.2.0
|
PdeElement class. More...
#include <pdfix.h>
Public Member Functions | |
virtual PdfElementType | GetType () const =0 |
Gets the type of an element. More... | |
virtual void | GetBBox (PdfRect *bbox) const =0 |
virtual bool | SetBBox (const PdfRect *bbox)=0 |
virtual void | GetQuad (PdfQuad *quad) const =0 |
virtual int | GetId ()=0 |
Gets the id of an element. The id is unique number on a page. More... | |
virtual void | GetGraphicState (PdfGraphicState *g_state)=0 |
Gets the graphics state information for an element. More... | |
virtual int | GetNumChildren () const =0 |
Gets the number of child elements in an element object. More... | |
virtual PdeElement * | GetChild (int index)=0 |
Gets the requested child element from an element. More... | |
virtual PdfAlignment | GetAlignment () const =0 |
Gets the element alignment within the content column. More... | |
virtual float | GetAngle () const =0 |
Gets the element angle. More... | |
virtual void | SetData (void *data)=0 |
Sets user-supplied data to pass to the element. More... | |
virtual void * | GetData () const =0 |
Gets user-supplied data to pass to the element. More... | |
virtual bool | SetAlt (const wchar_t *alt)=0 |
Sets the alternate description of the element. More... | |
virtual bool | SetActualText (const wchar_t *text)=0 |
Sets the actual text of the element. More... | |
virtual int | GetTag (wchar_t *buffer, int len) const =0 |
Gets the tag name of the element. More... | |
virtual bool | SetTag (const wchar_t *text)=0 |
Sets the tag name of the element. More... | |
virtual int | GetTagId (wchar_t *buffer, int len) const =0 |
Gets the tag id of the element. More... | |
virtual bool | SetTagId (const wchar_t *id)=0 |
Sets the tag id of the element. More... | |
virtual int | GetFlags () const =0 |
Get the element state flags. More... | |
virtual bool | SetFlags (int flags)=0 |
Set the element state flags. More... | |
virtual int | GetStateFlags () const =0 |
Get the element state flags. More... | |
virtual bool | SetStateFlags (PdfStateFlags flags, bool objects)=0 |
Set the element state flags. More... | |
virtual int | GetNumPageObjects () const =0 |
Get the the number pf page object in the element. More... | |
virtual PdsPageObject * | GetPageObject (int index)=0 |
Get the the page object of the element by index. More... | |
virtual PdePageMap * | GetPageMap ()=0 |
Get the the page map object containing this element. More... | |
virtual PdfLabelType | GetLabelType () const =0 |
Gets the element label type. More... | |
virtual bool | SetLabelType (PdfLabelType type)=0 |
Sets the element type level. More... | |
PdeElement class.
PdeElement is the base class for elements of a pagemap (PdePageMap). The general PdeElement methods allow you to get and set general element properties. PdeElement is an abstract superclass from which the PdeText, PdeTextLine, PdeWord, PdeTable, PdeImage, PdeContainer, PdeLine, PdeRect, PdeTableCell, PdeFormField, PdeHeader, PdeFooter, PdeArtifact classes are derived. Use PdeElement::GetType method to find the type of an element.
|
pure virtual |
Gets the element alignment within the content column.
|
pure virtual |
Gets the element angle.
|
pure virtual |
Gets the bounding box for an element in user space coordinates. To avoid the device-dependent effects of specifying objects in device space, PDF defines a device-independent coordinate system that always bears the same relationship to the current page, regardless of the output device on which printing or displaying occurs. This device-independent coordinate system is called user space. The origin of the user space(0, 0) represents the bottom-left corner of the PDF page. PDF files specify 72 points to 1 physical inch. The returned bounding box is guaranteed to encompass the element.
bbox | (Filled by the method) A pointer to a PdfRect structure specifying the bounding box of an element, specified in user space coordinates. |
|
pure virtual |
Gets the requested child element from an element.
index | The index of element to obtain. |
|
pure virtual |
Gets user-supplied data to pass to the element.
|
pure virtual |
Get the element state flags.
|
pure virtual |
Gets the graphics state information for an element.
g_state | (Filled by the method) Pointer to a PdfGraphicState structure that contains graphics state information for pdeElement. |
|
pure virtual |
Gets the id of an element. The id is unique number on a page.
|
pure virtual |
Gets the element label type.
|
pure virtual |
Gets the number of child elements in an element object.
|
pure virtual |
Get the the number pf page object in the element.
|
pure virtual |
Get the the page map object containing this element.
|
pure virtual |
Get the the page object of the element by index.
|
pure virtual |
Gets the quad for an element in user space coordinates. See GetBBox for more info. The returned quad is guaranteed to encompass the element.
quad | (Filled by the method) A pointer to a PdfQuad structure specifying the bounding quad of an element, specified in user space coordinates. |
|
pure virtual |
Get the element state flags.
|
pure virtual |
Gets the tag name of the element.
buffer | (filled by method) If the buffer is null function returns required length of string |
len | Length of a buffer to be filled in. |
|
pure virtual |
Gets the tag id of the element.
buffer | (filled by method) If the buffer is null function returns required length of string |
len | Length of a buffer to be filled in. |
|
pure virtual |
Gets the type of an element.
|
pure virtual |
Sets the actual text of the element.
alt | The actual text to be set. |
|
pure virtual |
Sets the alternate description of the element.
alt | The alternate decsription to be set. |
|
pure virtual |
Gets the bounding box for an element in user space coordinates. To avoid the device-dependent effects of specifying objects in device space, PDF defines a device-independent coordinate system that always bears the same relationship to the current page, regardless of the output device on which printing or displaying occurs. This device-independent coordinate system is called user space. The origin of the user space(0, 0) represents the bottom-left corner of the PDF page. PDF files specify 72 points to 1 physical inch. The returned bounding box is guaranteed to encompass the element.
bbox | A pointer to a PdfRect structure specifying the bounding box of an element, specified in user space coordinates. |
|
pure virtual |
Sets user-supplied data to pass to the element.
data | User-supplied data to pass to element. |
|
pure virtual |
Set the element state flags.
flags | the PdfElementFlags flags to be set |
|
pure virtual |
Sets the element type level.
type | Sets element label type. |
|
pure virtual |
Set the element state flags.
flags | the PdfStateFlags flags to be set |
objects | set the state flag to all underlying page objects |
|
pure virtual |
Sets the tag name of the element.
alt | The tag name to be set. |
|
pure virtual |
Sets the tag id of the element.
id | The tag id to be set. If empty string passed the previous tag id will be cleared. Null value will auto-generate the tag id. |