Some test text!

keyboard_arrow_down

Get started

keyboard_arrow_down

Xamarin.Forms

keyboard_arrow_down

Fundamentals

keyboard_arrow_down

Document Viewer

keyboard_arrow_down

Document Viewer components

keyboard_arrow_down

Annotation and collaboration

keyboard_arrow_down

Advanced customization

keyboard_arrow_down

Conversion

keyboard_arrow_down

Parsing and extraction

keyboard_arrow_down

Digital signatures

keyboard_arrow_down

Form filling

keyboard_arrow_down

Search

keyboard_arrow_down

Redaction

keyboard_arrow_down

Advanced topics

keyboard_arrow_down

Reference

keyboard_arrow_down

PDF Processing API

View mode dialog

In this document
chevron_rightShow view mode dialog
chevron_rightSet view mode dialog listener
This tutorial only applies to Xamarin.Android.

ViewModePickerDialogFragment allows users to: pick page layout mode, select page color mode, rotate pages, and crop pages.

linkShow view mode dialog

To show a view mode dialog in your activity, create a new instance of ViewModePickerDialogFragment by calling newInstance(PagePresentationMode, boolean, boolean, int):

linkSet view mode dialog listener

In order to let users pick PDF page presentation mode, color mode, etc. you need to set a ViewModePickerDialogFragmentListener by calling setViewModePickerDialogFragmentListener. Implement each method in the listener to change page presentation mode, color mode, reflow, etc.

In onViewModeSelected(String), the selected view mode values are defined in PdfViewCtrlSettingsManager and include the following:

View ModeDescriptionValue
KEY_PREF_VIEWMODE_CONTINUOUS_VALUESingle page in continuous mode is selected."continuous"
KEY_PREF_VIEWMODE_SINGLEPAGE_VALUESingle page presentation mode is selected."singlepage"
KEY_PREF_VIEWMODE_FACING_VALUEFacing two pages presentation mode is selected."facing"
KEY_PREF_VIEWMODE_FACINGCOVER_VALUEFacing two pages with odd page number on right side of PDF is selected."facingcover"
KEY_PREF_VIEWMODE_FACING_CONT_VALUEIn continuous mode, Facing two pages presentation mode is selected."facing_cont"
KEY_PREF_VIEWMODE_FACINGCOVER_CONT_VALUEIn continuous mode, Facing two pages with odd page number on right side of PDF is selected."facingcover_cont"
KEY_PREF_VIEWMODE_ROTATION_VALUERotate pdf pages is selected."rotation"
KEY_PREF_VIEWMODE_USERCROP_VALUEUser-level crop pages is selected."user_crop"
To learn about setting page presentation mode, see PDFViewCtrl page presentation mode.
To learn about setting page color mode, see PDFViewCtrl color modes.
To learn about reflow, see reflow.
To learn about cropping pages, see crop page dialog.