PDFix SDK  6.5.0
PdsText Struct Referenceabstract

PdsText class. More...

Inheritance diagram for PdsText:
PdsPageObject

Public Member Functions

virtual int GetText (wchar_t *buffer, int len)=0
 Gets the text of the page text element. More...
 
virtual bool GetTextState (PdfDoc *doc, PdfTextState *text_state)=0
 Gets the text state of the text element. More...
 
- Public Member Functions inherited from PdsPageObject
virtual PdfPageObjectType GetObjectType ()=0
 Gets the type of an object. More...
 
virtual void GetBBox (PdfRect *bbox)=0
 
virtual int GetId ()=0
 Gets the ordinal number of a page object. More...
 
virtual void SetRender (bool render)=0
 Set page object element to draw or not while rendering page content. More...
 
virtual PdsObjectGetStructObject (bool struct_parent)=0
 
virtual PdsContentMarkGetContentMark ()=0
 
virtual PdfPageGetPage ()=0
 Gets a reference to the page on 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 (PdfGraphicState *g_state)=0
 
virtual bool SetMatrix (PdfMatrix *matrix)=0
 

Detailed Description

PdsText class.

A PdsText is a text object in a PDF page content.

Member Function Documentation

◆ GetText()

virtual int PdsText::GetText ( wchar_t *  buffer,
int  len 
)
pure virtual

Gets the text of the page text element.

Parameters
buffer(filled by method) If the buffer is null function returns required length of string
lenLength of a buffer to be filled in.
Returns
Number of characters written into buffer of required length.

◆ GetTextState()

virtual bool PdsText::GetTextState ( PdfDoc doc,
PdfTextState text_state 
)
pure virtual

Gets the text state of the text element.

Parameters
docreference to a document in which the text thate should be obtained
text_state(filled by method) A pointer to a PdfTextState structure specifying the text state of a text object.
Returns
true if the text state was successfully retrieved. false othervise