25 #ifndef _FSPDF_TEXTPAGE_R_H_ 26 #define _FSPDF_TEXTPAGE_R_H_ 66 #ifndef _FSPDF_DEF_HANDLE_TEXTPAGE_ 67 #define _FSPDF_DEF_HANDLE_TEXTPAGE_ 70 FSCRT_DEFINEHANDLE(FSPDF_TEXTPAGE);
74 #ifndef _FSPDF_DEF_HANDLE_TEXTSELECTION_ 75 #define _FSPDF_DEF_HANDLE_TEXTSELECTION_ 78 FSCRT_DEFINEHANDLE(FSPDF_TEXTSELECTION);
82 #ifndef _FSPDF_DEF_HANDLE_TEXTSEARCH_ 83 #define _FSPDF_DEF_HANDLE_TEXTSEARCH_ 86 FSCRT_DEFINEHANDLE(FSPDF_TEXTSEARCH);
90 #ifndef _FSPDF_DEF_HANDLE_TEXTLINK_ 91 #define _FSPDF_DEF_HANDLE_TEXTLINK_ 94 FSCRT_DEFINEHANDLE(FSPDF_TEXTLINK);
98 #ifndef _FSPDF_DEF_MACRO_TEXTPAGE_CHARSTATE_ 99 #define _FSPDF_DEF_MACRO_TEXTPAGE_CHARSTATE_ 107 #define FSPDF_TEXTPAGE_CHARSTATE_NORMAL 1 109 #define FSPDF_TEXTPAGE_CHARSTATE_GENERATED 2 111 #define FSPDF_TEXTPAGE_CHARSTATE_NONUNICODE 3 117 #ifndef _FSPDF_DEF_MACRO_TEXT_PARSEOPTION 118 #define _FSPDF_DEF_MACRO_TEXT_PARSEOPTION 125 #define FSPDF_TEXT_PARSEOPTION_STREAMORDER 0x0001 127 #define FSPDF_TEXT_PARSEOPTION_OUTPUTHYPHEN 0x0002 132 #ifndef _FSPDF_DEF_STRUCTURE_TEXTPAGE_CHARINFO_ 133 #define _FSPDF_DEF_STRUCTURE_TEXTPAGE_CHARINFO_ 138 typedef struct _TEXTPAGE_CHARINFO_
780 FSPDF_TEXTSEARCH* textSearch);
FS_RESULT FSPDF_TextPage_CountChars(FSPDF_TEXTPAGE textPage, FS_INT32 *count)
Get count of characters in a page.
FSCRT_MATRIX matrix
Matrix of character.
Definition: fpdf_textpage_r.h:166
Structure for rectangle, in float.
Definition: fs_base_r.h:2078
float FS_FLOAT
32-bit floating-point number, single precision.
Definition: fs_base_r.h:148
FS_RESULT FSPDF_TextPage_Release(FSPDF_TEXTPAGE textPage)
Release all resources allocated for a PDF text page handle.
FS_RESULT FSPDF_TextPage_LoadWithOption(FSCRT_PAGE pdfPage, FS_INT32 option, FSPDF_TEXTPAGE *textPage)
Prepare information of all characters in a page, with option.
FS_RESULT FSPDF_TextPage_GetChars(FSPDF_TEXTPAGE textPage, FS_INT32 start, FS_INT32 count, FSCRT_BSTR *chars)
Get text content in a page, within a specific character range.
FS_RESULT FSPDF_TextLink_Release(FSPDF_TEXTLINK textLink)
Release all resources allocated for a PDF text link handle.
FS_RESULT FSPDF_TextLink_GetSelection(FSPDF_TEXTLINK textLink, FS_INT32 linkIndex, FSPDF_TEXTSELECTION *textSelection)
Get a PDF text selection handle from a specific hyperlink.
FS_FLOAT originY
Y position of the character origin. -1 means error.
Definition: fpdf_textpage_r.h:162
unsigned int FS_DWORD
32-bit unsigned integer.
Definition: fs_base_r.h:142
FS_RESULT FSPDF_TextPage_GetCharIndexAtPos(FSPDF_TEXTPAGE textPage, FS_FLOAT x, FS_FLOAT y, FS_FLOAT tolerance, FS_INT32 *charIndex)
Get the character index at or around a specific position on the page.
FS_RESULT FSPDF_TextPage_ExportToFile(FSPDF_TEXTPAGE textPage, FSCRT_FILE file)
Export text content in a page to a specific file handle.
FS_RESULT FSPDF_TextPage_ExtractLinks(FSPDF_TEXTPAGE textPage, FSPDF_TEXTLINK *textLink)
Process a PDF page text object to get URL formatted texts (as hyperlinks).
int FS_INT32
32-bit signed integer.
Definition: fs_base_r.h:175
Structure for character's information definition.
Definition: fpdf_textpage_r.h:138
FS_RESULT FSPDF_TextPage_GetCharInfo(FSPDF_TEXTPAGE textPage, FS_INT32 charIndex, FSPDF_TEXTPAGE_CHARINFO *info)
Get character information of a specific character.
FS_FLOAT fontSize
Font size of character, measured in points (about 1/72 inch).
Definition: fpdf_textpage_r.h:158
FS_RESULT FSPDF_TextSelection_GetVisibleSelection(FSPDF_TEXTSELECTION textSelection, FSPDF_LAYERCONTEXT context, FSPDF_TEXTSELECTION *visibleSelection)
Get a new PDF text selected area of visible content from a specific a PDF text selected area...
Structure for PDF layer nodes.
Definition: fpdf_layer_r.h:143
FS_RESULT FSPDF_TextPage_StartSearch(FSPDF_TEXTPAGE textPage, const FSCRT_BSTR *searchPattern, FS_DWORD flags, FS_INT32 startIndex, FSPDF_TEXTSEARCH *textSearch)
Start a PDF text search process.
FS_RESULT FSPDF_TextSearch_GetSelection(FSPDF_TEXTSEARCH textSearch, FSPDF_TEXTSELECTION *textSelection)
Get a text selection handle from a text search when a match is found.
FS_RESULT FSPDF_TextSelection_GetBBox(FSPDF_TEXTSELECTION textSelection, FSCRT_RECTF *bbox)
Get bounding box(a rectangular area) of a PDF text selected area.
FS_RESULT FSPDF_TextSelection_Release(FSPDF_TEXTSELECTION textSelection)
Release all resources allocated for a PDF text selection handle.
int FS_BOOL
Boolean type (This should be TRUE or FALSE).
Definition: fs_base_r.h:133
FS_RESULT FSPDF_TextPage_SelectByRange(FSPDF_TEXTPAGE textPage, FS_INT32 start, FS_INT32 count, FSPDF_TEXTSELECTION *textSelection)
Get a text selection handle by specific character range.
FSCRT_RECTF bbox
4 positions (left, bottom, right, top)of character's bounding box.
Definition: fpdf_textpage_r.h:164
FS_RESULT FSPDF_TextPage_GetUnicode(FSPDF_TEXTPAGE textPage, FS_INT32 index, FS_DWORD *unicode)
Get the unicode representation of a character in a page.
FS_RESULT FSPDF_TextSelection_GetChars(FSPDF_TEXTSELECTION textSelection, FSCRT_BSTR *chars)
Extract the whole text from a PDF text selected area.
FS_RESULT FSPDF_TextSelection_GetPieceCharRange(FSPDF_TEXTSELECTION textSelection, FS_INT32 pieceIndex, FS_INT32 *start, FS_INT32 *count)
Get index of the start character and the count of characters of a specific segment.
FS_INT32 state
State of character.
Definition: fpdf_textpage_r.h:152
FS_RESULT FSPDF_TextSearch_FindPrev(FSPDF_TEXTSEARCH textSearch, FS_BOOL *isMatch)
Search in the direction from end to start of the page.
FS_RESULT FSPDF_TextLink_CountLinks(FSPDF_TEXTLINK textLink, FS_INT32 *linkCount)
Get count of the URL formatted texts inside a page.
FS_RESULT FSPDF_TextLink_GetLink(FSPDF_TEXTLINK textLink, FS_INT32 linkIndex, FSCRT_BSTR *linkURI)
Get the linked URL associated with a specific hyperlink.
FS_RESULT FSPDF_TextSearch_Release(FSPDF_TEXTSEARCH textSearch)
Release all resources allocated for a PDF text search handle.
Structure for 2D matrix.
Definition: fs_base_r.h:2130
FS_FLOAT originX
X position of the character origin. -1 means error.
Definition: fpdf_textpage_r.h:160
Structure for byte string.
Definition: fs_base_r.h:611
FS_RESULT FSPDF_TextSelection_GetPieceRect(FSPDF_TEXTSELECTION textSelection, FS_INT32 pieceIndex, FSCRT_RECTF *rect)
Get rectangular area of a specific segment, based on the result of the fucntion FSPDF_TextSelection_C...
Structure for array.
Definition: fs_base_r.h:813
FSCRT_FONT font
Font handle of the character.
Definition: fpdf_textpage_r.h:146
FS_RESULT FSPDF_TextPage_SelectByRectangle(FSPDF_TEXTPAGE textPage, const FSCRT_RECTF *rect, FSPDF_TEXTSELECTION *textSelection)
Get a text selection handle by specific rectangle.
FS_RESULT FSPDF_TextPage_Load(FSCRT_PAGE pdfPage, FSPDF_TEXTPAGE *textPage)
Prepare information of all characters in a page.
FS_RESULT FSPDF_TextSelection_GetPieceRotation(FSPDF_TEXTSELECTION textSelection, FS_INT32 pieceIndex, FS_INT32 *rotation)
Get rotation of the specific segment, based on the result returned by function FSPDF_TextSelection_Co...
FS_RESULT FSPDF_TextSelection_CountPieces(FSPDF_TEXTSELECTION textSelection, FS_INT32 *count)
Count the number of all rectangular areas of segments in a PDF text selected area.
FS_RESULT FSPDF_TextSelection_GetLayerArray(FSPDF_TEXTSELECTION textSelection, FSPDF_LAYERNODE *layers, FSCRT_ARRAY *layerArray)
Get the layer array associated with a PDF text selected area.
int FS_RESULT
Result code for functions in Foxit PDF SDK.
Definition: fs_base_r.h:160
FS_RESULT FSPDF_TextSearch_FindNext(FSPDF_TEXTSEARCH textSearch, FS_BOOL *isMatch)
Search in the direction from start to end of the page.