PDFViewCtrl page view mode

In this document
chevron_rightIn Xamarin.Android
chevron_rightIn Xamarin.iOS

In Xamarin.Android

Changing the page view mode in Xamarin.Android is identical to changing the page view mode in Android. See tutorial here.

The enum mapping is as follows:

Enum AndroidEnum Xamarin.Android
PDFViewCtrl.PageViewMode.FIT_PAGEPDFViewCtrl.PageViewModes.FitPage
PDFViewCtrl.PageViewMode.FIT_WIDTHPDFViewCtrl.PageViewModes.FitWidth
PDFViewCtrl.PageViewMode.FIT_HEIGHTPDFViewCtrl.PageViewModes.FitHeight
PDFViewCtrl.PageViewMode.ZOOMPDFViewCtrl.PageViewModes.Zoom

To set the page view mode:

mPdfViewCtrl.PageViewMode = pdftron.PDF.PDFViewCtrl.PageViewModes.FitPage;

where mPdfViewCtrl is an instance of PDFViewCtrl.

In Xamarin.iOS

Changing the page view mode in Xamarin.iOS is identical to changing the page view mode in iOS. See tutorial here.

The enum mapping is as follows:

Enum iOSEnum Xamarin.iOS
e_trn_fit_pagepdftron.PDF.PageViewModes.e_fit_page
e_trn_fit_widthpdftron.PDF.PageViewModes.e_fit_width
e_trn_fit_heightpdftron.PDF.PageViewModes.e_fit_height
e_trn_zoompdftron.PDF.PageViewModes.e_zoom

To set the page view mode:

mPdfViewCtrl.PageViewMode = pdftron.PDF.PageViewModes.FitPage;

where mPdfViewCtrl is an instance of PDFViewCtrl.