Enum RotationDirection
Specifies the rotation direction for PDF pages.
Namespace: Syncfusion.Blazor.SfPdfViewer
Assembly: Syncfusion.Blazor.SfPdfViewer.dll
Syntax
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum RotationDirection
Remarks
Use these values to indicate whether the page should be rotated clockwise or counterclockwise.
Examples
@using Syncfusion.Blazor.SfPdfViewer;
<SfPdfViewer2 @ref="viewer" DocumentPath="data.pdf" EnablePageOrganizer="true"></SfPdfViewer2>
@code {
SfPdfViewer2 viewer;
public async Task RotatePagesClockwiseAsync()
{
int[] pagesToRotate = { 0, 1 };
await viewer.RotatePagesAsync(pagesToRotate, RotationDirection.Clockwise);
}
}
Fields
| Name | Description |
|---|---|
| Clockwise | Rotates the page 90 degrees clockwise. |
| CounterClockwise | Rotates the page 90 degrees counterclockwise. |