Globalization and RTL in Blazor SfPdfViewer Component

17 Jul 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 (RTL)

Set the EnableRtl property to true to mirror the layout and align UI elements for RTL languages such as Arabic, Hebrew, Azerbaijani, Persian, and Urdu.

@using Syncfusion.Blazor.SfPdfViewer

<SfPdfViewer2 DocumentPath="@DocumentPath"
              Height="100%"
              Width="100%"
              EnableRtl="true" />

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

See also