| java.lang.Object | |
| ↳ | com.pspdfkit.configuration.activity.PdfActivityConfiguration.Builder |
Builder used to construct a PdfActivityConfiguration instance.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Builder(Context context)
Creates a new
PdfActivity configuration builder. | |||||||||||
|
Builder(PdfActivityConfiguration configuration)
Create a new builder from existing configuration.
| |||||||||||
|
Builder(PdfActivityConfiguration configuration, int themeRes)
Create a new builder from existing configuration.
| |||||||||||
|
Builder(PdfActivityConfiguration configuration, int themeRes, int themeDarkRes)
Create a new builder from existing configuration.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| PdfActivityConfiguration.Builder |
annotationReplyFeatures(AnnotationReplyFeatures annotationReplyFeatures)
Configures which part of the annotation replies UI is enabled.
| ||||||||||
| PdfActivityConfiguration.Builder |
automaticallyGenerateLinks(boolean automaticallyGenerateLinks)
Enables or disables automatic link generation.
| ||||||||||
| PdfActivityConfiguration.Builder |
autosaveEnabled(boolean isAutosaveEnabled)
Enables or disables autosaving of modified PDF documents.
| ||||||||||
| PdfActivityConfiguration.Builder |
backgroundColor(int backgroundColor)
Sets color of PDF background.
| ||||||||||
| PdfActivityConfiguration |
build()
Generates the
PdfActivityConfiguration instance. | ||||||||||
| PdfActivityConfiguration.Builder |
configuration(PdfConfiguration configuration)
Replaces all properties from the
PdfConfiguration | ||||||||||
| PdfActivityConfiguration.Builder |
disableAnnotationEditing()
Disables annotation editing functionality.
| ||||||||||
| PdfActivityConfiguration.Builder |
disableAnnotationList()
Disables the list of annotations.
| ||||||||||
| PdfActivityConfiguration.Builder |
disableAnnotationRotation()
Disables annotation rotation functionality.
| ||||||||||
| PdfActivityConfiguration.Builder |
disableBookmarkEditing()
Disabled editing controls on the bookmarks list.
| ||||||||||
| PdfActivityConfiguration.Builder |
disableBookmarkList()
Disables the display of bookmarks.
| ||||||||||
| PdfActivityConfiguration.Builder |
disableCopyPaste()
Disables copy and paste of annotations.
| ||||||||||
| PdfActivityConfiguration.Builder |
disableDocumentEditor()
Disables document editing functionality in the page grid.
| ||||||||||
| PdfActivityConfiguration.Builder |
disableDocumentInfoView()
Disables the document info view.
| ||||||||||
| PdfActivityConfiguration.Builder |
disableFormEditing()
Disables form editing functionality.
| ||||||||||
| PdfActivityConfiguration.Builder |
disableOutline()
Disables outline menu in the activity.
| ||||||||||
| PdfActivityConfiguration.Builder |
disablePrinting()
Hides printing option in the sharing menu even if printing can be done on the device.
| ||||||||||
| PdfActivityConfiguration.Builder |
disableSearch()
Disables document search functionality.
| ||||||||||
| PdfActivityConfiguration.Builder |
disableShare()
This method is deprecated.
Use
setEnabledShareFeatures(EnumSet) with ShareFeatures.none().
| ||||||||||
| PdfActivityConfiguration.Builder |
editableAnnotationTypes(List<AnnotationType> editableAnnotationTypes)
Sets a list of annotation types that can be selected on page and edited.
| ||||||||||
| PdfActivityConfiguration.Builder |
enableAnnotationEditing()
Enables annotation editing functionality.
| ||||||||||
| PdfActivityConfiguration.Builder |
enableAnnotationList()
Enables the list of annotations.
| ||||||||||
| PdfActivityConfiguration.Builder |
enableAnnotationRotation()
Enables annotation rotation functionality.
| ||||||||||
| PdfActivityConfiguration.Builder |
enableBookmarkEditing()
Enables editing controls on the bookmarks list.
| ||||||||||
| PdfActivityConfiguration.Builder |
enableBookmarkList()
Enables the display of bookmarks.
| ||||||||||
| PdfActivityConfiguration.Builder |
enableCopyPaste()
Enables copy and paste of annotations.
| ||||||||||
| PdfActivityConfiguration.Builder |
enableDocumentEditor()
Enables document editing functionality in the page grid.
| ||||||||||
| PdfActivityConfiguration.Builder |
enableDocumentInfoView()
Enables the document info view.
| ||||||||||
| PdfActivityConfiguration.Builder |
enableFormEditing()
Enables form editing functionality.
| ||||||||||
| PdfActivityConfiguration.Builder |
enableOutline()
Enables outline menu in the activity.
| ||||||||||
| PdfActivityConfiguration.Builder |
enablePrinting()
Enables printing option in the menu if applicable for the document and the device.
| ||||||||||
| PdfActivityConfiguration.Builder |
enableSearch()
Enables document search functionality.
| ||||||||||
| PdfActivityConfiguration.Builder |
enableShare()
This method is deprecated.
Use
setEnabledShareFeatures(EnumSet) with ShareFeatures.all().
| ||||||||||
| PdfActivityConfiguration.Builder |
enabledAnnotationTools(List<AnnotationTool> enabledAnnotationTools)
Sets a list of annotation tools that are enabled.
| ||||||||||
| PdfActivityConfiguration.Builder |
excludedAnnotationTypes(ArrayList<AnnotationType> excludedAnnotationTypes)
Sets a list of annotation types that will be excluded from rendering.
| ||||||||||
| PdfActivityConfiguration.Builder |
firstPageAlwaysSingle(boolean firstPageAlwaysSingle)
Sets whether the first page should always be displayed as a single or not.
| ||||||||||
| PdfActivityConfiguration.Builder |
fitMode(PageFitMode mode)
Sets the page fit mode.
| ||||||||||
| PdfActivityConfiguration.Builder |
hideDocumentTitleOverlay()
Hides the overlay displaying the document title.
| ||||||||||
| PdfActivityConfiguration.Builder |
hideNavigationButtons()
Hides the navigation buttons.
| ||||||||||
| PdfActivityConfiguration.Builder |
hidePageLabels()
Hides page labels (if any).
| ||||||||||
| PdfActivityConfiguration.Builder |
hidePageNumberOverlay()
Hides the overlay displaying currently selected page.
| ||||||||||
| PdfActivityConfiguration.Builder |
hideSettingsMenu()
Hides the settings menu icon.
| ||||||||||
| PdfActivityConfiguration.Builder |
hideThumbnailGrid()
Hides the actionbar icon to show grid of thumbnail pages.
| ||||||||||
| PdfActivityConfiguration.Builder |
hideUserInterfaceWhenCreatingAnnotations(boolean hideUserInterfaceWhenCreatingAnnotations)
Set to automatically hide user interface controls when annotation creation toolbar position is in vertical
position (left/right).
| ||||||||||
| PdfActivityConfiguration.Builder |
invertColors(boolean invertColors)
Sets if the colors will be inverted in the document.
| ||||||||||
| PdfActivityConfiguration.Builder |
layout(int layoutRes)
Sets a
layoutRes used by the launched activity. | ||||||||||
| PdfActivityConfiguration.Builder |
layoutMode(PageLayoutMode mode)
Sets the page layout mode, or how the document will layout the pages (as single pages, double pages or
automatically).
| ||||||||||
| PdfActivityConfiguration.Builder |
listedAnnotationTypes(EnumSet<AnnotationType> listedAnnotationTypes)
Sets the annotation types that should be displayed in the annotation list.
| ||||||||||
| PdfActivityConfiguration.Builder |
loadingProgressDrawable(Integer loadingProgressDrawable)
Sets a drawable for loading progress throbber while document is loaded.
| ||||||||||
| PdfActivityConfiguration.Builder |
maxZoomScale(float scale)
Sets the maximum zoom scale at which the document should be displayed.
| ||||||||||
| PdfActivityConfiguration.Builder |
memoryCacheSize(int memoryCacheSize)
Sets size of memory cache for rendered pages and bitmaps. | ||||||||||
| PdfActivityConfiguration.Builder |
page(int pageIndex)
Sets the page to start the document at.
| ||||||||||
| PdfActivityConfiguration.Builder |
pagePadding(int pagePaddingDp)
Sets the padding between pages.
| ||||||||||
| PdfActivityConfiguration.Builder |
redoEnabled(boolean redoEnabled)
Enables or disables redo support.
| ||||||||||
| PdfActivityConfiguration.Builder |
restoreLastViewedPage(boolean restoreLastViewedPage)
Enables or disables restoration of the last viewed page when reopening a document.
| ||||||||||
| PdfActivityConfiguration.Builder |
scrollDirection(PageScrollDirection orientation)
Sets the scrolling direction (i.e.
| ||||||||||
| PdfActivityConfiguration.Builder |
scrollMode(PageScrollMode mode)
Sets the scrolling mode.
| ||||||||||
| PdfActivityConfiguration.Builder |
scrollbarsEnabled(boolean scrollbarsEnabled)
Sets the document scrollbars to be enabled or disabled.
| ||||||||||
| PdfActivityConfiguration.Builder |
searchConfiguration(SearchConfiguration searchConfiguration)
Sets configuration used for searching, applied to search views.
| ||||||||||
| PdfActivityConfiguration.Builder |
setAnnotationInspectorEnabled(boolean isEnabled)
Sets whether the annotation inspector is enabled.
| ||||||||||
| PdfActivityConfiguration.Builder |
setAnnotationNoteHintingEnabled(boolean isEnabled)
Enables or disables visual indicator shown for annotations that have annotation notes.
| ||||||||||
| PdfActivityConfiguration.Builder |
setCustomerSignatureFeatureEnabled(boolean isEnabled)
This method is deprecated.
Use
signatureSavingStrategy(SignatureSavingStrategy) to control how signature saving is
performed.
| ||||||||||
| PdfActivityConfiguration.Builder |
setEnableNoteAnnotationNoZoomHandling(boolean noZoomHandlingEnabled)
Enables or disables handling for
NOZOOM flag for note annotations. | ||||||||||
| PdfActivityConfiguration.Builder |
setEnabledCopyPasteFeatures(EnumSet<CopyPasteFeatures> enabledFeatures)
Sets the
CopyPasteFeatures that are enabled. | ||||||||||
| PdfActivityConfiguration.Builder |
setEnabledShareFeatures(EnumSet<ShareFeatures> enabledShareFeatures)
Configures which share features are enabled in the UI.
| ||||||||||
| PdfActivityConfiguration.Builder |
setJavaScriptEnabled(boolean isEnabled)
Enables or disables JavaScript processing.
| ||||||||||
| PdfActivityConfiguration.Builder |
setMultithreadedRenderingEnabled(boolean isMultithreadedRenderingEnabled)
Sets whether the multithreaded rendering should be enabled.
| ||||||||||
| PdfActivityConfiguration.Builder |
setRedactionUiEnabled(boolean redactionUiEnabled)
Sets whether we show the UI to apply redactions when there are
RedactionAnnotation
in the document or not. | ||||||||||
| PdfActivityConfiguration.Builder |
setResizeGuideLineIntervals(List<Float> intervals)
Sets guide line on/off intervals sizes.
| ||||||||||
| PdfActivityConfiguration.Builder |
setResizeGuideSnapAllowance(float snapAllowance)
Sets how aggressively the resize guides works.
| ||||||||||
| PdfActivityConfiguration.Builder |
setSearchType(int searchType)
Sets the search type (if search is enabled).
| ||||||||||
| PdfActivityConfiguration.Builder |
setSelectedAnnotationResizeEnabled(boolean enabled)
Enable or disable resizing of selected annotations.
| ||||||||||
| PdfActivityConfiguration.Builder |
setSelectedAnnotationResizeGuidesEnabled(boolean enabled)
Enables or disables resize guides.
| ||||||||||
| PdfActivityConfiguration.Builder |
setSettingsMenuItems(EnumSet<SettingsMenuItemType> settingsMenuItemShown)
Sets the items to show in the settings menu.
| ||||||||||
| PdfActivityConfiguration.Builder |
setSignaturePickerOrientation(SignaturePickerOrientation orientation)
Sets the orientation to use for the signature picker.
| ||||||||||
| PdfActivityConfiguration.Builder |
setSignatureSavingEnabled(boolean isEnabled)
This method is deprecated.
Use
signatureSavingStrategy(SignatureSavingStrategy) to control how signature saving is
performed.
| ||||||||||
| PdfActivityConfiguration.Builder |
setTabBarHidingMode(TabBarHidingMode tabBarHidingMode)
Configures the tab bar hiding mode.
| ||||||||||
| PdfActivityConfiguration.Builder |
setThumbnailBarMode(ThumbnailBarMode thumbnailBarMode)
Sets the thumbnail bar mode.
| ||||||||||
| PdfActivityConfiguration.Builder |
setUserInterfaceViewMode(UserInterfaceViewMode userInterfaceViewMode)
Sets the user interface view mode.
| ||||||||||
| PdfActivityConfiguration.Builder |
setVolumeButtonsNavigationEnabled(boolean isVolumeButtonsNavigationEnabled)
Enables or disables volume buttons navigation.
| ||||||||||
| PdfActivityConfiguration.Builder |
sharingNoteEditorContentEnabled(boolean enabled)
This method is deprecated.
Enable
NOTE_EDITOR_CONTENT_SHARING via setEnabledShareFeatures(EnumSet.
| ||||||||||
| PdfActivityConfiguration.Builder |
showDocumentTitleOverlay()
Shows overlay displaying the document title.
| ||||||||||
| PdfActivityConfiguration.Builder |
showGapBetweenPages(boolean showGapBetweenPages)
Sets whether to show gao between pages in double page mode or not.
| ||||||||||
| PdfActivityConfiguration.Builder |
showNavigationButtons()
Shows the navigation buttons.
| ||||||||||
| PdfActivityConfiguration.Builder |
showPageLabels()
Enables display of the page labels (if any).
| ||||||||||
| PdfActivityConfiguration.Builder |
showPageNumberOverlay()
Shows overlay displaying current page number over document.
| ||||||||||
| PdfActivityConfiguration.Builder |
showSettingsMenu()
Shows the settings menu icon.
| ||||||||||
| PdfActivityConfiguration.Builder |
showThumbnailGrid()
Displays an actionbar icon to show grid of thumbnail pages.
| ||||||||||
| PdfActivityConfiguration.Builder |
signatureAppearance(SignatureAppearance signatureAppearance)
Defines the appearance of the digital signature that is added after digitally signing a document.
| ||||||||||
| PdfActivityConfiguration.Builder |
signatureCertificateSelectionMode(SignatureCertificateSelectionMode signatureCertificateSelectionMode)
Defines if the user should be able to select certificates for digitally signing a document, when creating a
new signature.
| ||||||||||
| PdfActivityConfiguration.Builder |
signatureSavingStrategy(SignatureSavingStrategy signatureSavingStrategy)
Defines if a signature should be saved after creation.
| ||||||||||
| PdfActivityConfiguration.Builder |
startZoomScale(float startZoomScale)
Sets the start scale at which the document will be displayed.
| ||||||||||
| PdfActivityConfiguration.Builder |
textSelectionEnabled(boolean isTextSelectionEnabled)
Enables or disables text selection (both programmatically and via long-press gesture).
| ||||||||||
| PdfActivityConfiguration.Builder |
textSelectionPopupToolbarEnabled(boolean enabled)
Sets whether the text selection popup toolbar is enabled or not.
| ||||||||||
| PdfActivityConfiguration.Builder |
theme(int themeRes)
Sets a
themeRes used to override default activity theme. | ||||||||||
| PdfActivityConfiguration.Builder |
themeDark(int themeDarkRes)
Sets a
themeDarkRes used to override dark activity theme. | ||||||||||
| PdfActivityConfiguration.Builder |
themeMode(ThemeMode mode)
Sets the app theme mode.
| ||||||||||
| PdfActivityConfiguration.Builder |
title(String title)
Sets the actionbar activity title.
| ||||||||||
| PdfActivityConfiguration.Builder |
toGrayscale(boolean toGrayscale)
Sets if the colors will be converted to grayscale.
| ||||||||||
| PdfActivityConfiguration.Builder |
undoEnabled(boolean undoEnabled)
Enables or disables undo support.
| ||||||||||
| PdfActivityConfiguration.Builder |
useImmersiveMode(boolean useImmersiveMode)
Enabled immersive fullscreen mode in the activity.
| ||||||||||
| PdfActivityConfiguration.Builder |
videoPlaybackEnabled(boolean videoPlaybackEnabled)
Enables or disables video playback.
| ||||||||||
| PdfActivityConfiguration.Builder |
zoomOutBounce(boolean zoomOutBounce)
Should the zoom out below the minimum zoom have a bounce-back effect on a page.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new PdfActivity configuration builder.
| context | Context object needed for initialization.
|
|---|
Create a new builder from existing configuration.
| configuration | PdfConfiguration used to initialized builder.
|
|---|
Create a new builder from existing configuration.
| configuration | PdfConfiguration used to initialized builder. |
|---|---|
| themeRes | Theme used in the new configuration. |
Create a new builder from existing configuration.
| configuration | PdfConfiguration used to initialized builder. |
|---|---|
| themeRes | Theme used in the new configuration. |
| themeDarkRes | Theme used in dark mode in the new configuration. |
Configures which part of the annotation replies UI is enabled. If ENABLED,
the replies can be added to note annotations and annotation notes. If READ_ONLY, the replies can be looked at but none can be added or modified. If DISABLED, the reply UI is disabled entirely. This feature is only UI specific,
defining the replies availability in the PdfFragment's UI. The API for retrieving and adding replies
still works even if this property is DISABLED.
| annotationReplyFeatures | Which features of annotation reply UI to enable. |
|---|
Enables or disables automatic link generation. If true we will automatically parse the text and
generate clickable links for all URLs and eMail addresses in the document text.
| automaticallyGenerateLinks | true to enable automatic link generation, or false to
disable it.
|
|---|
Enables or disables autosaving of modified PDF documents. This is enabled by default.
| isAutosaveEnabled | true to enable autosave in onStop().
|
|---|
Sets color of PDF background. WHITE by default.
| backgroundColor | PDF paper color in integer ARGB format. |
|---|
Generates the PdfActivityConfiguration instance.
Replaces all properties from the PdfConfiguration
| configuration | Configuration which properties will be copied to this builder. |
|---|
Disables annotation editing functionality.
Disables annotation rotation functionality.
Disabled editing controls on the bookmarks list.
Disables document editing functionality in the page grid.
Hides printing option in the sharing menu even if printing can be done on the device.
This method is deprecated.
Use setEnabledShareFeatures(EnumSet) with ShareFeatures.none().
Disables share menu in the activity.
Sets a list of annotation types that can be selected on page and edited.
| editableAnnotationTypes | List of annotation types that are selectable. Passing null or an empty
list means that ALL supported annotation types are editable.
|
|---|
Enables annotation editing functionality.
Enables annotation rotation functionality.
Enables editing controls on the bookmarks list.
Enables document editing functionality in the page grid.
Enables printing option in the menu if applicable for the document and the device.
This method is deprecated.
Use setEnabledShareFeatures(EnumSet) with ShareFeatures.all().
Enables share menu in the activity.
Sets a list of annotation tools that are enabled.
Note: AnnotationTool will be enabled only when its underlying annotation type
(toAnnotationType()) is editable (see editableAnnotationTypes(List)) and
annotation editing is enabled (see enableAnnotationEditing()).
| enabledAnnotationTools | List of supported annotation tools. Passing null or an empty list means
that ALL supported annotation tools are enabled.
|
|---|
Sets a list of annotation types that will be excluded from rendering.
| excludedAnnotationTypes | List of annotation types that will be excluded from rendering. Passing an empty list means that ALL supported annotation types are rendered. |
|---|
Sets whether the first page should always be displayed as a single or not. This is notable only if double page mode is active.
| firstPageAlwaysSingle | true to always display the first page as a single one, false
otherwise.
|
|---|
Sets the page fit mode. Valid modes are FIT_TO_SCREEN which will try to fit pages into
the device's screen, or FIT_TO_WIDTH which will fit the page so that it's width matches
the device's screen width.
| mode | Page fit mode from PageFitMode.
|
|---|
Hides the overlay displaying the document title.
Hides the overlay displaying currently selected page.
Hides the actionbar icon to show grid of thumbnail pages.
Set to automatically hide user interface controls when annotation creation toolbar position is in vertical
position (left/right). Changing toolbar's position to top restores user interface visibility. This options is
valid only for USER_INTERFACE_VIEW_MODE_AUTOMATIC and USER_INTERFACE_VIEW_MODE_AUTOMATIC_BORDER_PAGES.
| hideUserInterfaceWhenCreatingAnnotations | true when user interface should be hidden when
showing vertical annotation creation toolbar.
|
|---|
Sets if the colors will be inverted in the document. This is disabled by default.
| invertColors | true if colors should be inverted, false otherwise.
|
|---|
Sets a layoutRes used by the launched activity. When using this, make sure that the selected layout
contains all the required views. This defaults to pspdf__pdf_activity.
| layoutRes | Resource identifier of the activity layout. |
|---|
Sets the page layout mode, or how the document will layout the pages (as single pages, double pages or automatically).
| mode | Layout mode set with PageLayoutMode.
|
|---|
Sets the annotation types that should be displayed in the annotation list. By default, all types are
displayed except LINK.
| listedAnnotationTypes | Set of types to be displayed in the annotation list. |
|---|
Sets a drawable for loading progress throbber while document is loaded.
| loadingProgressDrawable | Resource ID of the progress drawable. If set to null, loading throbber
will not be displayed.
|
|---|
Sets the maximum zoom scale at which the document should be displayed. Make sure this value is higher than
defaultZoomScale. Defaults to MAX_ZOOM.
Allowed interval: [1.0, 20.0]
| scale | Scale for the maximum allowed zoom. |
|---|
Sets size of memory cache for rendered pages and bitmaps. Defaults to 1/4 of available heap size of the app.
Note: Disabling this might lead to severe performance problems.
| memoryCacheSize | Size of memory cache in bytes. |
|---|
Sets the page to start the document at. Default value is 0.
| pageIndex | Page at which the document should initially start (0-indexed). |
|---|
Sets the padding between pages. Defaults to 16dp.
| pagePaddingDp | padding between pages in density independent pixels (dp). |
|---|
Enables or disables redo support. If true we will allow the user to redo changes that were undone
before. If false the user will not be able to redo edits. If undo is disabled setting this to true will not do anything.
| redoEnabled | true to enable redo support, or false to disable it.
|
|---|
Enables or disables restoration of the last viewed page when reopening a document. If true, the last
viewed page will be restored when opening the document a second time. If false, the document will be
opened at page index 0. Defaults to true.
Sets the scrolling direction (i.e. the orientation) for the document. This defaults to HORIZONTAL.
| orientation | Scrolling direction from PageScrollDirection.
|
|---|
Sets the scrolling mode. Currently supported scrolling modes are PER_PAGE (also called
paginated scroll mode) which will snap in pages, and CONTINUOUS which will not snap in
to pages, but allow to scroll continuously.
| mode | Page scroll mode from PageScrollMode.
|
|---|
Sets the document scrollbars to be enabled or disabled.
| scrollbarsEnabled | true to enable document scrollbars (default), or false to disable
them.
|
|---|
Sets configuration used for searching, applied to search views.
| searchConfiguration | Configuration to be applied. |
|---|
Sets whether the annotation inspector is enabled. This defaults to true.
| isEnabled | true to enable annotation inspector when creating and editing the annotations.
|
|---|
Enables or disables visual indicator shown for annotations that have annotation notes.
| isEnabled | true to enable visual annotation contents hint, false to disable it.
|
|---|
This method is deprecated.
Use signatureSavingStrategy(SignatureSavingStrategy) to control how signature saving is
performed.
Sets whether Customer Signature feature is enabled when adding a signature to the page.
| isEnabled | true to enable customer signature feature, false to disable |
|---|
Sets the CopyPasteFeatures that are enabled. Defaults to all features being enabled.
Configures which share features are enabled in the UI. This feature is only UI specific, defining the
available sharing features in the PdfActivity. The sharing API still works even if
certain share feature is disabled.
| enabledShareFeatures | Set of share features to enable. |
|---|
Enables or disables JavaScript processing. Defaults to true.
Note: Processing JavaScript can be slow for documents with a large number of document providers or scripts. Disabling in most cases will not have any negative effects.
| isEnabled | true to enable JavaScript processing for loaded documents.
|
|---|
Sets whether the multithreaded rendering should be enabled. Defaults to true.
Multi-document rendering speeds up page rendering. Disabling it may speed things up if, for example, you know you only have to render single page of the document.
| isMultithreadedRenderingEnabled | true to enable multithreaded rendering, false to
disable.
|
|---|
Sets whether we show the UI to apply redactions when there are RedactionAnnotation
in the document or not. Defaults to true.
| redactionUiEnabled | true when the redaction UI should be displayed, false if it should
not be displayed.
|
|---|
Sets guide line on/off intervals sizes. Must have an even number of entries (>=2). Even indices are specifying the "on" intervals, the odd indices specifying the "off" intervals. "On" intervals specify length of the line dashes, "Off" specify length of the line gaps.
| intervals | List of ON and OFF distances. |
|---|
Sets how aggressively the resize guides works.
| snapAllowance | How many pixels around the guide line will snap to guide when resizing. |
|---|
Sets the search type (if search is enabled).
| searchType | Search type to be applied to the document, SEARCH_INLINE
or SEARCH_MODULAR.
|
|---|
Enable or disable resizing of selected annotations. This defaults to true.
| enabled | true to enable resizing of selected annotations, or false to disable
resizing.
|
|---|
Enables or disables resize guides. This defaults to true.
| enabled | true to enable resize guides for resizable annotations, or false to disable
guides.
|
|---|
Sets the items to show in the settings menu. By default all the items are shown. If none are shown the settings menu icon will not be shown either.
| settingsMenuItemShown | Sets the items to show in the settings menu. By default all the items are shown. |
|---|
Sets the orientation to use for the signature picker. Defaults to AUTOMATIC.
| orientation | The orientation to use for the signature picker. |
|---|
This method is deprecated.
Use signatureSavingStrategy(SignatureSavingStrategy) to control how signature saving is
performed.
Sets whether the PSPDFKit will differentiate between My Signature / Customer Signature.
| isEnabled | true if My Signature option would be present, false if it equals Customer
Signature |
|---|
Configures the tab bar hiding mode.
| tabBarHidingMode | Mode governing PdfTabBar hiding policy.
|
|---|
Sets the thumbnail bar mode.
| thumbnailBarMode | Thumbnail bar mode to be set on the activity. |
|---|
Sets the user interface view mode.
| userInterfaceViewMode | user interface view mode to be set on the activity. |
|---|
Enables or disables volume buttons navigation. This is disabled by default.
| isVolumeButtonsNavigationEnabled | true to enable navigation using volume buttons, or false to disable it.
|
|---|
This method is deprecated.
Enable NOTE_EDITOR_CONTENT_SHARING via setEnabledShareFeatures(EnumSet.
Sets whether the sharing of note editor content (annotation main content and replies) is enabled or not in the note editor UI.
| enabled | true to enable, false to disable |
|---|
Shows overlay displaying the document title.
Sets whether to show gao between pages in double page mode or not.
| showGapBetweenPages | If true, there will be a gap between pages in double page mode, if false the pages will be joined.
|
|---|
Enables display of the page labels (if any).
Shows overlay displaying current page number over document.
Displays an actionbar icon to show grid of thumbnail pages.
Defines the appearance of the digital signature that is added after digitally signing a document.
Things to configure include the graphic to use for the signature or whether the time of signing should be shown.
For the full list of properties check SignatureAppearance.
| signatureAppearance | The signature appearance to use or null to use the default appearance.
|
|---|
Defines if the user should be able to select certificates for digitally signing a document, when creating a
new signature. Defaults to IF_AVAILABLE.
| signatureCertificateSelectionMode | Signature certificate selection mode to be used. |
|---|
Defines if a signature should be saved after creation. Defaults to SAVE_IF_SELECTED.
| signatureSavingStrategy | Signature strategy to apply to saving signatures. |
|---|
Sets the start scale at which the document will be displayed. Defaults to DEFAULT_ZOOM.
| startZoomScale | Starting zoom scale factor. |
|---|
Enables or disables text selection (both programmatically and via long-press gesture). This is enabled by default.
| isTextSelectionEnabled | true to enable text selection, or false to disable it.
|
|---|
Sets whether the text selection popup toolbar is enabled or not. If disabled, and this configuration is used
within your PdfActivity, the old text selection toolbar will be used.
| enabled | true to enable it, false otherwise.
|
|---|
Sets a themeRes used to override default activity theme.
| themeRes | Theme resource id used by the launched activity. |
|---|
Sets a themeDarkRes used to override dark activity theme.
| themeDarkRes | Theme resource id used by the launched activity in dark mode. |
|---|
Sets the app theme mode. Night mode automatically inverts colors.
| mode | Theme mode set with ThemeMode.
|
|---|
Sets the actionbar activity title. If not set (or null), PSPDFKit will extract the title from the
loaded PDF document.
| title | Activity title string, or null to use automated title extraction.
|
|---|
Sets if the colors will be converted to grayscale. This is disabled by default.
| toGrayscale | true if page should be rendered in grayscale, false otherwise.
|
|---|
Enables or disables undo support. If true we will keep track of edits to the document and allow the
user to undo actions. If false the user will not be able to undo edits and redo will also be
disabled.
| undoEnabled | true to enable undo support, or false to disable it.
|
|---|
Enabled immersive fullscreen mode in the activity. Note that this feature is only natively supported from
Android 4.4 and newer, before that a FullScreen theme will have to be applied to PSPDFKit activity. This
defaults to false.
| useImmersiveMode | true for activating immersive mode, or false to deactivate it.
|
|---|
Enables or disables video playback. This is disabled by default.
| videoPlaybackEnabled | true if video playback is enabled, false otherwise.
|
|---|
Should the zoom out below the minimum zoom have a bounce-back effect on a page.
| zoomOutBounce | true if should have a zoom-out bounce effect, false otherwise.
|
|---|