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