Definitions for all the deprecated macros, structures and functions of Foxit PDF SDK.
Definitions and functions in this module are included in fs_obsolete.h, and not recommend to use them any more.
More...
Classes | |
struct | FSPDF_ACTION_HANDLER |
Structure for action handler information. More... | |
struct | FSPDF_ENUMPAGESIZEHANDLER |
Structure for page size enumeration. More... | |
Macros | |
#define | FSPDF_RENDERCONTEXTFLAG_LIMITEDIMAGECACHE 0x0010 |
Limit image cache size. More... | |
Functions | |
FS_RESULT | FSPDF_Doc_SetActionHandler (FSCRT_DOCUMENT document, FSPDF_ACTION_HANDLER *actionHandler) |
Set the action handler to the PDF document. More... | |
FS_RESULT | FSPDF_Doc_EnumAllPageSize (FSCRT_DOCUMENT document, FSPDF_ENUMPAGESIZEHANDLER *enumHandler) |
Enumerate the size of all page. More... | |
FS_RESULT | FSPDF_TextPage_GetNextCharIndexByDirection (FSPDF_TEXTPAGE textPage, FS_INT32 curIndex, FS_INT32 direction, FS_INT32 *nextIndex) |
Get index of next character of a specific character in a specific direction. More... | |
Macro Definitions for Text Direction Flags | |
| |
#define | FSPDF_TEXTDIRECTION_LEFT -1 |
Text direction: left. | |
#define | FSPDF_TEXTDIRECTION_RIGHT 1 |
Text direction: right. | |
#define | FSPDF_TEXTDIRECTION_UP -2 |
Text direction: up. | |
#define | FSPDF_TEXTDIRECTION_DOWN 2 |
Text direction: down. | |
Definitions for all the deprecated macros, structures and functions of Foxit PDF SDK.
Definitions and functions in this module are included in fs_obsolete.h, and not recommend to use them any more.
#define FSPDF_RENDERCONTEXTFLAG_LIMITEDIMAGECACHE 0x0010 |
Limit image cache size.
This will help to save memory for a large amount of image data.
FS_RESULT FSPDF_Doc_EnumAllPageSize | ( | FSCRT_DOCUMENT | document, |
FSPDF_ENUMPAGESIZEHANDLER * | enumHandler | ||
) |
Enumerate the size of all page.
This function is used for enumerating all page's size quickly. Application can get page size for each page from callback function FSPDF_ENUMPAGESIZEHANDLER::EnumPageSize.
if the parameter document is loaded in asynchronous mode, application should ensure that data of document is available, and the data of all pages are available as well.
[in] | document | Handle to a FSCRT_DOCUMENT object which is a PDF document object. It should be valid. |
[in] | enumHandler | Pointer to a FSPDF_ENUMPAGESIZEHANDLER structure which is a page size enumeration handler. |
FS_RESULT FSPDF_Doc_SetActionHandler | ( | FSCRT_DOCUMENT | document, |
FSPDF_ACTION_HANDLER * | actionHandler | ||
) |
Set the action handler to the PDF document.
Some interaction features such as performing JavaScript actions or filling the form, would require caller to implement the callback functions of action handler, in order to function well.
[in] | document | Handle to a FSCRT_DOCUMENT object which is a PDF document object. It should be valid. |
[in] | actionHandler | Pointer to a FSPDF_ACTION_HANDLER structure. |
FS_RESULT FSPDF_TextPage_GetNextCharIndexByDirection | ( | FSPDF_TEXTPAGE | textPage, |
FS_INT32 | curIndex, | ||
FS_INT32 | direction, | ||
FS_INT32 * | nextIndex | ||
) |
Get index of next character of a specific character in a specific direction.
[in] | textPage | Handle to a FSPDF_TEXTPAGE object returned by function FSPDF_TextPage_Load. |
[in] | curIndex | A zero-based index for current character. Range: from 0 to (charcount - 1).charcount is returned by function FSPDF_TextPage_CountChars. |
[in] | direction | Indicates the direction to get the next character. Please refer to macro definitions FSPDF_TEXTDIRECTION_XXX and this should be one of these macros. |
[out] | nextIndex | Pointer to a FS_INT32 object that receives a zero-based index for the next character. The meaning of some special return values for errors are:
|