Problem with PDF export in asp.net core
Hello.
I created a report in the Persian language. it's worked perfectly in windows forms .NET6. PDF export worked correctly too.
But the report doesn't work correctly when I use it in asp.net core 6 and export a PDF file.
How can I fix this problem?
The version of FastReport for asp.net core is "FastReport.Core 2022.2.15-demo".
The version of FastReport for asp.net core is "FastReport.Net.Demo 2022.2.15".
*Note: the Persian language is a Right-to-Left language like Arabic.
Thank you.
This discussion has been closed.
Comments
Hello!
In the latest versions of FastReport.Core, exporting Persian text (RTL) to PDF on ASP.NET Core works correctly provided that:
The TextObject is set to RightToLeft = true and HorzAlign = Right.
TTF fonts containing Persian glyphs (e.g. Tahoma, Vazir, DejaVu Sans) are installed and accessible on the server (particularly on Linux / Docker).
On Linux, it is recommended to use FastReport.Core.Skia instead of FastReport.Core (libgdiplus), as Skia renders Arabic and Persian ligatures more accurately, and to set `pdfExport.EmbeddingFonts = true`.