void
|
addPageStackListener(PdfViewCtrlTabBaseFragment.PageStackListener listener)
|
void
|
addPasswordProtectedDocumentListener(PdfViewCtrlTabBaseFragment.PasswordProtectedListener listener)
|
void
|
addQuickMenuListener(ToolManager.QuickMenuListener listener)
|
void
|
animatePageIndicator(boolean show)
|
void
|
annotationsCouldNotBeAdded(String errorMessage)
|
void
|
applyCutout(int top, int bottom)
|
void
|
attachFileSelected(PointF targetPoint)
Called when a location has been selected for adding the file attachment.
|
boolean
|
canDocBeSaved()
Checks whether the document can be saved.
|
void
|
cancelFindText()
Cancels finding text.
|
void
|
clearPageBackAndForwardStacks()
Clears the stacks of page backward/forward.
|
void
|
closeNavigationList()
Closes the navigation list if it was opened as side sheet
|
void
|
closeRedactionSearchList()
Closes the redaction search dialog if it was opened as side sheet
|
void
|
closeSideSheet(String tag)
Closes the side sheet
|
static
Bundle
|
createBasicPdfViewCtrlTabBundle(String tag, String title, String fileExtension, String password, int itemSource, ViewerConfig config)
Returns the bundle having information needed to create a tab fragment.
|
static
Bundle
|
createBasicPdfViewCtrlTabBundle(String tag, String title, String fileExtension, String password, int itemSource, int initialPage, ViewerConfig config)
Returns the bundle having information needed to create a tab fragment.
|
static
Bundle
|
createBasicPdfViewCtrlTabBundle(String tag, String title, String fileExtension, String password, int itemSource)
Returns the bundle having information needed to create a tab fragment.
|
static
Bundle
|
createBasicPdfViewCtrlTabBundle(Context context, Uri fileUri, String title, String password, ViewerConfig config)
Returns the bundle having information needed to create a tab fragment.
|
static
Bundle
|
createBasicPdfViewCtrlTabBundle(Context context, Uri fileUri, String password, ViewerConfig config)
Returns the bundle having information needed to create a tab fragment.
|
static
Bundle
|
createBasicPdfViewCtrlTabBundle(Context context, Uri fileUri, String password)
Returns the bundle having information needed to create a tab fragment.
|
boolean
|
doesSaveDocNeedNewTab()
|
void
|
exitSearchMode()
Exits the search mode.
|
void
|
fileAttachmentSelected(FileAttachment attachment)
Called when a file attachment has been selected.
|
void
|
fileCreated(String filePath, ToolManager.AdvancedAnnotationListener.AnnotAction action)
Called when an annotation needs to perform an action with a file created
|
void
|
forceSave()
Saves the changes to the document forcefully
|
void
|
freeTextInlineEditingStarted()
Called when free text inline editing has started.
|
void
|
freehandStylusUsedFirstTime()
Called when free hand stylus has been used for the firs time.
|
int
|
getBookmarkDialogCurrentTab()
Returns which tab in bookmark dialog is selected.
|
|
getBookmarks()
Returns the live data containing bookmarks in the document.
|
BookmarksDialogFragment
|
getBookmarksNavigationList()
|
FileInfo
|
getCurrentFileInfo()
Returns the current file info.
|
long
|
getCurrentFileSize()
|
PageBackButtonInfo
|
getCurrentPageInfo()
Returns the current page info.
|
File
|
getExportDirectory()
|
ExternalFileInfo
|
getExportUriDirectory()
|
File
|
getFile()
Returns the file.
|
String
|
getFileName(boolean needsCopy, String suffix)
|
String
|
getFilePath()
Returns the path of the document
|
boolean
|
getHasWarnedAboutCanNotEditDuringConversion()
Checks whether a warning about can not edit during conversion has been shown.
|
PDFViewCtrl
|
getPDFViewCtrl()
|
|
getPageChange()
Returns the live data containing the current page state.
|
Transition
|
getPageNumberIndicatorTransition()
|
PDFDoc
|
getPdfDoc()
Returns the PDF document
|
ReflowControl
|
getReflowControl()
|
int
|
getReflowTextSize()
Returns the reflow text size.
|
int
|
getTabErrorCode()
Returns the error code, if any.
|
int
|
getTabSource()
Returns the item source of the tab.
|
String
|
getTabTag()
Returns the tab tag.
|
String
|
getTabTitle()
Returns the filename of the tab
|
String
|
getTabTitleWithExtension()
Returns the filename of the tab
|
ToolManager
|
getToolManager()
|
Uri
|
getUriFile()
Returns the URI file
|
void
|
gotoNextSearch()
Goes to the next text in search.
|
void
|
gotoPreviousSearch()
Goes to the previous text in search.
|
boolean
|
handleKeyShortcut(int keyCode, KeyEvent event)
Handles CTRL-based key when triggered.
|
boolean
|
handleKeyUp(int keyCode, KeyEvent event)
Handles key when pressed up.
|
void
|
handleOnlineShare()
Handles sharing.
|
void
|
handlePrintAnnotationSummary()
|
void
|
handleSaveAsCopy()
|
void
|
handleSaveCroppedCopy()
|
void
|
handleSaveFlattenedCopy()
|
void
|
handleSaveOptimizedCopy(OptimizeParams params)
|
void
|
handleSavePasswordCopy()
|
boolean
|
handleSpecialFile()
Handles if the file is special case.
|
void
|
handleViewFileAttachments()
|
void
|
handleViewSelectedFileAttachment(File localFolder, ExternalFileInfo extFolder)
|
void
|
handleViewSelectedFileAttachment(File localFolder, ExternalFileInfo extFolder, Uri destFileUri)
|
boolean
|
hasUserCropBox()
|
void
|
hideBackAndForwardButtons()
Hides backward/forward buttons.
|
void
|
hidePageNumberIndicator()
|
void
|
highlightFullTextSearchResult(TextSearchResult result)
Highlights the results of full text search.
|
void
|
highlightSearchResults()
Starts the TextHighlighter tool.
|
void
|
imageSignatureSelected(PointF targetPoint, int targetPage, Long widget)
Called when a location or widget has been selected for adding the image signature
Only one of the param should be valid
|
void
|
imageStamperSelected(PointF targetPoint)
Called when a location has been selected for adding the image stamp.
|
abstract
boolean
|
isAnnotationMode()
|
boolean
|
isContinuousPageMode()
Checks if the tab is in continuous page mode.
|
boolean
|
isConvertibleFormat()
|
boolean
|
isDocModifiedAfterOpening()
Checks whether the document modified after opening.
|
boolean
|
isDocumentReady()
Checks if the document is ready.
|
boolean
|
isExportDirectoryContentUri()
|
boolean
|
isNavigationListShowing()
Gets whether the navigation side sheet is visible
|
boolean
|
isNonContinuousVerticalPageMode()
|
boolean
|
isNotPdf()
Checks whether the document is not PDF.
|
boolean
|
isNotPdfUri()
|
boolean
|
isOpenFileFailed()
Checks if opening file failed.
|
boolean
|
isPasswordProtected()
|
boolean
|
isReflowMode()
Checks if the tab is in reflow mode.
|
boolean
|
isRtlMode()
Checks whether right-to-left mode is enabled
|
boolean
|
isSearchMode()
Checks whether it is in search mode.
|
boolean
|
isSinglePageMode()
Checks if the tab is in single page mode.
|
boolean
|
isTabReadOnly()
Checks if the tab is ready only.
|
boolean
|
isWebViewConvertibleFormat()
|
void
|
localFileWriteAccessCheck()
Handles if local file doesn't have write access.
|
boolean
|
newFileSelectedFromTool(String filePath, int pageNumber)
|
void
|
onActionGoBack()
|
void
|
onActivityResult(int requestCode, int resultCode, Intent data)
Handles the activity result
|
void
|
onAddNewPage(Page page)
|
void
|
onAddNewPages(Page[] pages)
|
void
|
onAddProgressIndicator()
Handles when a blank page without content is added to the document
as a placeholder.
|
void
|
onAllAnnotationsRemoved()
|
void
|
onAnnotationAction()
|
void
|
onAnnotationSelected(Annot annot, int pageNum)
Called when an annotation has been selected.
|
void
|
onAnnotationUnselected()
Called when an annotation has been unselected.
|
void
|
onAnnotationsAdded(Map<Annot, Integer> annots)
|
void
|
onAnnotationsModified(Map<Annot, Integer> annots, Bundle extra)
|
void
|
onAnnotationsPreModify(Map<Annot, Integer> annots)
|
void
|
onAnnotationsPreRemove(Map<Annot, Integer> annots)
|
void
|
onAnnotationsRemoved(Map<Annot, Integer> annots)
|
void
|
onAnnotationsRemovedOnPage(int pageNum)
|
void
|
onBookmarkModified(List<UserBookmarkItem> bookmarkItems)
Called when PDF bookmarks have been modified.
|
void
|
onChangePointerIcon(PointerIcon pointerIcon)
|
void
|
onConfigurationChanged(Configuration newConfig)
The overloaded implementation of Fragment#onConfigurationChanged(Configuration).
|
void
|
onConversionEvent(PDFViewCtrl.ConversionState state, int totalPagesConverted)
Handles an update during document conversion.
|
void
|
onCreate(Bundle savedInstanceState)
The overloaded implementation of Fragment#onCreate(Bundle).
|
View
|
onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
The overloaded implementation of Fragment#onCreateView(LayoutInflater, ViewGroup, Bundle).
|
void
|
onDeleteCurrentPage()
|
void
|
onDestroy()
The overloaded implementation of Fragment#onDestroy().
|
void
|
onDestroyView()
The overloaded implementation of Fragment#onDestroyView().
|
void
|
onDocPagesModified()
Handles when document pages are modified.
|
void
|
onDocumentLoaded()
Handles terminating document load.
|
boolean
|
onDoubleTap(MotionEvent e)
|
boolean
|
onDown(MotionEvent e)
|
void
|
onDownloadEvent(PDFViewCtrl.DownloadState state, int page_num, int page_downloaded, int page_count, String message)
Handles an update during download.
|
boolean
|
onEnterFullscreenMode()
Called before the containing host fragment enters
fullscreen mode (system status bar and navigation bar will be hidden).
|
boolean
|
onExitFullscreenMode()
Called before the containing host fragment exits
fullscreen mode (system status bar and/or navigation bar will be shown).
|
void
|
onExportAnnotations(PDFDoc outputDoc)
Called when document annotations have been exported.
|
void
|
onFullSaveRequired()
|
void
|
onGenericMotionEvent(MotionEvent event)
Handles generic motion events.
|
void
|
onHiddenChanged(boolean hidden)
The overloaded implementation of Fragment#onHiddenChanged(boolean).
|
abstract
boolean
|
onHideToolbars()
Called when the androidx.appcompat.widget.Toolbar toolbar of the containing
host fragment will be hidden.
|
boolean
|
onInterceptAnnotationHandling(Annot annot, Bundle extra, ToolManager.ToolMode toolMode)
Intercept tool's response to user actions (such as clicking on links,
clicking on form widget, or about to change annotation properties etc.)
If handled, tool will stop default logic.
|
boolean
|
onInterceptDialog(AlertDialog dialog)
Intercept handling of dialog
|
boolean
|
onKeyUp(int keyCode, KeyEvent event)
|
boolean
|
onLongPress(MotionEvent e)
|
void
|
onLowMemory()
The overloaded implementation of Fragment#onLowMemory().
|
boolean
|
onMove(MotionEvent e1, MotionEvent e2, float x_dist, float y_dist)
|
void
|
onPageChange(int old_page, int cur_page, PDFViewCtrl.PageChangeState state)
Handles changes the page number.
|
void
|
onPageLabelsChanged()
Called when page labels have been changed
|
void
|
onPageMoved(int from, int to)
|
void
|
onPagesAdded(List<Integer> pageList)
|
void
|
onPagesCropped()
|
void
|
onPagesDeleted(List<Integer> pageList)
|
void
|
onPagesMoved(List<Integer> pagesMoved, int to, int currentPage)
Called when pages have been moved.
|
void
|
onPagesRotated(List<Integer> pageList)
|
void
|
onPause()
The overloaded implementation of Fragment#onPause().
|
void
|
onPdfTextChanged()
|
void
|
onPortfolioDialogFragmentFileClicked(int fileType, PortfolioDialogFragment dialog, String fileName)
|
void
|
onPositionProgressIndicatorPage(Rect position)
Handles when the position of the blank page without content moves.
|
void
|
onProgressIndicatorPageVisibilityChanged(boolean isVisible)
Handles when the blank page without content enters or leaves the screen.
|
boolean
|
onQuickMenuClicked(QuickMenuItem menuItem)
|
void
|
onQuickMenuDismissed()
|
void
|
onQuickMenuShown()
|
void
|
onReflowSingleTapUp(MotionEvent event)
|
void
|
onRemoveContentPendingIndicator()
Handles when the content on the page the user was previously trying to access is
accessible.
|
void
|
onRemoveProgressIndicator()
Handles when a blank page without content is removed from the document.
|
void
|
onRenderingFinished()
|
void
|
onRenderingStarted()
|
void
|
onResume()
The overloaded implementation of Fragment#onResume().
|
void
|
onSaveFileAttachmentSelected(FileAttachment fileAttachment, Intent intent)
|
void
|
onSaveInstanceState(Bundle outState)
|
boolean
|
onScale(float x, float y)
|
boolean
|
onScaleBegin(float x, float y)
|
boolean
|
onScaleEnd(float x, float y)
|
void
|
onScrollChanged(int l, int t, int oldl, int oldt)
|
void
|
onShowContentPendingIndicator()
Handles when it user is trying to access the next page of the PDFViewCtrl but there is no
room for the visual progress indicator in the viewer.
|
boolean
|
onShowQuickMenu(QuickMenu quickMenu, Annot annot)
Called when quick menu is about to show.
|
boolean
|
onShowToolbar()
Called when the androidx.appcompat.widget.Toolbar toolbar of the containing
host fragment will be shown.
|
boolean
|
onSingleTapConfirmed(MotionEvent e)
|
void
|
onStop()
The overloaded implementation of Fragment#onStop().
|
void
|
onThumbnailsViewDialogDismiss(int pageNum, boolean docPagesModified)
Handles when thumbnails view dialog is dismissed.
|
boolean
|
onUp(MotionEvent e, PDFViewCtrl.PriorEventMode priorEventMode)
|
void
|
onViewCreated(View view, Bundle savedInstanceState)
The overloaded implementation of Fragment#onViewCreated(View, Bundle).
|
void
|
openNavigationList(BookmarksDialogFragment bookmarksDialogFragment, int marginTop, int marginBottom)
|
void
|
openNavigationList(BookmarksDialogFragment bookmarksDialogFragment)
Opens the navigation list as a side sheet
|
void
|
openRedactionSearchList(SearchRedactionDialogFragment searchRedactionDialogFragment)
Opens the redaction search dialog as a side sheet
|
void
|
openRedactionSearchList(SearchRedactionDialogFragment searchRedactionDialogFragment, int marginTop, int marginBottom)
|
void
|
openSideSheet(DialogFragment dialogFragment, String tag, int marginTop, int marginBottom)
Opens a dialog fragment as side sheet
|
void
|
queryTextSubmit(String text)
Submits the query text.
|
void
|
redo()
Redo the last undo operation.
|
void
|
refreshPageCount()
Refreshes the number of pages.
|
void
|
removeFromRecentList()
Removes the current file from the recent list.
|
void
|
removePageStackListener(PdfViewCtrlTabBaseFragment.PageStackListener listener)
|
void
|
removePasswordProtectedDocumentListener(PdfViewCtrlTabBaseFragment.PasswordProtectedListener listener)
|
void
|
removeQuickMenuListener(ToolManager.QuickMenuListener listener)
|
void
|
resetAutoSavingTimer()
|
void
|
resetFullTextResults()
Resets full text results.
|
void
|
save(boolean close, boolean forceSave, boolean skipSpecialFileCheck, boolean upload)
Saves the changes to the document.
|
void
|
save(boolean close, boolean forceSave, boolean skipSpecialFileCheck)
Saves the changes to the document.
|
void
|
saveExternalFile(boolean close, boolean forceSave)
Saves external document file.
|
void
|
saveLocalFile(boolean close, boolean forceSave)
Saves local document file.
|
void
|
setBookmarkDialogCurrentTab(int index)
Sets the which tab in bookmarks dialog should be selected.
|
void
|
setCanAddToTabInfo(boolean enabled)
Sets if the file an be added to tab info.
|
void
|
setColorModeChanged()
Specifies that color mode has been changed.
|
void
|
setCurrentPageHelper(int nextPageNum, boolean setPDFViewCtrl)
Helper to set the current page.
|
static
void
|
setDebug(boolean debug)
|
void
|
setHasWarnedAboutCanNotEditDuringConversion()
Specifies that the warning about can not edit during conversion has been shown.
|
void
|
setReflowMode(boolean isReflowMode)
Sets the reflow mode.
|
void
|
setRtlMode(boolean isRtlMode)
Sets right-to-left mode
|
void
|
setSavedAndClosedShown()
Confirms that document saved toast has been shown.
|
void
|
setSavingEnabled(boolean enabled)
Set enable or disable auto-saving annotations.
|
void
|
setSearchMatchCase(boolean matchCase)
Sets the search rule for match case.
|
void
|
setSearchMode(boolean enabled)
Sets search mode
|
void
|
setSearchNavButtonsVisible(boolean visible)
Sets the visibility of search navigation buttons.
|
void
|
setSearchQuery(String text)
Specifies the search query.
|
void
|
setSearchSettings(boolean matchCase, boolean wholeWord)
Sets the search rules for match case and whole word.
|
void
|
setSearchWholeWord(boolean wholeWord)
Sets the search rule for whole word.
|
void
|
setStateEnabled(boolean enabled)
set enable or disable saving state of document from outside
|
void
|
setTabListener(PdfViewCtrlTabBaseFragment.TabListener listener)
|
abstract
void
|
setThumbSliderVisible(boolean visible, boolean animateThumbSlider)
Sets the visibility of thumbnail slider.
|
void
|
showBackAndForwardButtons()
Shows backward/forward buttons.
|
void
|
showReadOnlyAlert(DialogFragment dialogToDismiss)
|
void
|
stopAutoSavingTimer()
|
boolean
|
toggleReflow()
Toggles the reflow mode.
|
boolean
|
toggleRtlMode()
Toggles right-to-left mode.
|
void
|
toolChanged(ToolManager.Tool newTool, ToolManager.Tool oldTool)
Event called when the tool changes.
|
void
|
undo()
Undo the last modification.
|
void
|
updateColorMode()
Updates the color mode.
|
void
|
updateCurrentPageInfo()
Updates the current page info.
|
void
|
updateNavigationListLayout(int marginTop, int marginBottom, boolean animated)
|
void
|
updatePrintAnnotationsMode(boolean enabled)
Updates annotation mode in print.
|
void
|
updatePrintDocumentMode(boolean enabled)
Updates documentation mode in print.
|
void
|
updatePrintSummaryMode(boolean enabled)
Updates summery mode in print.
|
void
|
updateRecentList()
Updates the recent list.
|
void
|
updateViewMode(PDFViewCtrl.PagePresentationMode pagePresentationMode)
Updates the view mode.
|
void
|
userCropDialogDismiss()
Dismisses the user crop dialog.
|
void
|
zoomInOutReflow(boolean flagZoomIn)
Zooms in/out reflow mode.
|