Inherits ViewGroup, OnGestureListener, OnScaleGestureListener, and OnDoubleTapListener.
Classes | |
class | CacheOption |
class | HttpRequestProperties |
interface | IActivityResultListener |
interface | IConnectedPDFEventListener |
interface | IDocEventListener |
interface | IDoubleTapEventListener |
interface | IDrawEventListener |
interface | IGestureEventListener |
interface | ILayoutEventListener |
interface | IPageEventListener |
interface | IRecoveryEventListener |
interface | IScaleGestureEventListener |
interface | ITouchEventListener |
interface | UIExtensionsManager |
Public Member Functions | |
PDFViewCtrl (Context context, AttributeSet attrs) | |
PDFViewCtrl (Context context) | |
boolean | addImagePage (final int dstIndex, String imagePath) |
void | addTask (Task task) |
void | appendPageView (View view) |
void | clearAllCacheFiles () |
void | clearCacheFile (String url) |
void | closeDoc () |
boolean | convertDisplayViewPtToPageViewPt (PointF displayViewPt, PointF pageViewPt, int pageIndex) |
boolean | convertDisplayViewRectToPageViewRect (RectF displayViewRectF, RectF pageViewRectF, int pageIndex) |
boolean | convertPageViewPtToDisplayViewPt (PointF pageViewPt, PointF displayViewPt, int pageIndex) |
boolean | convertPageViewPtToPdfPt (PointF pageViewPt, PointF pdfPt, int pageIndex) |
boolean | convertPageViewRectToDisplayViewRect (RectF pageViewRectF, RectF displayViewRectF, int pageIndex) |
boolean | convertPageViewRectToPdfRect (RectF pageViewRectF, RectF pdfRectF, int pageIndex) |
boolean | convertPdfPtToPageViewPt (PointF pdfPt, PointF pageViewPt, int pageIndex) |
boolean | convertPdfRectToPageViewRect (RectF pdfRectF, RectF pageViewRectF, int pageIndex) |
void | enableTilingRefresh (boolean isTilingRefresh) |
AppProviderCallback | getAppProvider () |
Activity | getAttachedActivity () |
int | getColorMode () |
ConnectedPDF | getConnectedPDF () |
IConnectedPDFEventListener | getConnectedPdfEventListener () |
int | getCurrentPage () |
int | getDensityDpi () |
Matrix | getDisplayMatrix (int pageIndex) |
int | getDisplayViewHeight () |
int | getDisplayViewWidth () |
PDFDoc | getDoc () |
String | getFilePath () |
int | getHScrollPos () |
int | getHScrollRange () |
int | getMappingModeBackgroundColor () |
int | getMappingModeForegroundColor () |
float | getMaxZoomLimit () |
float | getMinZoomLimit () |
int | getPageCount () |
int | getPageIndex (PointF displayViewPt) |
int | getPageLayoutMode () |
int | getPageViewHeight (int pageIndex) |
Rect | getPageViewRect (int pageIndex) |
int | getPageViewWidth (int pageIndex) |
int | getReflowMode () |
ThumbListView | getThumbnailView () |
UIExtensionsManager | getUIExtensionsManager () |
int | getUserPermission () |
int | getViewRotation () |
int [] | getVisiblePages () |
int | getVScrollPos () |
int | getVScrollRange () |
XFADoc | getXFADoc () |
float | getZoom () |
int | getZoomMode () |
void | gotoFirstPage () |
void | gotoLastPage () |
void | gotoNextPage () |
void | gotoNextView () |
void | gotoPage (int pageIndex) |
void | gotoPage (int pageIndex, PointF pdfPt) |
void | gotoPage (int pageIndex, float devOffsetX, float devOffsetY) |
void | gotoPrevPage () |
void | gotoPrevView () |
void | handleActivityResult (int requestCode, int resultCode, Intent data) |
boolean | hasNextView () |
boolean | hasPrevView () |
boolean | insertPages (int index, float width, float height, int style, int color, int rotation, int count) |
boolean | insertPages (int index, int size, int style, int color, int rotation, int count) |
boolean | insertPages (int dstIndex, int flags, String layerName, String srcFilePath, byte[] password, int[] pageRanges) |
boolean | insertPages (int dstIndex, int flags, String layerName, PDFDoc srcDoc, int[] pageRanges) |
boolean | isDynamicXFA () |
boolean | isNightMode () |
boolean | isOwner () |
boolean | isPageVisible (int pageIndex) |
boolean | movePage (int index, int dstIndex) |
boolean | onDoubleTap (MotionEvent e) |
boolean | onDoubleTapEvent (MotionEvent e) |
boolean | onDown (MotionEvent e) |
boolean | onFling (MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) |
void | onLongPress (MotionEvent e) |
boolean | onScale (ScaleGestureDetector detector) |
boolean | onScaleBegin (ScaleGestureDetector detector) |
void | onScaleEnd (ScaleGestureDetector detector) |
boolean | onScroll (MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) |
void | onShowPress (MotionEvent e) |
boolean | onSingleTapConfirmed (MotionEvent e) |
boolean | onSingleTapUp (MotionEvent e) |
boolean | onTouchEvent (MotionEvent e) |
void | openDoc (final String path, final byte[] password) |
void | openDoc (Uri uri, final byte[] password) |
void | openDocFromMemory (final byte[] buffer, final byte[] password) |
void | openDocFromUrl (String url, byte[] password, CacheOption cacheOption, HttpRequestProperties properties) |
void | recoverForOOM () |
void | refresh (int pageIndex, Rect rect) |
void | registerActivityResultListener (IActivityResultListener listener) |
void | registerDocEventListener (IDocEventListener listener) |
void | registerDoubleTapEventListener (IDoubleTapEventListener listener) |
void | registerDrawEventListener (IDrawEventListener listener) |
void | registerGestureEventListener (IGestureEventListener listener) |
void | registerLayoutEventListener (ILayoutEventListener listener) |
void | registerPageEventListener (IPageEventListener listener) |
void | registerRecoveryEventListener (IRecoveryEventListener listener) |
void | registerScaleGestureEventListener (IScaleGestureEventListener listener) |
void | registerTouchEventListener (ITouchEventListener listener) |
boolean | removePages (int[] pageIndexes) |
void | removeTask (Task task) |
boolean | rotatePages (int[] pageIndexes, int rotation) |
void | rotateView (int rotation) |
void | saveDoc (String filePath, int flag) |
void | scrollView (float distanceX, float distanceY) |
void | setAppProvider (AppProviderCallback callback) |
void | setAttachedActivity (Activity attachedActivity) |
void | setBackgroundColor (int color) |
void | setColorMode (int colorMode) |
void | setConnectedPDFEventListener (IConnectedPDFEventListener listener) |
boolean | setCropMode (int mode) |
boolean | setCropRect (int pageIndex, RectF cropRect) |
void | setDoc (PDFDoc pdfDocument) |
void | setFilePath (String filePath) |
void | setHScrollPos (int pos) |
void | setMappingModeBackgroundColor (int mappingModeBackgroundColor) |
void | setMappingModeForegroundColor (int mappingModeForegroundColor) |
void | setMaxZoomLimit (float maxZoomLimit) |
void | setMinZoomLimit (float minZoomLimit) |
void | setNightMode (boolean bNightMode) |
void | setPageLayoutMode (@PageMode int lMode) |
void | setPageSpacing (int space) |
void | setPageSpacing (int space, int direction) |
void | setReflowMode (int reflowMode) |
void | setUIExtensionsManager (UIExtensionsManager manager) |
void | setVScrollPos (int pos) |
void | setZoom (Point devicePt, float factor) |
void | setZoom (float factor) |
void | setZoomMode (int zMode) |
void | unregisterActivityResultListener (IActivityResultListener listener) |
void | unregisterDocEventListener (IDocEventListener listener) |
void | unregisterDoubleTapEventListener (IDoubleTapEventListener listener) |
void | unregisterDrawEventListener (IDrawEventListener listener) |
void | unregisterGestureEventListener (IGestureEventListener listener) |
void | unregisterLayoutEventListener (ILayoutEventListener listener) |
void | unregisterPageEventListener (IPageEventListener listener) |
void | unregisterRecoveryEventListener (IRecoveryEventListener listener) |
void | unregisterScaleGestureEventListener (IScaleGestureEventListener listener) |
void | unregisterTouchEventListener (ITouchEventListener listener) |
void | updatePagesLayout () |
Static Public Member Functions | |
static void | lock () |
static void | unlock () |
Public Attributes | |
boolean | shouldRecover = true |
Static Public Attributes | |
static final int | PAGESPACING_HORIZONTAL = 0x0001 |
static final int | PAGESPACING_VERTICAL = 0x0002 |
static final int | ZOOMMODE_CUSTOMIZE = 0 |
static final int | ZOOMMODE_FITHEIGHT = 2 |
static final int | ZOOMMODE_FITPAGE = 3 |
static final int | ZOOMMODE_FITWIDTH = 1 |
Class PDFViewCtrl
represents a PDF view control.
PDFViewCtrl
class provides the functionaries to interact with rendering PDF documents. It implements some essential features which are required in interactive rendering applications. There are three coordinate systems for PDF view control:
Foxit has implemented an automatically recovering system when Foxit PDF SDK runs out of memory. When OOM happens, the Foxit PDF SDK will try to restore to the latest reading status before OOM. However, if the user has modified/added/deleted something on PDF document, those will not recovered by Foxit PDF SDK.
com.foxit.sdk.PDFViewCtrl.PDFViewCtrl | ( | Context | context, |
AttributeSet | attrs | ||
) |
Construct a new PDF viewer control.
context | A Context object which species the context. |
attrs | An AttributeSet object which species the attribute set. |
com.foxit.sdk.PDFViewCtrl.PDFViewCtrl | ( | Context | context | ) |
Construct a new PDF viewer control.
context | A Context object which species the context. |
boolean com.foxit.sdk.PDFViewCtrl.addImagePage | ( | final int | dstIndex, |
String | imagePath | ||
) |
Add image as a page for the current document.
dstIndex | A page index in current PDF document. This is used to specify where the image will be added. If parameter dstIndex is less than 0, the image will be added to the first. If parameter dstIndex is equal to or larger than current page count, the image will be added to the end. |
imagePath | The image path. The format of the picture needs to be in line with Android's official requirements(.jpg,.png,.gif,.bmp,.webp) |
true
means success, while false
means failure. void com.foxit.sdk.PDFViewCtrl.addTask | ( | Task | task | ) |
Add task to view control.
task | The task which would be added. |
void com.foxit.sdk.PDFViewCtrl.appendPageView | ( | View | view | ) |
Append a customized view after pdf page views.
view | The specified view to add. User-defined view is appended as the new last page view. User events and interactions of the appended view is handled by themselves. The pdf file is not changed. This method can be called multi-times. |
void com.foxit.sdk.PDFViewCtrl.clearAllCacheFiles | ( | ) |
Clear all the cache files.
void com.foxit.sdk.PDFViewCtrl.clearCacheFile | ( | String | url | ) |
Clear the cache file by the specified url.
url | The url of the document that used in openDocFromUrl(String, byte[], CacheOption, HttpRequestProperties) |
void com.foxit.sdk.PDFViewCtrl.closeDoc | ( | ) |
Close the displayed document.
boolean com.foxit.sdk.PDFViewCtrl.convertDisplayViewPtToPageViewPt | ( | PointF | displayViewPt, |
PointF | pageViewPt, | ||
int | pageIndex | ||
) |
Convert display view point to page view point.
displayViewPt | The display view point. |
pageViewPt | Output parameter that receives the page view point as result. |
pageIndex | Page index.Valid range: from 0 to (count -1). count is the page count. |
true
means success.false
means failure. boolean com.foxit.sdk.PDFViewCtrl.convertDisplayViewRectToPageViewRect | ( | RectF | displayViewRectF, |
RectF | pageViewRectF, | ||
int | pageIndex | ||
) |
Convert display view rectangle to page view rectangle.
displayViewRectF | The display view rectangle. |
pageViewRectF | Output parameter that receives the page view rectangle as result. |
pageIndex | Page index.Valid range: from 0 to (count -1). count is the page count. |
true
means success.false
means failure. boolean com.foxit.sdk.PDFViewCtrl.convertPageViewPtToDisplayViewPt | ( | PointF | pageViewPt, |
PointF | displayViewPt, | ||
int | pageIndex | ||
) |
Convert page view point to display view point.
pageViewPt | The page view point. |
displayViewPt | Output parameter that receives the display view point as result. |
pageIndex | Page index.Valid range: from 0 to (count -1). count is the page count. |
true
means success.false
means failure. boolean com.foxit.sdk.PDFViewCtrl.convertPageViewPtToPdfPt | ( | PointF | pageViewPt, |
PointF | pdfPt, | ||
int | pageIndex | ||
) |
Convert page view point to PDF point.
pageViewPt | The point on the page view. |
pdfPt | Output parameter that receives the PDF point as result. |
pageIndex | Page index.Valid range: from 0 to (count -1). count is the page count. |
true
means success.false
means failure. boolean com.foxit.sdk.PDFViewCtrl.convertPageViewRectToDisplayViewRect | ( | RectF | pageViewRectF, |
RectF | displayViewRectF, | ||
int | pageIndex | ||
) |
Convert page view rectangle to display view rectangle.
pageViewRectF | The page view rectangle. |
displayViewRectF | Output parameter that receives the display view rectangle as result. |
pageIndex | Page index.Valid range: from 0 to (count -1). count is the page count. |
true
means success.false
means failure. boolean com.foxit.sdk.PDFViewCtrl.convertPageViewRectToPdfRect | ( | RectF | pageViewRectF, |
RectF | pdfRectF, | ||
int | pageIndex | ||
) |
Convert page view rectangle to pdf rectangle.
pageViewRectF | The page view rectangle. |
pdfRectF | Output parameter that receives the pdf rectangle as result |
pageIndex | Page index.Valid range: from 0 to (count -1). count is the page count. |
true
means success.false
means failure. boolean com.foxit.sdk.PDFViewCtrl.convertPdfPtToPageViewPt | ( | PointF | pdfPt, |
PointF | pageViewPt, | ||
int | pageIndex | ||
) |
Convert pdf point to page view point coordination.
pdfPt | The PDF point. |
pageViewPt | Output parameter that receives the page view point as result |
pageIndex | Page index.Valid range: from 0 to (count -1). count is the page count. |
true
means success.false
means failure. boolean com.foxit.sdk.PDFViewCtrl.convertPdfRectToPageViewRect | ( | RectF | pdfRectF, |
RectF | pageViewRectF, | ||
int | pageIndex | ||
) |
Convert pdf rectangle to page view rectangle.
pdfRectF | The PDF rectangle. |
pageViewRectF | Output parameter that receives the page view rectangle as result. |
pageIndex | Page index.Valid range: from 0 to (count -1). count is the page count. |
true
means success.false
means failure. void com.foxit.sdk.PDFViewCtrl.enableTilingRefresh | ( | boolean | isTilingRefresh | ) |
Whether to refresh page view by using tiling or not.
isTilingRefresh | true means using tiling refresh. or refresh the whole page view. |
AppProviderCallback com.foxit.sdk.PDFViewCtrl.getAppProvider | ( | ) |
Get the AppProviderCallback
object.
AppProviderCallback
object. Activity com.foxit.sdk.PDFViewCtrl.getAttachedActivity | ( | ) |
Get the attached activity
int com.foxit.sdk.PDFViewCtrl.getColorMode | ( | ) |
Get the colorMode
ConnectedPDF com.foxit.sdk.PDFViewCtrl.getConnectedPDF | ( | ) |
Get current Connected PDF.
IConnectedPDFEventListener com.foxit.sdk.PDFViewCtrl.getConnectedPdfEventListener | ( | ) |
Get a ConnectedPDF event listener.
IConnectedPDFEventListener
object. int com.foxit.sdk.PDFViewCtrl.getCurrentPage | ( | ) |
Get the current page index.
int com.foxit.sdk.PDFViewCtrl.getDensityDpi | ( | ) |
Gets density dpi.
Matrix com.foxit.sdk.PDFViewCtrl.getDisplayMatrix | ( | int | pageIndex | ) |
Get the display matrix of a specified page.
pageIndex | Page index.Valid range: from 0 to (count -1). count is the page count. |
int com.foxit.sdk.PDFViewCtrl.getDisplayViewHeight | ( | ) |
Get display view height.
int com.foxit.sdk.PDFViewCtrl.getDisplayViewWidth | ( | ) |
Get display view width.
PDFDoc com.foxit.sdk.PDFViewCtrl.getDoc | ( | ) |
Get current displayed PDF document from view control
PDFDoc
object which represents current PDF document.String com.foxit.sdk.PDFViewCtrl.getFilePath | ( | ) |
Return the current file path.
int com.foxit.sdk.PDFViewCtrl.getHScrollPos | ( | ) |
Get the horizontal scroll position.
int com.foxit.sdk.PDFViewCtrl.getHScrollRange | ( | ) |
Get the horizontal scroll range.
int com.foxit.sdk.PDFViewCtrl.getMappingModeBackgroundColor | ( | ) |
Get the "background color" while in Renderer#e_ColorModeMapping color mode.
You can get the current color mode by using getColorMode()
int com.foxit.sdk.PDFViewCtrl.getMappingModeForegroundColor | ( | ) |
Get the "foreground color" while in Renderer#e_ColorModeMapping color mode.
You can get the current color mode by using getColorMode()
float com.foxit.sdk.PDFViewCtrl.getMaxZoomLimit | ( | ) |
Get the maximum zoom bound
float com.foxit.sdk.PDFViewCtrl.getMinZoomLimit | ( | ) |
Get the minimum zoom bound
int com.foxit.sdk.PDFViewCtrl.getPageCount | ( | ) |
Get the page count of PDF document.
int com.foxit.sdk.PDFViewCtrl.getPageIndex | ( | PointF | displayViewPt | ) |
Get the page index with device point.
displayViewPt | A PointF value which specifies the device point. |
int com.foxit.sdk.PDFViewCtrl.getPageLayoutMode | ( | ) |
Get page layout mode.
int com.foxit.sdk.PDFViewCtrl.getPageViewHeight | ( | int | pageIndex | ) |
Get the height of a specified page view.
pageIndex | Page index.Valid range: from 0 to (count -1). count is the page count. |
Rect com.foxit.sdk.PDFViewCtrl.getPageViewRect | ( | int | pageIndex | ) |
Get the size of a specified page view relative to its parent.
pageIndex | Page index.Valid range: from 0 to (count -1). count is the page count. |
int com.foxit.sdk.PDFViewCtrl.getPageViewWidth | ( | int | pageIndex | ) |
Get the width of a specified page view.
pageIndex | Page index.Valid range: from 0 to (count -1). count is the page count. |
int com.foxit.sdk.PDFViewCtrl.getReflowMode | ( | ) |
Get the reflow mode
ThumbListView com.foxit.sdk.PDFViewCtrl.getThumbnailView | ( | ) |
Get the thumbnail list view.
UIExtensionsManager com.foxit.sdk.PDFViewCtrl.getUIExtensionsManager | ( | ) |
Get UI extensions manager.
UIExtensionsManager
object which represents the UI extensions manager. int com.foxit.sdk.PDFViewCtrl.getUserPermission | ( | ) |
Get user access permissions.
int com.foxit.sdk.PDFViewCtrl.getViewRotation | ( | ) |
Constants.e_rotationXXX
values and this should be one of these values. int [] com.foxit.sdk.PDFViewCtrl.getVisiblePages | ( | ) |
Get an integer array which specifies indexes of current visible pages.
int com.foxit.sdk.PDFViewCtrl.getVScrollPos | ( | ) |
Get the vertical scroll position.
int com.foxit.sdk.PDFViewCtrl.getVScrollRange | ( | ) |
Get the vertical scroll range.
XFADoc com.foxit.sdk.PDFViewCtrl.getXFADoc | ( | ) |
Get the current XFA document.
XFADoc
object which represents current XFA document.float com.foxit.sdk.PDFViewCtrl.getZoom | ( | ) |
Get the zoom factor.
int com.foxit.sdk.PDFViewCtrl.getZoomMode | ( | ) |
Get the current zoom mode.
It should be one of constant definitions ZOOMMODE_XXX.
void com.foxit.sdk.PDFViewCtrl.gotoFirstPage | ( | ) |
Go to the first page.
void com.foxit.sdk.PDFViewCtrl.gotoLastPage | ( | ) |
Go to the last page.
void com.foxit.sdk.PDFViewCtrl.gotoNextPage | ( | ) |
Go to the next page.
void com.foxit.sdk.PDFViewCtrl.gotoNextView | ( | ) |
Go to next view.
void com.foxit.sdk.PDFViewCtrl.gotoPage | ( | int | pageIndex | ) |
Go to a specified page.
pageIndex | Page index. Valid range: from 0 to (count -1). count is the page count. |
void com.foxit.sdk.PDFViewCtrl.gotoPage | ( | int | pageIndex, |
PointF | pdfPt | ||
) |
Go to a specified page, then move to a specified position in PDF coordinate.
pageIndex | Page index. Valid range: from 0 to (count -1). count is the page count. |
pdfPt | The pdf point. |
void com.foxit.sdk.PDFViewCtrl.gotoPage | ( | int | pageIndex, |
float | devOffsetX, | ||
float | devOffsetY | ||
) |
Go to a specified page, then move to a specified position in display view coordinate system.
The new position is specified by offset X and offset Y.
Here, the left-top corner of display view coordinate system is treated as the base point. Offset X and offset Y means the offset values from left-top corner of page view coordinate system to the base point in display view coordinate system.
pageIndex | Page index. Valid range: from 0 to (count -1). count is the page count. |
devOffsetX | Offset X value in display view coordinate system. |
devOffsetY | Offset Y value in display view coordinate system. |
void com.foxit.sdk.PDFViewCtrl.gotoPrevPage | ( | ) |
Go to the previous page.
void com.foxit.sdk.PDFViewCtrl.gotoPrevView | ( | ) |
Go to previous view.
void com.foxit.sdk.PDFViewCtrl.handleActivityResult | ( | int | requestCode, |
int | resultCode, | ||
Intent | data | ||
) |
Receive and handle result from activity.
NOTE: Should call this function in Activity#onActivityResult(int, int, Intent) or android.app.Fragment#onActivityResult(int, int, Intent) when you open a rms file.
requestCode | the request code |
resultCode | the result code |
data | the data |
boolean com.foxit.sdk.PDFViewCtrl.hasNextView | ( | ) |
Check if current view control has a next view.
true
means current view control has a next page view. false
means current view control does not have a next page view. boolean com.foxit.sdk.PDFViewCtrl.hasPrevView | ( | ) |
Check if current view control has a previous view.
true
means current view control has a previous page view. false
means current view control does not have a previous page view. boolean com.foxit.sdk.PDFViewCtrl.insertPages | ( | int | index, |
float | width, | ||
float | height, | ||
int | style, | ||
int | color, | ||
int | rotation, | ||
int | count | ||
) |
Insert a new blank PDF page to document, by index.
index | A page index in current PDF document. This is used to specify where the imported pages will be inserted. If parameter index is less than 0, the new page will be inserted to the first. If parameter index is equal to or larger than the count of pages, the new page will be inserted to the end. |
width | Width of new page (unit is 1/72 inch). |
height | Height of new page (unit is 1/72 inch). |
style | Style of new page.Please refer to values starting from PDFViewCtrl#PDF_PAGE_STYLE_TYPE_BLANKand this should be one of these values. Default value: PDFViewCtrl#PDF_PAGE_STYLE_TYPE_BLANK |
color | Color of new page. Format: 0xAARRGGBB. |
rotation | Rotation value of new page. Please refer to values starting from com.foxit.sdk.common.Constants#e_Rotation0 and this should be one of these values except com.foxit.sdk.common.Constants#e_RotationUnknown |
count | The count of new pages to be inserted. |
true
means success, while false
means failure. boolean com.foxit.sdk.PDFViewCtrl.insertPages | ( | int | index, |
int | size, | ||
int | style, | ||
int | color, | ||
int | rotation, | ||
int | count | ||
) |
Insert a new blank PDF page to document, by index.
index | A page index in current PDF document. This is used to specify where the imported pages will be inserted. If parameter index is less than 0, the new page will be inserted to the first. If parameter index is equal to or larger than the count of pages, the new page will be inserted to the end. |
size | Size type of new page. Please refer to values starting from PDFPage#e_SizeLetterand this should be one of these values. Default value: PDFPage#e_SizeLetter |
style | Style of new page.Please refer to values starting from PDFViewCtrl#PDF_PAGE_STYLE_TYPE_BLANKand this should be one of these values. Default value: PDFViewCtrl#PDF_PAGE_STYLE_TYPE_BLANK |
color | Color of new page. Format: 0xAARRGGBB. |
rotation | Rotation value of new page.Please refer to values starting from com.foxit.sdk.common.Constants#e_Rotation0 and this should be one of these values except com.foxit.sdk.common.Constants#e_RotationUnknown |
count | The count of new pages to be inserted. |
true
means success, while false
means failure. boolean com.foxit.sdk.PDFViewCtrl.insertPages | ( | int | dstIndex, |
int | flags, | ||
String | layerName, | ||
String | srcFilePath, | ||
byte [] | password, | ||
int [] | pageRanges | ||
) |
Start to import pages from another PDF document (via file path). After all operations are ended, you need to call the PDFViewCtrl#updatePagesLayout() to update pages layout.
Note: Currently not support to import pages from a PDF which contains XFA form.
dstIndex | A page index in current PDF document. This is used to specify where the imported pages will be inserted. If parameter dstIndex is less than 0, the imported pages will be inserted to the first. If parameter dstIndex is equal to or larger than current page count, the imported pages will be inserted to the end. |
flags | Options for importing pages. Please refer to macro definitions PDFDoc#e_importFlagXXX and this can be one or a combination of these macros. |
layerName | The name of non-selectable label or the prefix name of the non-selectable label to be shown in layer panel of application, in UTF-8 encoding. If parameter flags contains PDFDoc#e_ImportFlagWithLayers, this should not be empty and should be a valid string. If parameter flags does not contain PDFDoc#e_ImportFlagWithLayers, this string will be ignored.
|
srcFilePath | The file path of source PDF document, from which some pages will be imported to current PDF document. |
password | The password string for source PDF document. It should be in UTF-8 encoding. If source PDF document is not encrypted by password, just pass an empty string. |
pageRanges | An integer array which contains the page ranges of source PDF document, to be imported. In this array, 2 numbers are a pair: the first integer is the starting page index, and the second integer is the page count. This parameter is not null , it should contains at least 2 numbers, and the count of elements should be a multiples of 2. |
true
means success, while false
means failure. boolean com.foxit.sdk.PDFViewCtrl.insertPages | ( | int | dstIndex, |
int | flags, | ||
String | layerName, | ||
PDFDoc | srcDoc, | ||
int [] | pageRanges | ||
) |
Start to import pages from another PDF document (via file path). After all operations are ended, you need to call the PDFViewCtrl#updatePagesLayout() to update pages layout.
Note: Currently not support to import pages from a PDF which contains XFA form.
dstIndex | A page index in current PDF document. This is used to specify where the imported pages will be inserted. If parameter dstIndex is less than 0, the imported pages will be inserted to the first. If parameter dstIndex is equal to or larger than current page count, the imported pages will be inserted to the end. |
flags | Options for importing pages. Please refer to macro definitions PDFDoc#e_importFlagXXX and this can be one or a combination of these macros. |
layerName | The name of non-selectable label or the prefix name of the non-selectable label to be shown in layer panel of application, in UTF-8 encoding. If parameter flags contains PDFDoc#e_ImportFlagWithLayers, this should not be empty and should be a valid string. If parameter flags does not contain PDFDoc#e_ImportFlagWithLayers, this string will be ignored.
|
srcDoc | A PDFDoc object |
pageRanges | An integer array which contains the page ranges of source PDF document, to be imported. In this array, 2 numbers are a pair: the first integer is the starting page index, and the second integer is the page count. If this parameter is not null , it should contains at least 2 numbers, and the count of elements should be a multiples of 2. |
true
means success, while false
means failure. boolean com.foxit.sdk.PDFViewCtrl.isDynamicXFA | ( | ) |
Check whether the current xfa document is Dynamic xfa.
true
means the current xfa document is Dynamic xfa, while false
means the current xfa document is not Dynamic xfa. boolean com.foxit.sdk.PDFViewCtrl.isNightMode | ( | ) |
Check if it's night mode
boolean com.foxit.sdk.PDFViewCtrl.isOwner | ( | ) |
Check whether current user is the owner.
true
means current user is the owner, while false
means current user is not the owner. boolean com.foxit.sdk.PDFViewCtrl.isPageVisible | ( | int | pageIndex | ) |
Check whether a specified page is visible or not.
pageIndex | Page index.Valid range: from 0 to (count -1). count is the page count. |
true
means the specified page is visible. false
means the specified page is invisible.
|
static |
Lock to sync with page rendering process in the view control. Usually caller should call this API before page content is modified or annotation is going to reset its appearance.
boolean com.foxit.sdk.PDFViewCtrl.movePage | ( | int | index, |
int | dstIndex | ||
) |
Move page to destination index. After all operations are ended, you need to call the PDFViewCtrl#updatePagesLayout() to update pages layout.
index | The index of page which will be moved. |
dstIndex | The destination index. |
true
means success, while false
means failure. boolean com.foxit.sdk.PDFViewCtrl.onDoubleTap | ( | MotionEvent | e | ) |
Notified when a double-tap occurs.
e | The down motion event of the first tap of the double-tap. |
true
means the event is consumed, while false
means not. boolean com.foxit.sdk.PDFViewCtrl.onDoubleTapEvent | ( | MotionEvent | e | ) |
Notified when an event within a double-tap gesture occurs, including down, move, and up events.
e | The motion event that occurred during the double-tap gesture. |
true
means the event is consumed, while false
means not. boolean com.foxit.sdk.PDFViewCtrl.onDown | ( | MotionEvent | e | ) |
Notified when a tap occurs with the down MotionEvent that triggered it.
This will be triggered immediately for every down event. All other events should be preceded by this.
e | The down motion event. |
true
means the event is consumed.false
means not. boolean com.foxit.sdk.PDFViewCtrl.onFling | ( | MotionEvent | e1, |
MotionEvent | e2, | ||
float | velocityX, | ||
float | velocityY | ||
) |
Notified of a fling event when it occurs with the initial on down MotionEvent and the matching up MotionEvent. The calculated velocity is supplied along the x and y axis in pixels per second.
e1 | The first down motion event that started the fling. |
e2 | The move motion event that triggered the current onFling. |
velocityX | The velocity of this fling measured in pixels per second along the x axis. |
velocityY | The velocity of this fling measured in pixels per second along the y axis. |
true
means the event is consumed, while false
means not. void com.foxit.sdk.PDFViewCtrl.onLongPress | ( | MotionEvent | e | ) |
Notified when a long press occurs with the initial on down MotionEvent that trigger it.
It will dispatch the long-press event to function
e | The initial on down motion event that started the long-press. |
boolean com.foxit.sdk.PDFViewCtrl.onScale | ( | ScaleGestureDetector | detector | ) |
Respond to scaling events for a gesture in progress. Reported by pointer motion.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
true
means the detector should consider this event as handled. false
means the detector does not need to consider this event as handled. If an event was not handled, the detector will continue to accumulate movement until an event is handled. This can be useful if an application, for example, only wants to update scaling factors if the change is greater than 0.01. boolean com.foxit.sdk.PDFViewCtrl.onScaleBegin | ( | ScaleGestureDetector | detector | ) |
Responds to the beginning of a scaling gesture. Reported by new pointers going down.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
true
means the detector should continue recognizing this gesture. false
means the detector does not need to continue recognizing this gesture. For example, if a gesture is beginning with a focal point outside of a region where it makes sense, this function may return false
to ignore the rest of the gesture. void com.foxit.sdk.PDFViewCtrl.onScaleEnd | ( | ScaleGestureDetector | detector | ) |
Responds to the end of a scale gesture. Reported by existing pointers going up.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
boolean com.foxit.sdk.PDFViewCtrl.onScroll | ( | MotionEvent | e1, |
MotionEvent | e2, | ||
float | distanceX, | ||
float | distanceY | ||
) |
Notified when a scroll occurs with the initial on down MotionEvent and the current move MotionEvent. The distance in x and y is also supplied for convenience.
e1 | The first down motion event that started the scrolling. |
e2 | The move motion event that triggered the current onScroll. |
distanceX | The distance along the X axis that has been scrolled since the last call to onScroll. This is NOT the distance between e1 e2 |
distanceY | The distance along the Y axis that has been scrolled since the last call to onScroll. This is NOT the distance between e1 e2 |
true
means the event is consumed, while false
means not. void com.foxit.sdk.PDFViewCtrl.onShowPress | ( | MotionEvent | e | ) |
The user has performed a down MotionEvent and not performed a move or up yet. This event is commonly used to provide visual feedback to the user to let them know that their action has been recognized i.e. highlight an element.
e | The down motion event. |
boolean com.foxit.sdk.PDFViewCtrl.onSingleTapConfirmed | ( | MotionEvent | e | ) |
Notified when a single-tap occurs.
It will dispatch the single-tap event to UIExtensionsManager interface and all other touch event listeners that register by function registerDoubleTapEventListener(IDoubleTapEventListener).
e | The down motion event of the single-tap. |
true
means the event is consumed, while false
means not. boolean com.foxit.sdk.PDFViewCtrl.onSingleTapUp | ( | MotionEvent | e | ) |
Notified when a tap occurs with the up MotionEvent that triggered it.
e | The up motion event that completed the first tap |
true
means the event is consumed, while false
means not. boolean com.foxit.sdk.PDFViewCtrl.onTouchEvent | ( | MotionEvent | e | ) |
The override implementation of android.view.onTouchEvent().
It will dispatch the touch event to UIExtensionsManager interface and all other touch event listeners that register by function registerTouchEventListener(ITouchEventListener).
e | The motion event. |
true
means the event was handled, while false
means not. void com.foxit.sdk.PDFViewCtrl.openDoc | ( | final String | path, |
final byte [] | password | ||
) |
Open PDF document from a specified PDF file path.
path | A PDF file path. |
password | A byte array which specifies the password used to load the PDF document content. It can be either user password or owner password. If the PDF document is not encrypted by password, just pass an empty string. |
void com.foxit.sdk.PDFViewCtrl.openDoc | ( | Uri | uri, |
final byte [] | password | ||
) |
Open PDF document from a specified URL.
Note that it will create a temporary file as cache for downloading the PDF file. The cache will be removed after closing the document.
uri | A PDF url. |
password | A byte array which specifies the password used to load the PDF document content. It can be either user password or owner password. If the PDF document is not encrypted by password, just pass an empty string. |
void com.foxit.sdk.PDFViewCtrl.openDocFromMemory | ( | final byte [] | buffer, |
final byte [] | password | ||
) |
Open the PDF document from memory buffer.
buffer | A memory buffer, containing the serialized document. |
password | A byte array which specifies the password used to load the PDF document content. It can be either user password or owner password. If the PDF document is not encrypted by password, just pass an empty string. |
void com.foxit.sdk.PDFViewCtrl.openDocFromUrl | ( | String | url, |
byte [] | password, | ||
CacheOption | cacheOption, | ||
HttpRequestProperties | properties | ||
) |
Open PDF document from a specified URL.
Note: In the first, maybe open document from cache if there is. You should clearCacheFile(String) to delete the cache file.
url | The url of the document to open. It supports HTTP and HTTPS. |
password | A byte array which specifies the password used to load the PDF document content. It can be either user password or owner password. If the PDF document is not encrypted by password, just pass an empty string. |
cacheOption | The cache option used to download the PDF file, may be null |
properties | The request properties that HTTP requires, may be null |
void com.foxit.sdk.PDFViewCtrl.recoverForOOM | ( | ) |
Do the recovering when Foxit PDF SDK runs out of memory.
Foxit PDF SDK will call this method automatically. This needs to be used carefully. Current reading status will be restored, but all the editing to document will be lost.
void com.foxit.sdk.PDFViewCtrl.refresh | ( | int | pageIndex, |
Rect | rect | ||
) |
Refresh a specified rectangle area in a specified page.
pageIndex | Page index. Valid range: from 0 to (count -1). count is the page count. |
rect | The specified rectangle, in page view coordinate system. |
void com.foxit.sdk.PDFViewCtrl.registerActivityResultListener | ( | IActivityResultListener | listener | ) |
Register an activity result listener.
listener | An IActivityResultListener object to be registered. |
void com.foxit.sdk.PDFViewCtrl.registerDocEventListener | ( | IDocEventListener | listener | ) |
Register a document event listener.
listener | An IDocEventListener object to be registered. |
void com.foxit.sdk.PDFViewCtrl.registerDoubleTapEventListener | ( | IDoubleTapEventListener | listener | ) |
Register a double tap event listener.
listener | An IDoubleTapEventListener object to be registered. |
void com.foxit.sdk.PDFViewCtrl.registerDrawEventListener | ( | IDrawEventListener | listener | ) |
Register a draw event listener.
listener | An IDrawEventListener object to be registered. |
void com.foxit.sdk.PDFViewCtrl.registerGestureEventListener | ( | IGestureEventListener | listener | ) |
Register a gesture event listener.
listener | An IGestureEventListener object to be registered. |
void com.foxit.sdk.PDFViewCtrl.registerLayoutEventListener | ( | ILayoutEventListener | listener | ) |
Register a layout mode event listener.
listener | An ILayoutEventListener object to be registered. |
void com.foxit.sdk.PDFViewCtrl.registerPageEventListener | ( | IPageEventListener | listener | ) |
Register a page event listener.
listener | An IPageEventListener object to be registered. |
void com.foxit.sdk.PDFViewCtrl.registerRecoveryEventListener | ( | IRecoveryEventListener | listener | ) |
Register an event listener for recovery from running out of memory.
listener | An IRecoveryEventListener object to be registered. |
void com.foxit.sdk.PDFViewCtrl.registerScaleGestureEventListener | ( | IScaleGestureEventListener | listener | ) |
Register a scale gesture event listener.
listener | An IScaleGestureEventListener object to be registered. |
void com.foxit.sdk.PDFViewCtrl.registerTouchEventListener | ( | ITouchEventListener | listener | ) |
Register a touch event listener.
listener | An ITouchEventListener object to be registered. |
boolean com.foxit.sdk.PDFViewCtrl.removePages | ( | int [] | pageIndexes | ) |
Remove pages from pdf document.
After all operations are ended, you need to call the PDFViewCtrl#updatePagesLayout() to update pages layout.
pageIndexes | An integer array specify which pages will be removed. |
true
means success, while false
means failure. void com.foxit.sdk.PDFViewCtrl.removeTask | ( | Task | task | ) |
Remove the task.
task | The task which would be removed. |
boolean com.foxit.sdk.PDFViewCtrl.rotatePages | ( | int [] | pageIndexes, |
int | rotation | ||
) |
Rotate pages with specified rotation. After all operations are ended, you need to call the PDFViewCtrl#updatePagesLayout() to update pages layout.
pageIndexes | An integer array specify which pages will be rotated. |
rotation | New page rotation value. Please refer to Constants.e_rotationXXX values and this should be one of these values. |
true
means success, while false
means failure. void com.foxit.sdk.PDFViewCtrl.rotateView | ( | int | rotation | ) |
Rotates all pages in the document by using the specified degrees clockwise.
Note: After calling this method you must also update the page layout. See updatePagesLayout() for more information.
rotation | The rotation to be used. Please refer to Constants.e_rotationXXX values and this should be one of these values. |
void com.foxit.sdk.PDFViewCtrl.saveDoc | ( | String | filePath, |
int | flag | ||
) |
Save the displayed document to a specified file path with saving flag.
filePath | File path for the new saved PDF file. |
flag | Document saving flags. It can be one or combination of constant definitions e_saveFlagXXX. |
void com.foxit.sdk.PDFViewCtrl.scrollView | ( | float | distanceX, |
float | distanceY | ||
) |
Scroll display view by the specified offset.
distanceX | The distance along the X axis that has been scrolled. |
distanceY | The distance along the Y axis that has been scrolled. |
void com.foxit.sdk.PDFViewCtrl.setAppProvider | ( | AppProviderCallback | callback | ) |
Set a customized AppProviderCallback
object.
User can call this function to set a customized app provider, and this function should be called first before processing XFA document.
If this function has not been called even once, it will use the default xfa provider.
callback | An AppProviderCallback object, which is implemented by user and based on callback class AppProviderCallback . |
void com.foxit.sdk.PDFViewCtrl.setAttachedActivity | ( | Activity | attachedActivity | ) |
Set the attached activity.
If you want open a rms file; you must set the attached activity.
attachedActivity | The attached activity. |
void com.foxit.sdk.PDFViewCtrl.setBackgroundColor | ( | int | color | ) |
Sets the background color for current view.
color | New background color. |
void com.foxit.sdk.PDFViewCtrl.setColorMode | ( | int | colorMode | ) |
Set color mode.
If this function is not called, default value Renderer#e_ColorModeNormal will be used.
colorMode | Color mode value. It should be one of following values:
|
void com.foxit.sdk.PDFViewCtrl.setConnectedPDFEventListener | ( | IConnectedPDFEventListener | listener | ) |
Set a ConnectedPDF event listener.
listener | An IConnectedPDFEventListener object to be set. |
boolean com.foxit.sdk.PDFViewCtrl.setCropMode | ( | int | mode | ) |
Set the page crop mode. Each page will be cropped separately according to the crop mode.
mode | Crop mode. It should be one of following values: |
true
means success, while false
means failure. boolean com.foxit.sdk.PDFViewCtrl.setCropRect | ( | int | pageIndex, |
RectF | cropRect | ||
) |
Set crop rect of the specified page, others are original as default. It won't take effect until calling setCropMode(int)
.
pageIndex | Page index of the cropped page. Valid range: from 0 to (count -1). count is the page count. -1 means the same rect to all pages. |
cropRect | The crop rectangle on the PDF page, in pdf coordinate. |
true
means success, while false
means failure. void com.foxit.sdk.PDFViewCtrl.setDoc | ( | PDFDoc | pdfDocument | ) |
Set the PDF document object to view control, then open the document.
pdfDocument | A PDFDoc object which specifies the pdf document to be opened. |
void com.foxit.sdk.PDFViewCtrl.setFilePath | ( | String | filePath | ) |
Set the file path of the current document.
filePath | the path of the current document. |
void com.foxit.sdk.PDFViewCtrl.setHScrollPos | ( | int | pos | ) |
Set the horizontal scroll position.
pos | New horizontal scroll position. If this value is out of range of current view, it will only be displayed within the last view region. |
void com.foxit.sdk.PDFViewCtrl.setMappingModeBackgroundColor | ( | int | mappingModeBackgroundColor | ) |
Set the "background color" will be work in Renderer#e_ColorModeMapping color mode.
please call the function setColorMode(int) after setting the new "background color".
mappingModeBackgroundColor | the "background color" |
void com.foxit.sdk.PDFViewCtrl.setMappingModeForegroundColor | ( | int | mappingModeForegroundColor | ) |
set the "foreground color" will be work in Renderer#e_ColorModeMapping color mode.
please call the function setColorMode(int) after setting the new "foreground color".
mappingModeForegroundColor | the "foreground color". |
void com.foxit.sdk.PDFViewCtrl.setMaxZoomLimit | ( | float | maxZoomLimit | ) |
Set the maximum zoom bound
maxZoomLimit | the maximum zoom bound, default: 12.0f |
void com.foxit.sdk.PDFViewCtrl.setMinZoomLimit | ( | float | minZoomLimit | ) |
Set the minimum zoom bound
minZoomLimit | the minimum zoom bound, default: 1.0f |
void com.foxit.sdk.PDFViewCtrl.setNightMode | ( | boolean | bNightMode | ) |
Set night mode.
bNightMode | true means to use night mode. false means not to use night mode. |
void com.foxit.sdk.PDFViewCtrl.setPageLayoutMode | ( | @PageMode int | lMode | ) |
Set page layout mode.
lMode | Page layout mode. It should be one of constant definitions |
void com.foxit.sdk.PDFViewCtrl.setPageSpacing | ( | int | space | ) |
Set spacing(in pixels) between adjacent pages in the view.
Note: Currently, It supports in PDFViewCtrl#PAGELAYOUTMODE_FACING and PDFViewCtrl#PAGELAYOUTMODE_COVER mode.
space | spacing between adjacent pages in the view. default: 2. Valid range: from 0 to 10. |
void com.foxit.sdk.PDFViewCtrl.setPageSpacing | ( | int | space, |
int | direction | ||
) |
Sets the vertical and horizontal spacing between adjacent pages in the view.
Note: Currently, It supports in PDFViewCtrl#PAGELAYOUTMODE_CONTINUOUS, PDFViewCtrl#PAGELAYOUTMODE_FACING and PDFViewCtrl#PAGELAYOUTMODE_COVER mode.
space | spacing(in pixels) between adjacent pages in the view. Valid range: from 0 to 10. Note: The default value of the horizontal spacing is 2, and the default value of the vertical spacing is 10. |
direction | Used to decide which kind of direction spacing will be set. Please refer to values starting from PDFViewCtrl#PAGESPACING_HORIZONTAL and this can be one or a combination of these values. |
void com.foxit.sdk.PDFViewCtrl.setReflowMode | ( | int | reflowMode | ) |
Set the reflow mode
reflowMode | Re-flow mode. It should be one or a combination of the following enumeration definitions. Default value: ReflowPage#e_Normal|ReflowPage#e_WithImage . Please refer to ReflowPage.e_reflowXXXX values and this should be one or a combination of these values. |
void com.foxit.sdk.PDFViewCtrl.setUIExtensionsManager | ( | UIExtensionsManager | manager | ) |
Set UI extensions manager.
manager | An UIExtensionsManager object to be set. |
void com.foxit.sdk.PDFViewCtrl.setVScrollPos | ( | int | pos | ) |
Set the vertical scroll position.
pos | New vertical scroll position. If this value is out of range of current view, it will only be displayed within the last view region. |
void com.foxit.sdk.PDFViewCtrl.setZoom | ( | Point | devicePt, |
float | factor | ||
) |
Set the zoom factor and re-render by using the given point as the zoom center.
You can call setMinZoomLimit(float) and setMaxZoomLimit(float) to change the limitation.
devicePt | The device point |
factor | New zoom factor. Default valid range from 1.0f to 12.0f. 1.0f is the value of the fit page mode (the initial model). |
void com.foxit.sdk.PDFViewCtrl.setZoom | ( | float | factor | ) |
Set the zoom factor and re-render.
You can call setMinZoomLimit(float) and setMaxZoomLimit(float) to change the limitation.
factor | New zoom factor. Default valid range from 1.0f to 12.0f. 1.0f is the value of the fit page mode (the initial model). |
void com.foxit.sdk.PDFViewCtrl.setZoomMode | ( | int | zMode | ) |
Set zoom mode.
zMode | New zoom mode. It should be one of constant definitions ZOOMMODE_XXX. |
|
static |
Unlock for the page rendering process.
void com.foxit.sdk.PDFViewCtrl.unregisterActivityResultListener | ( | IActivityResultListener | listener | ) |
Unregister an activity result listener.
listener | An IActivityResultListener object to be unregistered. |
void com.foxit.sdk.PDFViewCtrl.unregisterDocEventListener | ( | IDocEventListener | listener | ) |
Unregister a document event listener.
listener | An IDocEventListener object to be unregistered. |
void com.foxit.sdk.PDFViewCtrl.unregisterDoubleTapEventListener | ( | IDoubleTapEventListener | listener | ) |
Unregister a double tap event listener.
listener | An IDoubleTapEventListener object to be unregistered. |
void com.foxit.sdk.PDFViewCtrl.unregisterDrawEventListener | ( | IDrawEventListener | listener | ) |
Unregister a draw event listener.
listener | An IDrawEventListener object to be unregistered. |
void com.foxit.sdk.PDFViewCtrl.unregisterGestureEventListener | ( | IGestureEventListener | listener | ) |
Unregister a gesture event listener.
listener | An IGestureEventListener object to be unregistered. |
void com.foxit.sdk.PDFViewCtrl.unregisterLayoutEventListener | ( | ILayoutEventListener | listener | ) |
Unregister a layout mode event listener.
listener | An ILayoutEventListener object to be unregistered. |
void com.foxit.sdk.PDFViewCtrl.unregisterPageEventListener | ( | IPageEventListener | listener | ) |
Unregister a page event listener.
listener | An IPageEventListener object to be unregistered. |
void com.foxit.sdk.PDFViewCtrl.unregisterRecoveryEventListener | ( | IRecoveryEventListener | listener | ) |
Unregister an event listener for recovery from running out of memory.
listener | An IRecoveryEventListener object to be unregistered. |
void com.foxit.sdk.PDFViewCtrl.unregisterScaleGestureEventListener | ( | IScaleGestureEventListener | listener | ) |
Unregister a scale gesture event listener.
listener | An IScaleGestureEventListener object to be unregistered. |
void com.foxit.sdk.PDFViewCtrl.unregisterTouchEventListener | ( | ITouchEventListener | listener | ) |
Unregister a touch event listener.
listener | An ITouchEventListener object to be unregistered. |
void com.foxit.sdk.PDFViewCtrl.updatePagesLayout | ( | ) |
Update pages layout, you should call this function to update pages layout when some pages be removed, inserted, moved or rotates all pages.
|
static |
Horizontal page spacing.
|
static |
Vertical page spacing.
boolean com.foxit.sdk.PDFViewCtrl.shouldRecover = true |
Used to check whether it should recover from out of memory or not. Default is true
.
|
static |
Zoom mode: customized mode.
|
static |
Zoom mode: fit page height.
|
static |
Zoom mode: fit page.
|
static |
Zoom mode: fit page width.