Syncfusion AI Assistant

How can I help you?

Globalization and RTL in Blazor SfPdfViewer Component

12 Feb 20261 minute to read

Localization

The Blazor SfPdfViewer component can be localized to display culture-specific text. Refer to the Blazor Localization guide for steps to add culture resource files, register localization services, and set the current culture.

NOTE

  • Provide localized string resources for the viewer’s UI text (for example, toolbar tooltips and dialog messages).
  • Ensure the application culture (CurrentCulture and CurrentUICulture) is set before the component renders for correct resource lookup.
  • Localization applies to the viewer UI only; it does not translate PDF document content.

Right to Left

To enable right-to-left (RTL) rendering for the viewer UI, set the EnableRtl property to true. This mirrors the layout and aligns UI elements for RTL languages such as Arabic, Hebrew, Azerbaijani, Persian, and Urdu. The following code snippet demonstrates how to enable RTL rendering.

When EnableRtl is true, the component adjusts its layout and appearance to align text, icons, and other elements from right to left, providing an optimized 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";
}

See also