Rotate pages (Android)

You can change the rotational alignment of pages with a graphical UI or programmatically.

Rotate document pages in Android

This tutorial only applies to Xamarin.Android.

The RotateDialogFragment allows users to rotate pages of the opened document by 90, 180 and 270 degrees. It also displays a thumbnail of the current page at the selected rotation angle.

Apryse Docs Image

Show rotate page dialog

To show a rotate pages dialog in your activity, create a new instance of RotateDialogFragment by calling newInstance() and setting the PDFViewCtrl:

C#

1public void showRotateDialog()
2{
3 pdftron.PDF.Dialog.RotateDialogFragment.NewInstance()
4 .SetPdfViewCtrl(mPdfViewCtrl)
5 .Show(this.SupportFragmentManager, "rotate_pages_dialog");
6}

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales