71 typedef enum _TextParseFlags {
263 typedef enum _SearchFlags {
652 #endif // FS_SEARCH_H_ int GetMatchStartCharIndex() const
Get the index of the first character of current match pattern, based on current match page...
bool IsEmpty() const
Check whether current object is empty or not.
PageTextLinks(const TextPage &page)
Constructor, from a parsed PDF page.
bool operator==(const TextLink &other) const
Equal operator.
bool operator!=(const PageTextLinks &other) const
Not equal operator.
bool operator==(const PageTextLinks &other) const
Equal operator.
If set, match the case of keyword when searching.
Definition: fs_search.h:267
Definition: fs_common.h:1026
Definition: fs_search.h:256
bool FindPrev()
Search for previous matched pattern.
TextLink & operator=(const TextLink &other)
Assign operator.
bool SetPattern(const wchar_t *key_words)
Set keywords to search.
common::Range GetWordAtPos(float x, float y, float tolerance) const
Get the character range of a word at or around a specified position on the page, in PDF coordinate sy...
bool SetStartPage(int page_index)
Set starting page index.
WIDE STRING CLASS.
Definition: fx_string.h:1463
int GetMatchEndCharIndex() const
Get the index of the last character of current match pattern, based on current match page...
bool operator!=(const TextLink &other) const
Not equal operator.
TextLink GetTextLink(int index)
Get a text link object by index.
bool IsEmpty() const
Check whether current object is empty or not.
Definition: fs_pdfdoc.h:338
If set, match the whole word of keyword when searching.
Definition: fs_search.h:269
bool operator==(const TextSearch &other) const
Equal operator.
RectFArray GetRects()
Get the text rectangles of current text link object.
bool IsEmpty() const
Check whether current object is empty or not.
TextParseFlags
Enumeration for parsing flags used for text page.
Definition: fs_search.h:71
If set, match the key word consecutively when searching. For example, "CC" will be matched twice in "...
Definition: fs_search.h:273
int GetTextRectCount(int start=0, int count=-1)
Count the text rectangles within a range specified by a start index and count.
int GetTextLinkCount()
Get the count of the URL formatted texts, in related PDF page.
~PageTextLinks()
Destructor.
RectF GetTextRect(int rect_index) const
Get the text rectangle by the index.
bool operator==(const TextPage &other) const
Equal operator.
TextSearch & operator=(const TextSearch &other)
Assign operator.
Header file for annotation related definitions and classes.
virtual bool NeedToCancelNow()=0
A callback function used to check whether to cancel the searching process or not. ...
PageTextLinks & operator=(const PageTextLinks &other)
Assign operator.
int GetCharCount() const
Get the count of all the characters.
Definition: fs_search.h:496
Definition: fx_basic.h:1246
bool operator!=(const TextPage &other) const
Not equal operator.
WString GetURI()
Get URI string.
FX_UINT32 uint32
32-bit unsigned integer.
Definition: fs_basictypes.h:195
Definition: fs_pdfpage.h:306
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:213
Header file for common definitions and classes.
int GetMatchPageIndex() const
Get the page index, to which current match belongs.
TextSearch(const PDFDoc &document, SearchCancelCallback *cancel=0)
Constructor, for a PDF document.
No special parsing options for text page.
Definition: fs_search.h:73
WString GetTextInRect(const RectF &rect) const
Get the text within a rectangle, in PDF coordinate system.
bool IsEmpty() const
Check whether current object is empty or not.
Definition: fs_search.h:580
Definition: fs_basictypes.h:333
TextLink(const TextLink &other)
Constructor, with another TextLink object.
Header file for XFA related definitions and functions.
Header file for PDF page related definitions and classes.
bool FindNext()
Search for next matched pattern.
int GetEndCharIndex()
Get the index of last character of current hyper-link URI, based on PDF page.
Definition: fs_annot.h:756
common::Rotation GetBaselineRotation(int rect_index)
Get the text trend (as rotation) of a specified rectangle.
int GetIndexAtPos(float x, float y, float tolerance) const
Get the character index at or around a specified position on the page, in PDF coordinate system...
TextPage & operator=(const TextPage &other)
Assign operator.
Rotation
Enumeration for rotation.
Definition: fs_common.h:219
Foxit namespace.
Definition: fs_connectedpdf.h:26
int GetMatchSentenceStartIndex()
Get the index of the first character of current match pattern, based on the match sentence...
WString GetChars(int start=0, int count=-1) const
Get all the characters within a range specified by a start index and count.
#define NULL
The null-pointer value.
Definition: fx_system.h:767
No special searching options.
Definition: fs_search.h:265
WString GetMatchSentence()
Get the sentence that contains current match pattern.
Parse the text content of a PDF page by the stream order.
Definition: fs_search.h:77
SearchFlags
Enumeration for searching flags.
Definition: fs_search.h:263
TextPage(const PDFPage &page, int flags=foxit::pdf::TextPage::e_ParseTextNormal)
Constructor, from a parsed PDF page.
Definition: fs_search.h:64
Definition: fs_search.h:37
bool SetEndPage(int page_index)
Set ending page index.
bool operator!=(const TextSearch &other) const
Not equal operator.
bool SetSearchFlags(uint32 search_flags)
Set search flags.
Definition: fx_coordinates.h:627
RectFArray GetTextRectArrayByRect(const RectF rect)
Get the array of all text rectangles within the specified rectangle region.
RectFArray GetMatchRects() const
Get the rectangles of current match pattern.
int GetStartCharIndex()
Get the index of start character of current hyper-link URI, based on PDF page.
Parse the text content of a PDF page with outputting the hyphen on a line feed.
Definition: fs_search.h:75