View mode (iOS)

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 in Xamarin.iOS

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_page

Displays one page at a time, swiping left and right to change pages.

PDFViewCtrl.PagePresentationModes.SingleCont / pdftron.PDF.PagePresentationModes.e_single_continuous

Displays 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_facing

Displays 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_continuous

Displays 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_cover

Displays 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_cover

Display 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:

C#

1// Xamarin.Android
2mPdfViewCtrl.PagePresentationMode = pdftron.PDF.PDFViewCtrl.PagePresentationModes.Facing;
3
4// Xamarin.iOS
5mPdfViewCtrl.PagePresentationMode = pdftron.PDF.PagePresentationModes.e_facing;

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales