Chart Format Is Incorrect After Converting a PowerPoint Slide to PDF in Java

Hi

When convert to PDF, the chart format are incorrect as the image shows, could you help find the reason?
This is not the first time issue, we had another error before when convert to PDF, the number “33%” on the bar chart was changed to “3”.

Thank you.

Warm regards
Jillian
image 20250929.png (212.8 KB)

@Jillianliu

Hi Jillian,

I understand you’re facing issues with chart formatting during PDF conversion. This can occur due to various factors, including how the charts are rendered or specific settings in the conversion process.

To troubleshoot this, I recommend the following steps:

  1. Update Aspose.PDF: Make sure you are using the latest version of Aspose.PDF, as updates often include bug fixes and enhancements related to rendering.

  2. Check Chart Data: Ensure that the data used in the charts is correctly formatted and that there are no discrepancies in the source document.

  3. Review Conversion Options: Examine the conversion options you are using. Certain settings can impact how charts are rendered in the final PDF.

  4. Render-Stage Approach: If the issue persists, consider rendering the charts separately and then incorporating them into the PDF. This can help maintain the intended formatting.

If you continue to experience issues, please provide a sample document that reproduces the problem, and I will be happy to assist you further.

Best regards!

Hi

Please check the attached original ppt file and try to transfer use Aspose, you will see the disordered chart, thank you.

Warm regards
Jillian
Original File.zip (5.0 MB)

@Jillianliu

Looks like you are using Aspose.Slides to convert PPT file into PDF. We are moving this inquiry to respective forum category where you will be assisted shortly.

@Jillianliu,
I was unable to reproduce the problem shown in your screenshot using Aspose.Slides for Java 25.9. Please share the following information:

  • The code example
  • The output PDF file
  • The OS name and version on which the code was executed
  • The target JDK version in your application project
  • The Aspose.Slides version you are using

Hi Andrey:

Please check the information below :
The code example: convert pdf code example.txt
The output PDF file:
The original PDF file:
OS name and version:Red Hat Enterprise Linux release 9.3
JDK version: 11.0.11
aspose-slides version:23.3
original file (2).zip (5.7 MB)

Thank you.

Warm regards
Jillian

@Jillianliu,
Thank you for the details. I need some time to investigate the issue. I will get back to you as soon as possible.

@Jillianliu,
Thank you for your patience. Please note that the second presentation file you provided is not the same as the one shared above, and the resulting PDF looks correct. However, I was unable to reproduce the issue with the first file in the environment you specified. Could you please review the issue again and provide precise details about what is wrong?

Hi Andrey:

Yes, I found that I can’t reproduce the issue I reported first time but I can only reproduce "the number “33%” on the bar chart was changed to “3” during PDF conversion. So the attachment is for 33% to 3 example.
Thank you.

Warm regards
Jillian

@Jillianliu,
Thank you for the clarification. I was able to reproduce the issue you described with Aspose.Slides for Java 23.3, but it does not occur in version 25.9. We recommend using the latest version of Aspose.Slides.

Hi Andrey:

Which one should I download for Java?
屏幕截图 2025-10-14 135959.png (41.1 KB)

Warm regards
Jillian

@Jillianliu,
Please use aspose-slides-25.9-jdk16.jar.

1 Like