Some test text!

menu
search
Rotate pageskeyboard_arrow_down

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 pages dialog

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

linkShow 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");
}

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

PDFTron Receives USD$71 Million Growth Investment Led By Silversmith Capital Partners

Learn more
close