Some test text!

Rotate pageskeyboard_arrow_down

Rotating a PDF page in UWP

To rotate a page in a PDF document.

PDFDoc doc = new PDFDoc(fileName);

// Rotate the first page 90 degrees clockwise.
Page page = doc.GetPage(1);
PageRotate originalRotation = page.GetRotation();
PageRotate rotation;
switch (originalRotation)
    case PageRotate.e_0: rotation = PageRotate.e_90; break;
    case PageRotate.e_90: rotation = PageRotate.e_180; break;
    case PageRotate.e_180: rotation = PageRotate.e_270; break;
    case PageRotate.e_270: rotation = PageRotate.e_0; break;
    default: rotation = PageRotate.e_0; break;

linkAbout rotating pages

A page can be rotated clockwise, by 90 degrees, when displayed or printed. The Page.GetRotation() method returns the Page.Rotate enum specifying the current rotation. Similarly, Page.SetRotation() sets the current rotation.

Get the answers you need: Support


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.