Globalization and RTL in Blazor SfPdfViewer Component

21 Jun 20231 minute to read


Blazor SfPdfViewer component can be localized. Refer to Blazor Localization topic to localize Syncfusion Blazor components.

Right to Left

To enable right-to-left (RTL) rendering for the user interface, you can set the EnableRtl property of the desired control to true. This will ensure that the control is rendered appropriately for users who use RTL languages such as Arabic, Hebrew, Azerbaijani, Persian, and Urdu. The following code snippet demonstrates how to enable RTL rendering.

By setting EnableRtl to true, the control will adjust its layout and appearance to align text, icons, and other elements from right to left, providing an optimized user experience for RTL language users.

@using Syncfusion.Blazor.SfPdfViewer

<SfPdfViewer2 Height="100%"
              EnableRtl="true" />

@code {
    public string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succinctly.pdf";

See also