Issues with Converting PDF to Image for Persian Characters in Stimulsoft Reports

Stimulsoft Reports.JS discussion
Post Reply
aminegn
Posts: 2
Joined: Thu Oct 24, 2024 2:34 pm

Issues with Converting PDF to Image for Persian Characters in Stimulsoft Reports

Post by aminegn »

Hello Stimulsoft Team,

I'm encountering an issue with the conversion of PDF exports from Stimulsoft reports to images, specifically concerning Persian characters. While the PDF itself seems to render correctly, the characters do not appear properly when I convert the PDF to an image using PyMuPDF.

Conversion Process: I export the report to PDF, and when I convert this PDF to an image (e.g., PNG or JPEG), the Persian characters do not render correctly. However, numbers are displayed as expected.
Comparative Behavior: Other PDFs (not generated from Stimulsoft) convert to images without any issues regarding text rendering, which suggests that the problem may lie within the way Stimulsoft handles Persian characters during the PDF export.

I'm using trial version 2023.1.1 on Windows also I have attached the generated PDF and the corresponding report file for your reference.
Attachments
Converted image from Report.pdf with PyMuPdf
Converted image from Report.pdf with PyMuPdf
Report.jpeg (141.5 KiB) Viewed 1595 times
Report.pdf
Generated report
(50.12 KiB) Downloaded 119 times
Lech Kulikowski
Posts: 7292
Joined: Tue Mar 20, 2018 5:34 am

Re: Issues with Converting PDF to Image for Persian Characters in Stimulsoft Reports

Post by Lech Kulikowski »

Hello,

Please check the last release build.

Thank you.
aminegn
Posts: 2
Joined: Thu Oct 24, 2024 2:34 pm

Re: Issues with Converting PDF to Image for Persian Characters in Stimulsoft Reports

Post by aminegn »

Dear Lech Kulikowski,

Following your suggestion to resolve the PDF to image conversion issue by installing the latest version of Stimulsoft, I completed the upgrade, but unfortunately, it did not resolve the problem. I conducted additional testing to provide a comprehensive view of the issue.

Here is a summary of the process I followed:

1- The report was designed using Stimulsoft Designer and exported on the test server using the Stimulsoft JavaScript rendering engine.
2- I exported the report in two formats: PDF and HTML.
3- I converted the PDF export to JPG format using the online tool https://www.ilovepdf.com/pdf_to_jpg, but this resulted in incorrect rendering.
4- Separately, I converted the HTML export to PDF using Firefox’s built-in functionality, then converted this PDF to JPG with iLovePDF using the same method as the first conversion.

In comparing the results, the PDF generated by Stimulsoft does not convert correctly to JPG, while the PDF produced from the HTML file does.

I have attached the relevant files for your review. Please let me know if you need any additional details or if there are further steps I should take.

Thank you for your assistance.

Best regards.
Attachments
step_5: convert pdf into jpg with same site
step_5: convert pdf into jpg with same site
convert_report_from_exported_html_5.jpg (211.21 KiB) Viewed 1559 times
convert_report_from_html_4.pdf
step_3_and_4: I can not upload the html file, but this pdf is converted from that html
(134.28 KiB) Downloaded 116 times
step_2: convert the pdf into jpg with mentioned online site
step_2: convert the pdf into jpg with mentioned online site
convert_report_from_exported_pdf_2.jpg (224.33 KiB) Viewed 1559 times
exported_report_pdf_1.pdf
step_1: export pdf with JS engine
(53.3 KiB) Downloaded 112 times
Lech Kulikowski
Posts: 7292
Joined: Tue Mar 20, 2018 5:34 am

Re: Issues with Converting PDF to Image for Persian Characters in Stimulsoft Reports

Post by Lech Kulikowski »

Hello,

Do you add used fonts in the FontCollection before report rendering, exporting?

Thank you.
Post Reply