Rotation

Contents
[ ]

Inheritance: java.lang.Object, java.lang.Enum

public enum Rotation extends Enum<Rotation>

Defines page rotation in degrees.

The Rotation enum represents different rotation angles for a page in the GroupDocs.Viewer component. It provides a set of predefined rotation options that can be used to specify the rotation angle for rendering a page in various document viewing or conversion scenarios.

Example usage:


 PdfViewOptions pdfViewOptions = new PdfViewOptions();

 pdfViewOptions.rotatePage(1, Rotation.ON_90_DEGREE);
 pdfViewOptions.rotatePage(2, Rotation.ON_180_DEGREE);

 try (Viewer viewer = new Viewer("document.docx")) {
     viewer.view(pdfViewOptions);
     // Use the viewer object for further operations
 }
 

Fields

Field Description
ON_90_DEGREE The 90 degree page rotation.
ON_180_DEGREE The 180 degree page rotation.
ON_270_DEGREE The 270 degree page rotation.

Methods

Method Description
values()
valueOf(String name)

ON_90_DEGREE

public static final Rotation ON_90_DEGREE

The 90 degree page rotation. This rotation represents a 90-degree clockwise rotation of the page.

ON_180_DEGREE

public static final Rotation ON_180_DEGREE

The 180 degree page rotation. This rotation represents a 180-degree clockwise rotation of the page.

ON_270_DEGREE

public static final Rotation ON_270_DEGREE

The 270 degree page rotation. This rotation represents a 270-degree clockwise rotation of the page.

values()

public static Rotation[] values()

Returns: com.groupdocs.viewer.options.Rotation[]

valueOf(String name)

public static Rotation valueOf(String name)

Parameters:

Parameter Type Description
name java.lang.String

Returns: Rotation