Apryse's library has a rotate pages dialog which allows users to rotate pages easily. For more information, see: rotate pages dialog .
There are two options for rotating PDF pages. The first is rotating PDFViewCtrl, it will rotate all PDF pages temporarily. The second is rotating PDF pages using Page class, it will rotate selected PDF pages permanently.
To rotate a PDF page by 90 degrees, call Page.setRotation(int). The parameter of this method is the rotation value, which is one of [0, 1, 2, 3]. It represents [0 degree, 90 degree, 180 degree, 270 degree] correspondingly. After rotation, update the PDFViewCtrl pages layout by calling PDFViewCtrl.updatePageLayout().
To rotate a PDF page, you must lock PDFViewCtrl first, see: document locking .
1void rotatePage(final PDFViewCtrl pdfViewCtrl, final int pageNum, @IntRange(from = 0, to = 3) final int rotateValue) throws Exception {
2 // lock pdf doc
3 pdfViewCtrl.docLock(true, new PDFViewCtrl.LockRunnable() {