Problems Applying Right-to-Left Rendering in WPF PDF Viewer? | Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (179).NET Core  (28).NET MAUI  (214)Angular  (110)ASP.NET  (51)ASP.NET Core  (83)ASP.NET MVC  (90)Azure  (41)Black Friday Deal  (1)Blazor  (226)BoldSign  (15)DocIO  (24)Essential JS 2  (109)Essential Studio  (200)File Formats  (69)Flutter  (133)JavaScript  (226)Microsoft  (120)PDF  (81)Python  (1)React  (105)Streamlit  (1)Succinctly series  (131)Syncfusion  (943)TypeScript  (33)Uno Platform  (3)UWP  (3)Vue  (45)Webinar  (52)Windows Forms  (61)WinUI  (71)WPF  (163)Xamarin  (160)XlsIO  (38)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (9)Business intelligence  (55)Button  (4)C#  (158)Chart  (140)Chart of the week  (54)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (70)Development  (659)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (7)Essential Tools  (14)Excel  (43)Extensions  (23)File Manager  (7)Gantt  (19)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (512)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (43)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (12)Scheduler  (54)Security  (4)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (31)Solution Services  (4)Spreadsheet  (11)SQL  (14)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (113)UI  (393)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (615)What's new  (333)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Problems Applying Right-to-Left Rendering in WPF PDF Viewer?

Problems Applying Right-to-Left Rendering in WPF PDF Viewer?

If applying internationalization in a WPF PDF viewer is a problem for you, then we have a solution to it. The Syncfusion WPF PDF Viewer makes it simple to apply internationalization, right-to-left layouts, with easy steps. You can also read, search, select, and copy RTL language content.

Let’s first see what internationalization is and its importance in the global market. We shall also look into the role of RTL support in the internationalization process of a product. Later, we shall see the procedure to apply RTL rendering to the Syncfusion WPF PDF Viewer.


Internationalization (also called i18n) is a design process that makes your product adaptable to different cultures and countries in the world. Since the market for many products is global, it is possible that potential customers of your product might have different cultures and use different languages than yours.

Considering the possible international scenarios for your product while handling user input, RTL support will definitely improve the experience of your customers. In this way, developing an internationalized product can differentiate yours from your competitors’ products. It gives your product more benefits in the global market than those that are not world-ready.

Internationalization support in our PDF Viewer for WPF also increases the potential of the products using it, as it offers support for multiple languages and does not require changes in the code to apply them.

Right-to-left (RTL) functionality

Right-to-left (RTL) functionality is considered an accessibility feature for a product and it plays a major role in the internationalization process. Some languages with a large number of speakers, such as Arabic and Persian, have right-to-left (RTL) writing systems. To address the requirements of RTL language users, it is very important to make the layout of the UI elements able to render in RTL.

It is also necessary for an RTL product to be localized so that the users in the specific region can get the contents that make sense for their culture. The process of translation and adapting to a specific locale is called localization (also called l10n).

Applying right-to-left functionality to WPF PDF Viewer

You can apply RTL functionality for WPF PDF Viewer in a single step by setting the FlowDirection property of PdfViewerControl to RightToLeft. This switches the layout of the PDF Viewer to right to left. It will improve the user experience and accessibility for the users who use RTL languages. It also allows you to search, select, and copy RTL language text. Refer to the following code example to apply the RTL support for WPF PDF Viewer.

     Title="PDF Viewer" WindowState="Maximized"
     <Grid x:Name="HomeGrid">
         <syncfusion:PdfViewerControl x:Name="pdfViewer" FlowDirection="RightToLeft"/>

To provide a completely native look and feel for RTL users, you need to configure the application to the specific RTL language and culture (localization), as mentioned earlier. Our Syncfusion WPF PDF Viewer supports localization, allowing you to localize all the static text used for the UI elements. All you need is to add the desired language-specific resource file in the application, use the following code sample to localize your application, and configure it to different languages (e.g., ar- AE for Arabic).

using System;
using System.Threading;

namespace PDFViewerRTL
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
        # region Constructor
        public MainWindow()
            Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("ar-AE");
        # endregion

RTL Support in WPF PDF ViewerRefer to this UG documentation for how to create the resource files and add them to your WPF application. You can also find an example WPF PDF Viewer project that is configured to RTL settings in this GitHub repository.


Thank you for reading this blog. I hope that you have enjoyed learning about the importance of internationalization for a product and how easy it is to apply RTL functionality to the WPF PDF Viewer. Try using our PDF Viewer in your application and share your feedback in the comment section below.

For existing customers, the new version of Essential Studio is available for download from the License and Downloads page. If you are not yet a Syncfusion customer, you can try our 30-day free trial to check out our available features. Also, try our samples from this GitHub location.

You can also contact us through our support forumDirect-Trac, or feedback portal. We are always happy to assist you!


Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed