Definitions for access to PDF page.
Definitions and functions in this module are included in fpdf_page_r.h and fpdf_page_w.h.
Module: PDFPage
License Identifier: PDFPage/All
Available License Right: Reading/Writing
For License Right Reading, see fpdf_page_r.h.
For License Right Writing, see fpdf_page_w.h.
More...
Functions | |
FS_RESULT | FSPDF_Page_StartParse (FSCRT_PAGE page, FS_DWORD flag, FSCRT_PROGRESS *parseProgress) |
Start parsing a PDF page. More... | |
FS_RESULT | FSPDF_Page_IsParsed (FSCRT_PAGE page, FS_BOOL *isParsed) |
Determine whether page has been parsed or not. More... | |
FS_RESULT | FSPDF_Page_Clear (FSCRT_PAGE page) |
Release all page contents and related resources. More... | |
FS_RESULT | FSPDF_Page_GetIndex (FSCRT_PAGE page, FS_INT32 *index) |
Get page index. More... | |
FS_RESULT | FSPDF_Page_GetSize (FSCRT_PAGE page, FS_FLOAT *width, FS_FLOAT *height) |
Get page size. More... | |
FS_RESULT | FSPDF_Page_GetRotation (FSCRT_PAGE page, FS_INT32 *rotation) |
Get page rotation. More... | |
FS_RESULT | FSPDF_Page_GetBox (FSCRT_PAGE page, FS_INT32 boxType, FSCRT_RECTF *pageBox) |
Get page boundary which is a rectangle type value. More... | |
FS_RESULT | FSPDF_Page_GetDict (FSCRT_PAGE page, FSPDF_OBJECT *dictionary) |
Get the PDF page dictionary object. More... | |
FS_RESULT | FSPDF_Page_EstimateContentSize (FSCRT_PAGE page, FS_DWORD *contentSize) |
Estimate the size of PDF page content. More... | |
FS_RESULT | FSPDF_Page_HasTransparency (FSCRT_PAGE page, FS_BOOL *hasTransparency) |
Check whether a PDF page has transparency. More... | |
FS_RESULT | FSPDF_Page_CountActions (FSCRT_PAGE page, FS_INT32 trigger, FS_INT32 *count) |
Count trigger actions of a PDF page. More... | |
FS_RESULT | FSPDF_Page_GetAction (FSCRT_PAGE page, FS_INT32 trigger, FS_INT32 index, FSPDF_ACTIONDATA *actionData) |
Get a trigger action of a PDF page. More... | |
FS_RESULT | FSPDF_Page_DoJavaScriptAction (FSCRT_PAGE page, FS_INT32 trigger) |
Perform the page javascript which is specified by the trigger. More... | |
FS_RESULT | FSPDF_Page_GetMatrix (FSCRT_PAGE page, FS_INT32 x, FS_INT32 y, FS_INT32 width, FS_INT32 height, FS_INT32 rotation, FSCRT_MATRIX *matrix) |
Get page transformation matrix. More... | |
FS_RESULT | FSPDF_Matrix_TransformPageToDevice (FSCRT_MATRIX *matrix, const FSCRT_RECTF *srcRect, const FSCRT_RECT *dstRect, FS_INT32 rotation) |
Get a transformation matrix from PDF page coordinate to device coordinate. More... | |
FS_RESULT | FSPDF_Matrix_TransformDeviceToPage (FSCRT_MATRIX *matrix, const FSCRT_RECT *srcRect, const FSCRT_RECTF *dstRect, FS_INT32 rotation) |
Get a transformation matrix from device coordinate to PDF page coordinate. More... | |
FS_RESULT | FSPDF_Page_CalcContentBBox (FSCRT_PAGE page, FS_INT32 mode, FSCRT_RECTF *rectBBox) |
Calculate content box rectangle in PDF page. More... | |
FS_RESULT | FSPDF_Page_GetThumbnail (FSCRT_PAGE page, FSCRT_BITMAP *thumbnail) |
Get the thumbnail bitmap from a page. More... | |
FS_RESULT | FSPDF_RenderContext_StartPage (FSPDF_RENDERCONTEXT pdfRenderContext, FSCRT_RENDERER renderer, FSCRT_PAGE page, FS_INT32 flag, FSCRT_PROGRESS *renderProgress) |
Start rendering a PDF page in a renderer with a PDF rendering context. More... | |
FS_RESULT | FSPDF_Page_SetIndex (FSCRT_PAGE page, FS_INT32 index) |
Change page index of a PDF page. More... | |
FS_RESULT | FSPDF_Page_SetSize (FSCRT_PAGE page, FS_FLOAT width, FS_FLOAT height) |
Set page size. More... | |
FS_RESULT | FSPDF_Page_SetRotation (FSCRT_PAGE page, FS_INT32 rotation) |
Set page rotation. More... | |
FS_RESULT | FSPDF_Page_SetBox (FSCRT_PAGE page, FS_INT32 boxType, const FSCRT_RECTF *pageBox) |
Set page box which is a rectangle type of value. More... | |
FS_RESULT | FSPDF_Page_SetAction (FSCRT_PAGE page, FS_INT32 trigger, FS_INT32 index, const FSPDF_ACTIONDATA *actionData) |
Set a page trigger action. More... | |
FS_RESULT | FSPDF_Page_InsertAction (FSCRT_PAGE page, FS_INT32 trigger, FS_INT32 index, const FSPDF_ACTIONDATA *actionData) |
Insert a page trigger action. More... | |
FS_RESULT | FSPDF_Page_RemoveAction (FSCRT_PAGE page, FS_INT32 trigger, FS_INT32 index) |
Remove a page trigger action. More... | |
FS_RESULT | FSPDF_Page_RemoveAllActions (FSCRT_PAGE page, FS_INT32 trigger) |
Remove all trigger actions of a PDF page. More... | |
FS_RESULT | FSPDF_Page_Transform (FSCRT_PAGE page, const FSCRT_MATRIX *matrix, FS_BOOL needTransformClipPath) |
Transform a PDF page, including the annotations and form fields on the page. More... | |
FS_RESULT | FSPDF_Page_SetClipRect (FSCRT_PAGE page, const FSCRT_RECTF *clipRect) |
Set clip rectangle for all page objects on PDF page. More... | |
FS_RESULT | FSPDF_Page_Create (FSCRT_DOCUMENT document, FS_INT32 index, FSCRT_PAGE *page) |
Create a new page to a position specified by the index. More... | |
FS_RESULT | FSPDF_Page_Delete (FSCRT_PAGE page) |
Delete a page from document. More... | |
FS_RESULT | FSPDF_Page_Flatten (FSCRT_PAGE page, FS_DWORD flags) |
Flatten a PDF page, and annotations or form fields will be made to be a part of the page contents. More... | |
FS_RESULT | FSPDF_Page_SetThumbnail (FSCRT_PAGE page, FSCRT_BITMAP thumbnail) |
Set a thumbnail bitmap to a page. More... | |
Macro Definitions for PDF Page Parsing Flags | |
| |
#define | FSPDF_PAGEPARSEFLAG_NORMAL 0 |
PDF page parsing flag for normal mode. | |
#define | FSPDF_PAGEPARSEFLAG_TEXTONLY 1 |
PDF page parsing flag for text-only mode. | |
Macro Definitions for Page Margin | |
| |
#define | FSPDF_PAGEMARGIN_CONTENTSBBOX 0 |
Calculate margin according to bounding box of all contents. | |
#define | FSPDF_PAGEMARGIN_DETECTION 1 |
Calculate margin by detecting paths or images. | |
Macro Definitions for PDF Page Render Flags | |
| |
#define | FSPDF_PAGERENDERFLAG_NORMAL 0 |
PDF page render flag for normal mode. | |
#define | FSPDF_PAGERENDERFLAG_QUICKDRAW 1 |
PDF page parsing flag for quick draw mode. | |
Macro Definitions for Flatten Option | |
| |
#define | FSPDF_FLATTENFLAG_DISPLAY 0 |
Flatten contents for displaying and it can be combined with any flags except FSPDF_FLATTENFLAG_PRINT. | |
#define | FSPDF_FLATTENFLAG_PRINT 1 |
Flatten contents for printing and it can be combined with any flags except FSPDF_FLATTENFLAG_DISPLAY. More... | |
#define | FSPDF_FLATTENFLAG_NOANNOT 2 |
Flatten contents without annotations except widget annotations and it should be combined with FSPDF_FLATTENFLAG_PRINT or FSPDF_FLATTENFLAG_DISPLAY. | |
#define | FSPDF_FLATTENFLAG_NOFORMCONTROL 4 |
Flatten contents without form controls and it should be combined with FSPDF_FLATTENFLAG_PRINT or FSPDF_FLATTENFLAG_DISPLAY. | |
Definitions for access to PDF page.
Definitions and functions in this module are included in fpdf_page_r.h and fpdf_page_w.h.
Module: PDFPage
License Identifier: PDFPage/All
Available License Right: Reading/Writing
For License Right Reading, see fpdf_page_r.h.
For License Right Writing, see fpdf_page_w.h.
This module contains following features:
#define FSPDF_FLATTENFLAG_PRINT 1 |
Flatten contents for printing and it can be combined with any flags except FSPDF_FLATTENFLAG_DISPLAY.
FS_RESULT FSPDF_Matrix_TransformDeviceToPage | ( | FSCRT_MATRIX * | matrix, |
const FSCRT_RECT * | srcRect, | ||
const FSCRT_RECTF * | dstRect, | ||
FS_INT32 | rotation | ||
) |
Get a transformation matrix from device coordinate to PDF page coordinate.
[out] | matrix | Pointer to a FSCRT_MATRIX structure that receives the transformation matrix. If there is any error, it will be [1 0 0 1 0 0]. |
[in] | srcRect | Pointer to a FSCRT_RECT structure which is a rectangle in device coordinate. |
[in] | dstRect | Pointer to a FSCRT_RECTF structure which is a rectangle in PDF page coordinate. |
[in] | rotation | Rotation value for parameter srcRect to map dstRect. Please refer to macro definitions FSCRT_PAGEROTATION_XXX and this should be one of these macros. |
FS_RESULT FSPDF_Matrix_TransformPageToDevice | ( | FSCRT_MATRIX * | matrix, |
const FSCRT_RECTF * | srcRect, | ||
const FSCRT_RECT * | dstRect, | ||
FS_INT32 | rotation | ||
) |
Get a transformation matrix from PDF page coordinate to device coordinate.
[out] | matrix | Pointer to a FSCRT_MATRIX structure that receives the transformation matrix. If there is any error, it will be [1 0 0 1 0 0]. |
[in] | srcRect | Pointer to a FSCRT_RECTF structure which is a rectangle in PDF page coordinate. |
[in] | dstRect | Pointer to a FSCRT_RECT structure which is a rectangle in device coordinate. |
[in] | rotation | Rotation value for parameter srcRect to map dstRect. Please refer to macro definitions FSCRT_PAGEROTATION_XXX and this should be one of these macros. |
FS_RESULT FSPDF_Page_CalcContentBBox | ( | FSCRT_PAGE | page, |
FS_INT32 | mode, | ||
FSCRT_RECTF * | rectBBox | ||
) |
Calculate content box rectangle in PDF page.
[in] | page | Handle to a valid FSCRT_PAGE object. It should be a valid handle of PDF page that has been parsed. |
[in] | mode | Mode to calculate page margin. Please refer to macro definitions FSPDF_PAGEMARGIN_XXX and this should be one of these macros. |
[out] | rectBBox | Pointer to a FSCRT_RECTF structure that receives the content box rectangle, in 1/72 inch. If there is any error, it will be [0 0 0 0]. |
FS_RESULT FSPDF_Page_Clear | ( | FSCRT_PAGE | page | ) |
Release all page contents and related resources.
[in] | page | Handle to a valid FSCRT_PAGE object. |
Count trigger actions of a PDF page.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[in] | trigger | The page trigger type. Please refer to macro definitions FSPDF_TRIGGER_PAGE_XXX and this should be one of these macros. |
[out] | count | Pointer to a FS_INT32 object that receives the count of the page actions. If there is any error, it will be 0. |
Create a new page to a position specified by the index.
[in] | document | Valid handle to a FSCRT_DOCUMENT object which is a PDF document object. |
[in] | index | A zero-based index which specifies the position of the created page in PDF document. Range: 0 to (pagecount-1). pagecount is returned by function FSPDF_Doc_CountPages. If this is out of range, the new page will be added to the end in PDF document. |
[out] | page | Pointer to a FSCRT_PAGE handle that receives a handle of the newly created page. If there is any error, it will be NULL. |
FS_RESULT FSPDF_Page_Delete | ( | FSCRT_PAGE | page | ) |
Delete a page from document.
[in] | page | Handle to a valid FSCRT_PAGE object. |
Perform the page javascript which is specified by the trigger.
[in] | page | Handle to a FSCRT_PAGE object which is a document object. It should be valid. |
[in] | trigger | The type of the trigger event. Please refer to macro definitions FSPDF_TRIGGER_PAGE_XXX and this should be one of these macros. |
Estimate the size of PDF page content.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[out] | contentSize | Pointer to a FS_DWORD object to receive the content size. If there is any error, it will be 0. |
Flatten a PDF page, and annotations or form fields will be made to be a part of the page contents.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[in] | flags | The flatten option. Please refer to macro definitions FSPDF_FLATTENFLAG_XXX and this should be one or combination of these macros. |
FS_RESULT FSPDF_Page_GetAction | ( | FSCRT_PAGE | page, |
FS_INT32 | trigger, | ||
FS_INT32 | index, | ||
FSPDF_ACTIONDATA * | actionData | ||
) |
Get a trigger action of a PDF page.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[in] | trigger | The page trigger type. Please refer to macro definitions FSPDF_TRIGGER_PAGE_XXX and this should be one of these macros. |
[in] | index | Index of trigger action. Range: 0 to (actioncount-1). actioncount is returned by function FSPDF_Page_CountActions. |
[out] | actionData | Pointer to a FSPDF_ACTIONDATA structure that receives the page action. |
FS_RESULT FSPDF_Page_GetBox | ( | FSCRT_PAGE | page, |
FS_INT32 | boxType, | ||
FSCRT_RECTF * | pageBox | ||
) |
Get page boundary which is a rectangle type value.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[in] | boxType | Page boundary type to a FS_INT32 value. Please refer to macro definitions FSPDF_PAGEBOX_XXX and this should be one of these macros. |
[out] | pageBox | Pointer to a FSCRT_RECTF structure that receives a rectangle value. If there is any error, it will be set [0 0 0 0]. |
FS_RESULT FSPDF_Page_GetDict | ( | FSCRT_PAGE | page, |
FSPDF_OBJECT * | dictionary | ||
) |
Get the PDF page dictionary object.
[in] | page | Handle to a FSCRT_PAGE object which is a PDF page object. |
[out] | dictionary | Pointer to a FSPDF_OBJECT handle that receives the page dictionary object. If there is any error, it will be NULL. |
Get page index.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[out] | index | Pointer to a FS_INT32 object that receives page index which starts from 0. If there is any error, it will be set -1. |
FS_RESULT FSPDF_Page_GetMatrix | ( | FSCRT_PAGE | page, |
FS_INT32 | x, | ||
FS_INT32 | y, | ||
FS_INT32 | width, | ||
FS_INT32 | height, | ||
FS_INT32 | rotation, | ||
FSCRT_MATRIX * | matrix | ||
) |
Get page transformation matrix.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[in] | x | Left position of the transformation area in device coordinate, a FS_INT32 value, commonly in pixels. |
[in] | y | Top position of the transformation area in device coordinate, a FS_INT32 value, commonly in pixels. |
[in] | width | Width of the transformation area in device coordinate, a FS_INT32 value, commonly in pixels. |
[in] | height | Height of the transformation area in device coordinate, a FS_INT32 value, commonly in pixels. |
[in] | rotation | Page rotation value. Please refer to macro definitions FSCRT_PAGEROTATION_XXX and this should be one of these macros. |
[out] | matrix | Pointer to a FSCRT_MATRIX structure that receives the transformation matrix. If there is any error, it will be [1 0 0 1 0 0]. |
Get page rotation.
Page size is the size of PDF page when value of "/Rotate" in page dictionary is 0.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[out] | rotation | Pointer to a FS_INT32 object that receives page rotation state. Please refer to macro definitions FSCRT_PAGEROTATION_XXX and this would be one of these macros. Default: FSCRT_PAGEROTATION_0. If there is any error, it will be set -1. |
Get page size.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[out] | width | Pointer to a FS_FLOAT object that receives page width, and unit is 1/72 inch. If there is any error, it will be set 0. |
[out] | height | Pointer to a FS_FLOAT object that receives page height, and unit is 1/72 inch. If there is any error, it will be set 0. |
FS_RESULT FSPDF_Page_GetThumbnail | ( | FSCRT_PAGE | page, |
FSCRT_BITMAP * | thumbnail | ||
) |
Get the thumbnail bitmap from a page.
[in] | page | Handle to a FSCRT_PAGE object which is a PDF page. It should be valid. |
[out] | thumbnail | Pointer to a handle of FSCRT_BITMAP object that receives the thumbnail bitmap. |
Check whether a PDF page has transparency.
[in] | page | Handle to a valid FSCRT_PAGE object. It should be a valid handle of PDF page that has been parsed. |
[out] | hasTransparency | Pointer to a FS_BOOL object that receives a boolean value which indicates whether page has transparency:
|
FS_RESULT FSPDF_Page_InsertAction | ( | FSCRT_PAGE | page, |
FS_INT32 | trigger, | ||
FS_INT32 | index, | ||
const FSPDF_ACTIONDATA * | actionData | ||
) |
Insert a page trigger action.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[in] | trigger | The page trigger type. Please refer to macro definitions FSPDF_TRIGGER_PAGE_XXX and this should be one of these macros. |
[in] | index | Zero-base index, where action will be inserted. Range: 0 to (actioncount-1). actioncount is returned by function FSPDF_Page_CountActions. If it is out of range or no action found, the actionData will be inserted to the last. |
[in] | actionData | Pointer to a FSPDF_ACTIONDATA structure which to be inserted. |
Determine whether page has been parsed or not.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[out] | isParsed | Pointer to a FS_BOOL object that receives the current page parsing state:
|
Remove a page trigger action.
[in] | page | Handle to a valid FSCRT_PAGE object. Returned by function FSPDF_Doc_GetPage or FSPDF_Page_Create. |
[in] | trigger | The page trigger type. Please refer to macro definitions FSPDF_TRIGGER_PAGE_XXX and this should be one of these macros. |
[in] | index | index of trigger action which is to be removed. Range: 0 to (actioncount-1). actioncount is returned by function FSPDF_Page_CountActions. |
Remove all trigger actions of a PDF page.
[in] | page | Handle to a valid FSCRT_PAGE object. Returned by function FSPDF_Doc_GetPage or FSPDF_Page_Create. |
[in] | trigger | The page trigger type. Please refer to macro definitions FSPDF_TRIGGER_PAGE_XXX and this should be one of these macros. |
FS_RESULT FSPDF_Page_SetAction | ( | FSCRT_PAGE | page, |
FS_INT32 | trigger, | ||
FS_INT32 | index, | ||
const FSPDF_ACTIONDATA * | actionData | ||
) |
Set a page trigger action.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[in] | trigger | The page trigger type. Please refer to macro definitions FSPDF_TRIGGER_PAGE_XXX and this should be one of these macros. |
[in] | index | Index of trigger action. Range: 0 to (actioncount-1). actioncount is returned by function FSPDF_Page_CountActions. |
[in] | actionData | Pointer to a FSPDF_ACTIONDATA structure to be set. |
FS_RESULT FSPDF_Page_SetBox | ( | FSCRT_PAGE | page, |
FS_INT32 | boxType, | ||
const FSCRT_RECTF * | pageBox | ||
) |
Set page box which is a rectangle type of value.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[in] | boxType | Page box to a FS_INT32 value. Please refer to macro definitions FSPDF_PAGEBOX_XXX and this should be one of these macros. |
[in] | pageBox | Pointer to a FSCRT_RECTF structure to be set. It should be valid in PDF page coordinate: left value should always be smaller than right value, and bottom value should always be smaller than top value. |
FS_RESULT FSPDF_Page_SetClipRect | ( | FSCRT_PAGE | page, |
const FSCRT_RECTF * | clipRect | ||
) |
Set clip rectangle for all page objects on PDF page.
It will save time to set all page objects clip rectangle, and no need to call function FSPDF_PageObject_SetClipRect for every page object. After this function finishes successfully, please call function FSPDF_Page_StartParse again to re-parse the PDF page.
[in] | page | Handle to a FSCRT_PAGE object which is a PDF page. It should be valid. |
[in] | clipRect | Pointer to a FSCRT_RECTF structure for clip rectangle which is to be set to all page objects. It should be valid in PDF page coordinate: left value should always be smaller than right value, and bottom value should always be smaller than top value. |
Change page index of a PDF page.
To change page index is just like moving specific PDF page to a new place in current PDF document. So, indexes of PDF pages between old and new index of specific PDF page will also be changed as well.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[in] | index | New index of page.Range: 0 to (pagecount-1). pagecount is returned by function FSPDF_Doc_CountPages. |
Set page rotation.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[in] | rotation | An integer value for page rotation state. Please refer to macro definitions FSCRT_PAGEROTATION_XXX and this should be one of these macros. |
Set page size.
New page size should be greater than 0, and cannot be greater than the original one. But for the newly created page (by function FSPDF_Page_Create),it can be set with any valid size,
[in] | page | Handle to a valid FSCRT_PAGE object. |
[in] | width | A FS_FLOAT value for page width, unit is 1/72 inch. |
[in] | height | A FS_FLOAT value for page height, unit is 1/72 inch. |
FS_RESULT FSPDF_Page_SetThumbnail | ( | FSCRT_PAGE | page, |
FSCRT_BITMAP | thumbnail | ||
) |
Set a thumbnail bitmap to a page.
Thumbnail image does not use alpha channel. So user is recommended to set a bitmap without alpha channel to be the new thumbnail image. If a bitmap with alpha channel is set, the new thumbnail will use white background by default.
[in] | page | Handle to a FSCRT_PAGE object which is a PDF page. It should be valid. |
[in] | thumbnail | Handle to a FSCRT_BITMAP object which is a bitmap. It should be valid. |
Start parsing a PDF page.
It will take a long time to parse a page with large contents, so Foxit PDF SDK uses a progressive process to do this.
Caller should pass parseProgress to function FSCRT_Progress_Continue to continue parsing in steps, Call function FSCRT_Progress_Release to destroy parseProgress object if parsing process is done.
All page content objects will be loaded after page is parsed.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[in] | flag | Page parsing mode: FSPDF_PAGEPARSEFLAG_NORMAL for normal mode, or FSPDF_PAGEPARSEFLAG_TEXTONLY for text-only mode. |
[out] | parseProgress | Pointer to a FSCRT_PROGRESS handle that receives a handle of progressive process. If there is any error, it will be NULL. |
FS_RESULT FSPDF_Page_Transform | ( | FSCRT_PAGE | page, |
const FSCRT_MATRIX * | matrix, | ||
FS_BOOL | needTransformClipPath | ||
) |
Transform a PDF page, including the annotations and form fields on the page.
[in] | page | Handle to a valid FSCRT_PAGE object. |
[in] | matrix | Pointer to a FSCRT_MATRIX structure object. |
[in] | needTransformClipPath | A FS_BOOL value which indicates whether to transform the page with clip rect or not. |
FS_RESULT FSPDF_RenderContext_StartPage | ( | FSPDF_RENDERCONTEXT | pdfRenderContext, |
FSCRT_RENDERER | renderer, | ||
FSCRT_PAGE | page, | ||
FS_INT32 | flag, | ||
FSCRT_PROGRESS * | renderProgress | ||
) |
Start rendering a PDF page in a renderer with a PDF rendering context.
It will take a long time to render a page with complex or large contents, so Foxit PDF SDK uses a progressive process to do this.
Caller should pass parameter renderProgress to function FSCRT_Progress_Continue to continue rendering in steps, and call function FSCRT_Progress_Release to destroy renderProgress object if rendering process is done.
[in] | pdfRenderContext | Handle to a FSPDF_RENDERCONTEXT object which is a PDF rendering context, created by function FSPDF_RenderContext_Create. |
[in] | renderer | Handle to a FSCRT_RENDERER object which is a rendering engine, created by function FSCRT_Renderer_CreateOnBitmap or platform-dependednt renderer creating functions. |
[in] | page | Handle to a valid FSCRT_PAGE object. It should be a valid handle of PDF page that has been parsed. |
[in] | flag | Page render flag to a FS_INT32 value. Please refer to macro definitions FSPDF_PAGERENDERFLAG_XXX and this should be one of these macros. |
[out] | renderProgress | Pointer to a FSCRT_PROGRESS handle that receives a handle of progressive process. If there is any error, it will be NULL. |