Some test text!

Search
Hamburger Icon

Xamarin / Android

View mode (Android)

There are a few view modes which can be adjusted to provide an optimal presentation such as layout, fit, or reflow. Additionally, you can present a view mode dialog allowing a user to change these settings.

Page layout/presentation mode

PDFViewCtrl supports a number of page layouts (presentation modes), as listed below:

Page presentation mode (Xamarin.Android / Xamarin.iOS)Description
PDFViewCtrl.PagePresentationModes.Single / pdftron.PDF.PagePresentationModes.e_single_pageDisplays one page at a time, swiping left and right to change pages.
PDFViewCtrl.PagePresentationModes.SingleCont / pdftron.PDF.PagePresentationModes.e_single_continuousDisplays one page at a time, scrolling up and down to change pages.
PDFViewCtrl.PagePresentationModes.SingleVert(Android)Displays one page at a time, swiping up and down to change pages.
PDFViewCtrl.PagePresentationModes.Facing / pdftron.PDF.PagePresentationModes.e_facingDisplays two pages at a time, with odd-numbered pages on left, swiping left and right to change pages.
PDFViewCtrl.PagePresentationModes.FacingCont / pdftron.PDF.PagePresentationModes.e_facing_continuousDisplays pages in two columns, with odd-numbered pages on left, scrolling up and down to change pages.
PDFViewCtrl.PagePresentationModes.FacingVert(Android)Displays two pages at a time, with odd-numbered pages on left, swiping up and down to change pages.
PDFViewCtrl.PagePresentationModes.FacingCover / pdftron.PDF.PagePresentationModes.e_facing_coverDisplays two pages at a time, with odd-numbered pages on right, swiping left and right to change pages.
PDFViewCtrl.PagePresentationModes.FacingCoverCont / pdftron.PDF.PagePresentationModes.e_facing_continuous_coverDisplay pages in two columns, with odd-numbered pages on right, scrolling up and down to change pages.
PDFViewCtrl.PagePresentationModes.FacingCoverVert(Android)Displays two pages at a time, with odd-numbered pages on right, swiping up and down to change pages.

Set the page presentation mode

You can set page presentation mode in your PDFViewCtrl by using PagePresentationMode property:

// Xamarin.Android
mPdfViewCtrl.PagePresentationMode = pdftron.PDF.PDFViewCtrl.PagePresentationModes.Facing;

// Xamarin.iOS
mPdfViewCtrl.PagePresentationMode = pdftron.PDF.PagePresentationModes.e_facing;

Get the answers you need: Chat with us