Character and Symbol Are Not Clear when Converting PPTX to PDF in Java

The pdf which you shared doesn’t have issue. But, the pdf which we have shared with you has issue.
Therefore, could you please help to analyze it.
As we shared code sample in which how we are converting PPT to PDF file. If there is glitch in implementation. Please let’s know.

@forasposeissues,

Thank you for confirming.

It is strange that you are still experiencing the issue, but I was unable to reproduce the problem you mentioned. Nevertheless, we will thoroughly evaluate your issue and provide you with updates.

@forasposeissues,

Upon further evaluation of your issue, it appears that there is a problem with accessing fonts on your end. Our analysis of your PDF revealed that the fonts Arial-BoldMT, ArialMT, and CambriaMath (Regular and Bold) are missing. Please ensure that these fonts are installed and accessible in the default fonts folder directory on your end.

Thanks for update.

Could you please help to share font which you mentioned in the above thread.
We will install the font and place the font in the font directory and test it.

Appreciate for help.

Thanks

@forasposeissues,
Unfortunately, our policy does not allow us to distribute fonts, neither paid nor free. Please try to obtain them from official sources. We apologize for any inconvenience caused.

Summarizing issue again.

  • User: While converting the PPT document to pdf. We can see that symbol & character are not coming clear with pdf file.

  • Aspose: Aspose provide solution to upgrade aspose slides to 24.4 version

  • User: First issue was resolve. But, “¥฿” these two symbol got overlapped when ppt is converted into pdf.

  • Aspose: aspose mentioned that “on further evaluation of your issue, it appears that there is a problem with accessing fonts on your end. Our analysis of your PDF revealed that the fonts Arial-BoldMT, ArialMT, and CambriaMath (Regular and Bold) are missing. Please ensure that these fonts are installed and accessible in the default fonts folder directory on your end.”

  • User: But, when we checked the ppt document then “¥” and “฿” symbol has “Citi Sans Condensed” font applied. Ideally, it should convert into PDF without issue.

  • Aspose: But, aspose mentioned in his ticket (SLIDESJAVA-39351) that they have improved the rendering of symbols for specific fonts in PDF documents. Please note that for the correct display of the Thai Baht currency symbol (฿), it is necessary to install the Angsana New font or load it using FontsLoader.LoadExternalFonts logic.But, PowerPoint automatically downloads this font if it is not installed on the system when opening a presentation containing this symbol. Additionally, we have added a new option in PdfOptions.RasterizeUnsupportedFontStyles (bool), which allows rasterizing text into a bitmap and saving it in the PDF document as images if the font does not support the bold style. This approach is used in PowerPoint while converting presentations to PDF for Citi Sans Condensed (Bold) font, ensuring clearer characters and symbols.

  • User: We have upgraded aspose version 24.4 and used PdfOptions.RasterizeUnsupportedFontStyles(true). But, Still “¥฿” these two symbol got overlapped when ppt is converted into pdf(as per latest response it should be picked up as image)

Team please help us for given above issue.

Appreciate for help.

@forasposeissues,
I am working on the issues you described and will get back to you as soon as possible.

@forasposeissues,
Thank you for your patience. Please share the following additional information:

  • OS version on which the conversion was performed
  • JDK target version in your application project

Hi Team,

Please find the details of OS and JDK

Linux
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 7.9 (Maipo)
Release: 7.9
Codename: Maipo

Windows
OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.19045 N/A Build 19045

JDK Version: JDK17

@forasposeissues,
If I understand you correctly, you get the same result (the symbols get overlapped) on both Linux Red Hat and Windows 10 systems. Could you please confirm this?

We had tried on windows first . But, it failed to get expected results.
once, we will get the expected result. Then, we will try on linux system.

@forasposeissues,
We are sorry that you had to encounter the problem, but we have not managed to reproduce it on our end. We need more details.

Can you share list of details which you want. We will provide you ASAP.

@forasposeissues,
It look like the problem is related to your environment. Could you please check your results on another machine? Perhaps this will help find additional details to reproduce the error on our end.

Hi Team,

We have moved the change on other environment (Linux & windows). But, still the issue exist.
Please find the screenshot for another machine.
PPT.zip (714.2 KB)

Appreciate for help.

@forasposeissues,
Have you been able to get more information on how to reproduce this issue?

No Team. We didn’t get additional information for given issue. All the information we have shared in the thread.

Please help.

@forasposeissues,
Unfortunately, we could not reproduce the problem on our end. We need some additional information on how to do this.