![]() |
PDFix SDK
6.12.0
|
Public Member Functions | |
virtual void | GetBBox (PdfRect *bbox) const =0 |
virtual void | GetQuad (PdfQuad *quad) const =0 |
virtual int | GetText (wchar_t *buffer, int len) const =0 |
Gets the text of the word element. More... | |
virtual int | GetNumChars () const =0 |
Gets the number of characters in word. More... | |
virtual int | GetCharCode (int index) const =0 |
Gets the text of one character of the word. More... | |
virtual int | GetCharText (int index, wchar_t *buffer, int len) const =0 |
Gets the text of one character of the word. More... | |
virtual void | GetCharTextState (int index, PdfTextState *text_state) const =0 |
Gets the text state information of the word character. More... | |
virtual void | GetCharBBox (int index, PdfRect *bbox) const =0 |
Gets the bounding box of one character in user space coordinates. More... | |
virtual int | GetNumTextRuns () const =0 |
Gets the number of text runs in word. More... | |
virtual PdsTextRun * | GetTextRunAt (int index)=0 |
Gets the text run at the index. More... | |
PdsWord class.
A PdsWord object represents a word in a PDF file. Each word contains a sequence of characters in one or more styles. Each word consists of multiple textruns.
See also PdeWord.
|
pure virtual |
Gets the bounding box for a word 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 word.
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 bounding box of one character in user space coordinates.
index | The index of a character. |
bbox | (Filled by the method) A pointer to a PdfRect structure specifying the bounding box of a character, specified in user space coordinates. |
|
pure virtual |
Gets the text of one character of the word.
index | The index of a character. |
|
pure virtual |
Gets the text of one character of the word.
index | The index of a character. |
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 text state information of the word character.
index | The index of a character. |
text_state | (filled by method) A pointer to a PdfTextState structure specifying the text state of a character. |
|
pure virtual |
Gets the number of characters in word.
|
pure virtual |
Gets the number of text runs in word.
|
pure virtual |
Gets the quad for a word 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 |
Gets the text of the word 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 text run at the index.
index | The index of a textrun. |