Issue with Arabic Text Rendering in PDF Export and Print Preview

2 Answers 105 Views
General Discussions Rendering Report Viewer - HTML5 Styling
Arifullah
Top achievements
Rank 2
Iron
Iron
Iron
Arifullah asked on 10 Dec 2024, 12:52 PM

Hi,

I am using Telerik Reporting version 17.1.23.718 on an Ubuntu 22.04 VPS. Initially, I faced an issue where reports were not displayed in the viewer, but I resolved it by adding the System.Drawing.Common NuGet package to my project.

Currently, the Telerik Report Viewer displays the report correctly, including Arabic text rendered with the Times New Roman font. However, I am facing a problem with the exported PDF and the print preview:

  • The Arabic text does not display correctly in these outputs.
  • The font used in the report is Times New Roman, and I have installed it on the server.

I have attached screenshots to demonstrate the issue.

  • Attachment 1: Viewer displaying the report correctly.
  • Attachment 2: Incorrect rendering in PDF export and print preview.

Please advise on how to resolve this issue.

2 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 13 Dec 2024, 09:51 AM

Hi Arifullah,

Thank you for the attached screenshot and the additional information!

Rendering RTL languages such as Arabic on Linux has been a problem for Telerik Reporting. However, in the latest release - Telerik Reporting - Progress® Telerik® Reporting 2024 Q4 (18.3.24.1112), we made improvements on that front and my advice is to install the latest version and test with it.

Note that the current versions of Telerik Reporting use the Skia graphics engine, you may have a look at the Deploying on Linux section of the Using Telerik Reporting with .NET 6+ or Standard - Telerik Reporting article for instructions on how install the Skia dependencies.

Also, please make sure that the font used in the report has support for Arabic symbols. I do not know whether the Times New Roman font is compatible. You may try using the Arial Unicode MS font since it supports a wide range of Unicode characters.

Using a font that supports the symbols is important when rendering to PDF, you may have a look at the PDF Rendering Design Considerations at a glance - Telerik Reporting article for details on how the fonts are used in this rendering format.

I hope that using the latest version of the product will produce the desired results. Please test and let us know how it goes.

Regards,
Dimitar
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
0
Arifullah
Top achievements
Rank 2
Iron
Iron
Iron
answered on 14 Dec 2024, 04:52 AM

Hi

The Skia graphic comes after this version R3 2023 (17.2.23.1010) but my report version is lower and I cannot update it because the licence is expired

is there any other solution?

Dimitar
Telerik team
commented on 18 Dec 2024, 09:39 AM

Unfortunately, for that version, the only suggestion that I can make is to render the reports on a Windows machine so that the GDI+ graphics engine is used instead.
Tags
General Discussions Rendering Report Viewer - HTML5 Styling
Asked by
Arifullah
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dimitar
Telerik team
Arifullah
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or