alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    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.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved