Some test text!

Search
Hamburger Icon

Android / Guides / Rotate pages

Rotate a page

There are two options to rotate a page. First is using a UI component that can rotate at 90 degree angles. Second is an API guide to programmatically rotate a page.

Rotate document pages in 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.

Rotate pages

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:

private PDFViewCtrl mPdfViewCtrl;
// ...
public void showRotateDialog(FragmentManager fragmentManager) {
    RotateDialogFragment.newInstance()
                        .setPdfViewCtrl(mPdfViewCtrl)
                        .show(fragmentManager, "rotate_pages_dialog");
}

Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales