Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Document-Processing-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -2583,10 +2583,12 @@
</li>
<li><a href="/document-processing/pdf/pdf-viewer/winforms/Working-with-Hyperlinks">Working with Hyperlinks</a></li>
<li><a href="/document-processing/pdf/pdf-viewer/winforms/Bookmark-Navigation">Bookmark Navigation</a></li>
<li><a href="/document-processing/pdf/pdf-viewer/winforms/TOC-Navigation">Table of Contents Navigation</a></li>
<li><a href="/document-processing/pdf/pdf-viewer/winforms/Localization">Localization</a></li>
<li><a href="/document-processing/pdf/pdf-viewer/winforms/Working-with-themes">Working with themes</a></li>
<li><a href="/document-processing/pdf/pdf-viewer/winforms/Interaction-Modes">Working with Interaction Modes</a></li>
<li><a href="/document-processing/pdf/pdf-viewer/winforms/Working-with-ErrorOccured-Event">Working with ErrorOccured Event</a></li>
<li><a href="/document-processing/pdf/pdf-viewer/winforms/Right-To-Left">Right to Left (RTL)</a></li>
<li><a href="/document-processing/pdf/pdf-viewer/winforms/Magnifying-pdf-documents">Magnifying PDF documents</a></li>
<li>
How To
Expand Down Expand Up @@ -2697,6 +2699,7 @@
</li>
<li><a href="/document-processing/pdf/pdf-viewer/wpf/Working-with-command-binding/Binding-commands-to-a-button">Working with Commands</a></li>
<li><a href="/document-processing/pdf/pdf-viewer/wpf/Working-With-PDF-Coordinates">Working With PDF Coordinates</a></li>
<li><a href="/document-processing/pdf/pdf-viewer/wpf/Right-To-Left">Right to Left (RTL)</a></li>
<li>
How to
<ul>
Expand Down
45 changes: 45 additions & 0 deletions Document-Processing/PDF/PDF-Viewer/winforms/Right-To-Left.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
layout: post
title: RTL Support in WinForms PDF Viewer | Syncfusion<sup>&reg;</sup>;
description: Learn about Right to Left (RTL) support in Syncfusion<sup>&reg;</sup>; WinForms Pdf Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
---

# Right to Left (RTL) in WinForms PDF Viewer

The Syncfusion<sup>&reg;</sup> WinForms PDF Viewer control supports right-to-left (RTL) rendering. All user interface elements are displayed based on left-to-right (LTR) or right-to-left (RTL) direction, ensuring proper layout and alignment for RTL languages.


## Code Changes for Enabling RTL

To enable RTL support in the WinForms PDF Viewer, set the `RightToLeft` property of the PDF viewer control to `Yes`. Refer the following code snippet.

{% tabs %}
{% highlight c# %}

using System.Windows.Forms;

namespace WindowsFormsApp_RTL
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();

// Enable RTL layout for PDF Viewer control
pdfViewerControl1.RightToLeft = RightToLeft.Yes;
}
}
}

{% endhighlight %}
{% endtabs %}

The following screenshot shows the RTL-enabled PDF Viewer output

![WinForms PDF Viewer RTL ](images/RTL.png)

N> The sample project to perform the operation is available in the [GitHub](https://github.com/SyncfusionExamples/WinForms-PDFViewer-Examples/tree/master/RTL).
18 changes: 18 additions & 0 deletions Document-Processing/PDF/PDF-Viewer/winforms/TOC-Navigation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
layout: post
title: TOC Navigation in WinForms PDF Viewer | Syncfusion<sup>&reg;</sup>;
description: Learn about Table of Contents Navigation support in Syncfusion<sup>&reg;</sup>; WinForms Pdf Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
---

# Table of contents navigation in WinForms Pdf Viewer

Table of contents navigation support in PDF Viewer control allows users to navigate to a particular destination of the contents present in the table of contents(TOC) of the loaded PDF document at UI level.

![WinForms PDF Viewer Table of contents ](images/Table-of-contents-navigation.png)

For additional information about how the Table of contents navigation navigates to the destination location, please refer to the [bookmark feature](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/winforms/bookmark-navigation) of the PDF Viewer.

N> You can refer to our [WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) feature tour page for its groundbreaking feature representations.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions Document-Processing/PDF/PDF-Viewer/wpf/Right-To-Left.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
layout: post
title: RTL Support in WPF PDF Viewer | Syncfusion<sup>&reg;</sup>;
description: Learn about Right to Left (RTL) support in Syncfusion<sup>&reg;</sup>; WPF Pdf Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
---

# Right to Left (RTL) in WPF PDF Viewer

The Syncfusion<sup>&reg;</sup> WPF PDF Viewer control supports right-to-left (RTL) rendering. All user interface elements are displayed based on left-to-right (LTR) or right-to-left (RTL) direction, ensuring proper layout and alignment for RTL languages.

## Enabling RTL in WPF PDF Viewer

RTL can be configured in the WPF PDF Viewer using the `FlowDirection` property. This can be set either in **XAML** or in the **code-behind (C#)**.

## Configuring RTL in XAML

RTL can be enabled in XAML by setting the `FlowDirection` property to `RightToLeft`.


{% tabs %}
{% highlight xaml %}

<Grid>
<PdfViewer:PdfViewerControl x:Name="pdfViewer" FlowDirection="RightToLeft"/>
</Grid>

{% endhighlight %}
{% endtabs %}


## Configuring RTL in Code-Behind (C#)

RTL can also be configured programmatically by setting the `FlowDirection` property in the code-behind. Refer the following code snippet.

{% tabs %}
{% highlight c# %}

namespace RTLSample
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
pdfViewer.FlowDirection = FlowDirection.RightToLeft;
pdfViewer.Load("../../../Data/RTLText.pdf");

}
}
}

{% endhighlight %}
{% endtabs %}

![WPF PDF Viewer RTL ](images/RTL.png)

N> The sample project to perform the operation is available in the [GitHub](https://github.com/SyncfusionExamples/WPF-PDFViewer-Examples/tree/master/RTL).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.