Page layout/presentation mode in Xamarin
PDFViewCtrl supports a number of page layouts (presentation modes), as listed below:
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:
// Xamarin.Android
mPdfViewCtrl.PagePresentationMode = pdftron.PDF.PDFViewCtrl.PagePresentationModes.Facing;
// Xamarin.iOS
mPdfViewCtrl.PagePresentationMode = pdftron.PDF.PagePresentationModes.e_facing;Last updated
Was this helpful?