Right to left in .NET MAUI PDF Viewer (SfPdfViewer)

13 Jun 20241 minute to read

By default, the SfPdfViewer control laid out in the left-to-right flow direction. For the convenience of right-to-left language users, it enables changing the flow direction to right-to-left (RTL). This can be achieved by setting the FlowDirection property to RightToLeft.
Setting the FlowDirection property to RightToLeft on the SfPdfViewer sets the alignment to the right, and layouts the built-in controls used in the SfPdfViewer to flow from right-to-left. Refer to the following code example to apply the same.

<syncfusion:SfPdfViewer
	x:Name="PdfViewer"
	FlowDirection="RightToLeft"/>
PdfViewer.FlowDirection = FlowDirection.RightToLeft;

NOTE

Right-to-Left language users can also refer to this section for information on how to localize the static text used in the PDF reader to other language.