![]() |
PDFix SDK
7.2.0
|
PdsPageObject class. More...
#include <pdfix.h>
Public Member Functions | |
virtual PdfPageObjectType | GetObjectType () const =0 |
Gets the type of an object. More... | |
virtual void | GetBBox (PdfRect *bbox) const =0 |
virtual void | GetQuad (PdfQuad *quad) const =0 |
virtual int | GetId ()=0 |
Gets the ordinal number of a page object. More... | |
virtual int | GetStateFlags () const =0 |
Get the object state flags. More... | |
virtual bool | SetStateFlags (PdfStateFlags flags)=0 |
Set the object state flags. More... | |
virtual PdsObject * | GetStructObject (bool struct_parent)=0 |
virtual PdsContentMark * | GetContentMark ()=0 |
virtual int | GetMcid ()=0 |
Gets content mark ID for this object or -1 if the object does not have MCID property. More... | |
virtual bool | RemoveTags (PdfContentMarkFlags flags)=0 |
virtual PdfPage * | GetPage ()=0 |
Gets a reference to the page on which the object is present. More... | |
virtual int | GetContentStreamIndex ()=0 |
virtual PdsContent * | GetParentContent ()=0 |
Gets a reference to the content in which the object is present. More... | |
virtual bool | GetGState (PdfGraphicState *g_state)=0 |
Gets the graphic state of the page object. More... | |
virtual bool | SetGState (const PdfGraphicState *g_state)=0 |
virtual bool | TransformCTM (const PdfMatrix *matrix)=0 |
virtual bool | MoveToObject (PdsPageObject *ref_obj, bool after, int dst_tag_index, int obj_tag_index)=0 |
Moves object within a content to another position. More... | |
virtual bool | MoveToContent (PdsContent *content, int index)=0 |
Moves object to another content. More... | |
virtual PdsPageObject * | CopyToContent (PdsContent *content, int index)=0 |
Copies object to another content. More... | |
virtual PdfDoc * | GetDoc ()=0 |
Gets a reference to a document object. More... | |
virtual int | GetNumEqualTags (PdsPageObject *object)=0 |
Count the number of different tags within the marked content of the two page objects. More... | |
virtual int | GetOperatorId ()=0 |
Get the operator index which construcs the object in the page content. More... | |
virtual int | GetContentId ()=0 |
Get the content index which identifies it within the tagged or untagged content. More... | |
virtual int | GetNumContentItemIds ()=0 |
Get the number of content item identifiers within all marked contents. More... | |
virtual int | GetContentItemId (int level)=0 |
virtual bool | RegisterEvent (PdfEventType type, PdsPageObjectEventProc proc, void *data)=0 |
Registers a user-supplied procedure to call when the specified event occurs. More... | |
virtual bool | UnregisterEvent (PdfEventType type, PdsPageObjectEventProc proc, void *data)=0 |
PdsPageObject class.
A PdsPageObject is a general object in a PDF page content, which may be of any PdsPageObject object type. The Object layer provides several methods that are not specific to any particular object.
|
pure virtual |
Copies object to another content.
matrix | A pointer to a PdfMatrix structure |
index | A index where to put a new element into the content. |
|
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 |
Get the content index which identifies it within the tagged or untagged content.
|
pure virtual |
Get the content item index which identifies the object within the current marked content container
|
pure virtual |
Gets content mark for this object. It always return a content mark object even it's empty an has no tags.
|
pure virtual |
Gets an index of the page content stream from which was parset or -1 if the object was created after parsing
|
pure virtual |
Gets a reference to a document object.
|
pure virtual |
Gets the graphic state of the page object.
g_state | (filled by method) A pointer to a PdfGraphicState structure specifying the graphic state of the page object. |
|
pure virtual |
Gets the ordinal number of a page object.
|
pure virtual |
Gets content mark ID for this object or -1 if the object does not have MCID property.
|
pure virtual |
Get the number of content item identifiers within all marked contents.
|
pure virtual |
Count the number of different tags within the marked content of the two page objects.
obj | pointer to the other PdsPageObject |
|
pure virtual |
Gets the type of an object.
|
pure virtual |
Get the operator index which construcs the object in the page content.
|
pure virtual |
Gets a reference to the page on which the object is present.
|
pure virtual |
Gets a reference to the content in which the object is present.
|
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 object state flags.
|
pure virtual |
Gets the corresponding struct element object from the document structure tree. Iterates hierarchy of objects from the structure tree. If there is a reference to the current page object, a structure element object with this reference is returned.
struct_parent | If set to true, ParentTree is used in finding the structure element to which the page object belongs. |
|
pure virtual |
Moves object to another content.
content | A pointer to a PdsContent structure |
index | A index where to put a new element into the content. |
|
pure virtual |
Moves object within a content to another position.
ref_obj | A pointer to a PdsPageObject which is a reference object to move the object to |
after | If true the object is moved after the reference object, false othervise |
dst_tag_index | A index of the last marked content tag of the reference object, which will be applied to the object |
obj_tag_index | A index of the first marked content tag of the object, which will ramain set in the object marked content |
|
pure virtual |
Registers a user-supplied procedure to call when the specified event occurs.
type | The event type. |
proc | A user-supplied callback to call when the event occurs. |
data | A pointer to user-supplied data to pass to proc each time it is called. |
|
pure virtual |
Remove pbject marked content tags. Method removes for example all content marks, artifact tag or mcid property
flags | the PdfContentMarkFlags flags to be used |
|
pure virtual |
Sets the graphics state information for the page object. This method is valid only for PdsForm, PdsImage, PdsPath, and PdsShading objects.
g_state | A pointer to a PdfGraphicState structure with graphics state information to set for the page object |
|
pure virtual |
Set the object state flags.
flags | the PdfStateFlags flags to be set |
|
pure virtual |
Sets the transformation matrix for the page object. This method is valid only for PdsImage object.
matrix | A pointer to a PdfMatrix structure |
|
pure virtual |
Unregisters a user-supplied procedure to call when the specified event occurs. To un-register, you must use same type, proc and data that were used when the event was registered using Pdfix::RegisterEvent.
type | The registered event type. |
proc | A registered user-supplied callback. |
data | A pointer to registered user-supplied data. |