Globalization and RTL in Blazor SfPdfViewer Component
4 Jul 20241 minute to read
Localization
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%"
Width="100%"
DocumentPath="@DocumentPath"
EnableRtl="true" />
@code {
public string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succinctly.pdf";
}