A problem when exporting Arabic PDFs on Docker

1 Answer 110 Views
.NET 5 .NET Core Localization Rendering
Mohamed
Top achievements
Rank 1
Mohamed asked on 20 Dec 2022, 08:22 AM

Hi,

Arabic reports work well on Windows, but when the app is published to Docker, the report viewer shows the correct report, but when printing or exporting PDF, the report is drawn from left to right with incorrect format and layout.

Here is an example of a Docker PDF

, but this is the correct report on the Report Viewer

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 22 Dec 2022, 03:02 PM

Hi Mohamed,

Generally, printing from the Html5-based Report Viewer involves rendering the report in PDF. For that reason, I assume that the issue occurs only when rendering in PDF on Docker. Do you mean Docker with Linux?

If so, note that the GDI+ implementations for Windows and Linux differ, which may result in differences in the rendering.

In PDF rendering the fonts get embedded in the document and have to be available on the service. If not, the Reporting engine will substitute them with a default one, which may result in unexpected output.

Are the fonts you use in the Report available in Docker? Do you use private fonts?

Which fonts do you use?

Did you check the embedded fonts in the PDF generated in Docker? Were they the ones you expected to see?

I tested locally to export a Report localized in Arabic to PDF from Windows and Linux Docker. The final documents differed as in Docker the font was substituted. However, in both documents, the text was rendered from right to left as expected.

Here are some resources you may find useful:

Regards,
Todor
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
.NET 5 .NET Core Localization Rendering
Asked by
Mohamed
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or