Scroll direction in Android viewer

When scrolling through pages of a document in PDFViewCtrl, the scrolling direction can be changed by setting the page layout mode.

Vertical scrolling

Vertical scrolling mode (also known as continuous mode) can be enabled by setting the page presentation mode to either SINGLE_CONT, FACING_CONT, or FACING_COVER_CONT.

Here's what setting the page presentation mode to vertical scrolling looks like:

Apryse Docs Image
1// with PdfViewCtrlTabHostFragment2
2PdfViewCtrlSettingsManager.updateViewMode(
3 activity,
4 PdfViewCtrlSettingsManager.KEY_PREF_VIEWMODE_CONTINUOUS_VALUE
5);
6
7// with PDFViewCtrl
8pdfViewCtrl.setPagePresentationMode(
9 PDFViewCtrl.PagePresentationMode.SINGLE_CONT
10);

Horizontal scrolling

Horizontal scrolling mode (also known as non-continuous mode) can be enabled by setting the page presentation mode to either SINGLE, FACING, or FACING_COVER.

Here's what setting the page presentation mode to horizontal scrolling looks like:

Apryse Docs Image
1// with PdfViewCtrlTabHostFragment2
2PdfViewCtrlSettingsManager.updateViewMode(activity, PdfViewCtrlSettingsManager.KEY_PREF_VIEWMODE_CONTINUOUS_VALUE);
3
4// with PDFViewCtrl
5pdfViewCtrl.setPagePresentationMode(PDFViewCtrl.PagePresentationMode.SINGLE_CONT);

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales