Some test text!

Rotating a page

Contents

About Rotating the page

To rotate a page in a PDF document.

PDFDoc doc = new PDFDoc(filename);

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

linkAbout Rotating the page

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

Contents

About Rotating the page