This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/flutter/user-interface/configuration.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Configure Flutter PDF viewer user interface

This guide documents PdfConfiguration, the configuration object for the deprecated NutrientView widget. As of Nutrient Flutter SDK 6, use NutrientViewConfiguration with NutrientDocumentView instead. For current configuration options, refer to the view configuration guide.

Use the configuration property on NutrientView to customize PDF view behavior and UI. The following example shows a PDF view configuration:

NutrientView(
documentPath: document.path,
configuration: PdfConfiguration(
toolbarTitle: 'Nutrient Flutter Example',
scrollDirection: ScrollDirection.horizontal,
pageLayoutMode: PageLayoutMode.single,
pageTransition: PageTransition.scrollContinuous,
spreadFitting: SpreadFitting.fit,
immersiveMode: false,
showPageLabels: true,
showActionNavigationButtons: true,
userInterfaceViewMode:
UserInterfaceViewMode.automatic,
androidShowSearchAction: true,
inlineSearch: false,
showThumbnailBar: ThumbnailBarMode.floating,
androidShowThumbnailGridAction: true,
androidShowOutlineAction: true,
androidShowAnnotationListAction: true,
documentLabelEnabled: false,
invertColors: false,
androidGrayScale: false,
startPage: 2,
enableAnnotationEditing: true,
enableTextSelection: false,
androidShowBookmarksAction: false,
androidEnableDocumentEditor: false,
androidShowShareAction: true,
androidShowPrintAction: false,
androidShowDocumentInfoView: true,
appearanceMode: AppearanceMode.defaultMode,
androidDefaultThemeResource: 'Nutrient.Theme.Example',
iOSRightBarButtonItems: [
'thumbnailsButtonItem',
'activityButtonItem',
'searchButtonItem',
'annotationButtonItem'
],
iOSLeftBarButtonItems: ['settingsButtonItem'],
iOSAllowToolbarTitleChange: false,
firstPageAlwaysSingle: true,
enableInstantComments: true,
webConfiguration: PdfWebConfiguration(
allowPrinting: false,
disableForms: false,
showAnnotationNotes: true,
showSignatureValidationStatus:
ShowSignatureValidationStatusMode.ifSigned,
sideBarMode: SidebarMode.annotations,
spreadSpacing: 20,
enableClipboardActions: true,
autoSaveMode: AutoSaveMode.disabled,
)),
);

Configuration options

The following tables list the configuration options that each platform supports. Some options support only one platform because platform behavior differs. Android-only and iOS-only options use a platform prefix. Web options are grouped under the webConfiguration property.

Document interaction options

Use these options to configure how users navigate and interact with document pages.

Configuration optionData typePossible valuesiOSAndroidWebDescription
scrollDirectionStringhorizontal, verticalConfigures the page scrolling direction in the document view.
pageTransitionStringscrollPerSpread, scrollContinuous, curlConfigures the page scrolling mode. curl mode works only on iOS; Android ignores it.
enableTextSelectionBooleantrue/falseTurns text selection on or off.

Document presentation options

Use these options to configure how the viewer displays document pages and metadata.

Configuration optionData typePossible valuesiOSAndroidWebDescription
pageModeStringsingle, double, automaticConfigures the page mode.
spreadFittingStringfit, fill, adaptiveControls the page fitting mode. adaptive mode works only on iOS and has no effect on Android.
showPageLabelsBooleantrue/falseShows the current page number.
startPageInteger
Configures the starting page number.
documentLabelEnabledBooltrue/falseShows an overlay with the document name.
firstPageAlwaysSingleBooleantrue/falseShows the first page separately.
invertColorsBooleantrue/falseInverts the document colors when set to true.
passwordString
Sets the password required to unlock the document.
androidGrayScaleBooleantrue/falseConverts the document colors to grayscale.

User interface options

Use these options to configure toolbar content, UI visibility, menus, and platform-specific actions.

Configuration optionData typePossible valuesiOSAndroidWebDescription
inlineSearchBooleantrue/falseSets the search bar type to inline or modal.
toolbarTitleString
Sets the toolbar title. On iOS, set documentLabelEnabled, iOSUseParentNavigationBar, and iOSAllowToolbarTitleChange to false before you set a custom title.
showActionNavigationButtonsBooleantrue/falseShows action navigation buttons.
userInterfaceViewModeStringautomatic, automaticBorderPages, automaticNoFirstLastPage, always, alwaysVisible, alwaysHidden, neverConfigures UI visibility.
immersiveModeBooleantrue/falseHides the UI when set to true.
appearanceModeStringdefault, night, sepiaSets the document appearance mode.
settingsMenuItems[Array of String]pageTransition, scrollDirection, androidTheme, iOSAppearance, androidPageLayout, iOSPageMode, iOSSpreadFitting, androidScreenAwake, iOSBrightnessDefines the options shown in the Settings menu. Options with iOS or Android prefixes work only on that platform. Options without a prefix work on both platforms.
androidShowSearchActionBooleantrue/falseTurns document search on or off. On iOS, add searchButtonItem to iOSLeftBarButtonItems or iOSRightBarButtonItems for the same behavior.
androidShowOutlineActionBooleantrue/falseTurns the Outline menu on or off in the activity. On iOS, add outlineButtonItem to iOSLeftBarButtonItems or iOSRightBarButtonItems for the same behavior.
androidShowBookmarksActionBooleantrue/falseTurns the bookmark list on or off. On iOS, add bookmarkButtonItem to iOSLeftBarButtonItems or iOSRightBarButtonItems for the same behavior.
androidShowShareActionBooleantrue/falseShows or hides share features. On iOS, add activityButtonItem to iOSLeftBarButtonItems or iOSRightBarButtonItems for the same behavior.
androidShowPrintActionBooleantrue/falseShows or hides the print option when the document and device support printing. On iOS, add printButtonItem to iOSLeftBarButtonItems or iOSRightBarButtonItems for the same behavior.
androidShowDocumentInfoViewBooleantrue/falseShows or hides document information. On iOS, add outlineButtonItem to iOSLeftBarButtonItems or iOSRightBarButtonItems for the same behavior.
androidEnableDocumentEditorBooleantrue/falseTurns the document editor button on or off. On iOS, add documentEditorButtonItem to iOSLeftBarButtonItems or iOSRightBarButtonItems for the same behavior.
androidDarkThemeResourceString
Sets the resource string for the dark theme.
androidDefaultThemeResourceString
Sets the resource string for the default theme.
iOSLeftBarButtonItems[Array of String]closeButtonItem, outlineButtonItem, searchButtonItem, thumbnailsButtonItem, documentEditorButtonItem, printButtonItem, openInButtonItem, emailButtonItem, messageButtonItem, annotationButtonItem, bookmarkButtonItem, brightnessButtonItem, activityButtonItem, settingsButtonItem, readerViewButtonItemSets the left bar button items. On Android, set individual options such as androidShowOutlineAction and androidShowSearchAction for the same behavior.
iOSRightBarButtonItems[Array of String]closeButtonItem, outlineButtonItem, searchButtonItem, thumbnailsButtonItem, documentEditorButtonItem, printButtonItem, openInButtonItem, emailButtonItem, messageButtonItem, annotationButtonItem, bookmarkButtonItem, brightnessButtonItem, activityButtonItem, settingsButtonItem, readerViewButtonItemSets the right bar button items. On Android, set individual options such as androidShowOutlineAction and androidShowSearchAction for the same behavior.
iOSAllowToolbarTitleChangeBooleantrue/falseEnables Nutrient SDK to change this view controller’s title.

Thumbnail options

Use these options to configure thumbnail bars and thumbnail grid actions.

Configuration optionData typePossible valuesiOSAndroidWebDescription
showThumbnailBarStringnone, default, floating, pinned, scrubberBar, scrollableControls how the viewer shows page thumbnails while displaying a document.
androidShowThumbnailGridActionBooleantrue/falseShows or hides the action bar icon for the thumbnail page grid. On iOS, add thumbnailsButtonItem to iOSLeftBarButtonItems or iOSRightBarButtonItems for the same behavior.

Annotation, form, and bookmark options

Use these options to configure annotation editing and annotation list access.

Configuration optionData typePossible valuesiOSAndroidWebDescription
enableAnnotationEditingBooleantrue/falseTurns annotation editing on or off for all annotations.
androidShowAnnotationListActionBooleantrue/falseShows or hides the annotation list. On iOS, add outlineButtonItem to iOSLeftBarButtonItems or iOSRightBarButtonItems for the same behavior.

Web-only options

Use webConfiguration with a PdfWebConfiguration object to configure Web-specific behavior.

Configuration optionData typePossible valuesiOSAndroidWebDescription
AutoSaveModeBooleandisabled, immediate, intelligentThe auto-save mode to use.
allowPrintingBooleantrue / falseWhether to enable printing.
disableFormsBooleantrue/falseWhether to disable forms.
showAnnotationNotesBooleantrue/falseWhether to show annotation notes.
showSignatureValidationStatusStringalways, ifSigned, neverThe mode for showing signature validation status.
sideBarModeStringannotations, bookmarks, thumbnails, documentInfo, outline
spreadSpacingNumber
The spacing between spreads.
enableClipboardActionsBooleantrue/falseWhether to enable clipboard actions.
interactionModeStringautomatic, selectionOnly, inkOnlyThe interaction mode to use.
sidebarModeStringannotations, bookmarks, thumbnails, documentInfo, outlineThe sidebar mode to use.
canScrollWhileDrawingBooleantrue/falseWhether to enable scrolling while drawing.
keepFirstSpreadAsSinglePageBooleantrue/false
keepSelectedToolBooleantrue/false
pageSpacingNumber
The spacing between pages.
pageRotationNumber
The page rotation.
previewRedactionModeBooleantrue / falseWhether to preview redaction mode.
showAnnotationNotesBooleantrue / falseWhether to show annotation notes.
customFontsArray
An array of custom fonts to load.
customRenderersObject
Custom renderers to use.
customUIConfigurationObject
Custom UI configuration to use.
electronicSignaturesObject
Electronic signatures configuration to use.
formDesignModeBooleantrue / falseWhether to enable form design mode.
maxMentionSuggestionsNumber
The maximum number of mention suggestions to show.
mentionableUsersArray
An array of mentionable users.
restrictAnnotationToPageBoundsBooleantrue / falseRestrict annotations to page bounds.
stampAnnotationTemplatesArray
An array of stamp annotation templates.
styleSheetsArray
An array of style sheets to load.
themeStringlight, darkThe web theme to use.
toolbarPlacementStringtop, bottomThe toolbar placement to use.
zoomNumber
The zoom level to use.
minDefaultZoomLevelNumber
The minimum default zoom level.
maxDefaultZoomLevelNumber
The maximum default zoom level.
zoomStepNumber
The zoom step to use.
toolbarItemsArray
An array of items to show in the toolbar.
xfdfString
The XFDF string to load into the document.
xfdfKeepCurrentAnnotationsbooltrue/falseWhether to keep the current annotations when loading XFDF.
autoCloseThresholdNumber
The threshold for automatically closing the document.
baseCoreUrlString
The base URL for the Nutrient Core library.
baseUrlString
The base URL for Document Engine.
containerString
The ID of the container element for the viewer.
disableHighQualityPrintingbooltrue / falseWhether to disable high-quality printing.
disableMultiSelectionbooltrue/falseWhether to disable multi-selection.
disableOpenParametersbooltrue/falseWhether to disable open parameters.
disableTextSelectionbooltrue/falseWhether to disable text selection.
disableWebAssemblyStreamingbooltrue/falseWhether to disable WebAssembly streaming.
documentEditorFooterItemsArray
An array of items to show in the document editor footer.
documentEditorToolbarItemsArray
An array of items to show in the document editor toolbar.
documentIdString
The ID of the document to load.
editableAnnotationTypesArray
An array of editable annotation types.
enableAutomaticLinkExtractionbooltrue/falseWhether to enable automatic link extraction.
enableHistorybooltrue/falseWhether to enable history.
enableServiceWorkerSupportbooltrue/falseWhether to enable service worker support.
formFieldsNotSavingSignaturesArray
An array of form fields that shouldn’t save signatures.
headlessbooltrue/falseWhether to run in headless mode.
instantbooltrue/falseWhether to run in Instant mode (server only).
instantJSONObject
The JSON configuration for Instant mode (server only).
localeString
The locale to use.
maxPasswordRetriesNumber
The maximum number of password retries.
overrideMemoryLimitNumber
The memory limit to override.
preventTextCopybooltrue/falseWhether to prevent text copy.
printOptionsObject
The print options to use.
serverUrlString
The URL of Document Engine (server only).
standaloneInstancesPoolSizeNumber
The size of the standalone instances pool.
viewportPaddingNumber
The viewport padding to use.
annotationToolbarItemsArray
An array of items to show in the annotation toolbar.
useCDNbooltrue/falseWhether to load Nutrient Web SDK assets from the CDN instead of self-hosted files. Defaults to true. Set to false for self-hosted deployments.