Enum PageRotation
Specifies the rotation angle for PDF pages.
Namespace: Syncfusion.Blazor.SfPdfViewer
Assembly: Syncfusion.Blazor.SfPdfViewer.dll
Syntax
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum PageRotation
Remarks
Use these values to rotate pages to a fixed angle. The rotation is applied clockwise for 90 and 270 degrees.
Examples
@using Syncfusion.Blazor.SfPdfViewer;
<SfPdfViewer2 @ref="viewer" DocumentPath="data.pdf" EnablePageOrganizer="true"></SfPdfViewer2>
@code {
SfPdfViewer2 viewer;
public async Task RotatePagesToFixedAngleAsync()
{
int[] pagesToRotate = { 0, 1 };
await viewer.RotatePagesToAngleAsync(pagesToRotate, PageRotation.RotateAngle180);
}
}
Fields
| Name | Description |
|---|---|
| RotateAngle0 | No rotation applied to the page (0 degrees). |
| RotateAngle180 | Rotates the page by 180 degrees. |
| RotateAngle270 | Rotates the page by 270 degrees clockwise (or 90 degrees counterclockwise). |
| RotateAngle90 | Rotates the page by 90 degrees clockwise. |