Hello!
When converting PPTX to PDF using Aspose Slides for Nodejs via Java (version 25.7), charts with data from an embedded Excel file experience formatting issues. I attempted to use Aspose Cells to convert the charts to images, and then Aspose Slides to place those images back in the PPTX, but to no success. Attached is an example PPTX and the output PDF. I also tested with Aspose Slides version 24.9, which is what is attached.
PPT_Aspose_Test.zip (231.0 KB)
@Pompilius
It sounds like you’re experiencing formatting issues with charts when converting PPTX to PDF using Aspose Slides for Node.js via Java. Here’s a structured approach to address the problem:
Cause: The formatting issues may stem from the version of Aspose Slides you are using, the data in the embedded Excel file, or the settings used during the conversion process.
Solution: Follow these steps to troubleshoot and potentially resolve the issue:
-
Update to the Latest Version: Ensure you are using the latest version of Aspose Slides. Updates often include bug fixes and improvements. You mentioned using version 25.7; check if a newer version is available.
-
Check Chart Data: Verify that the data in the embedded Excel file is correctly formatted and accessible. Issues can arise from the data itself rather than the conversion process.
-
Use PdfOptions: When saving the presentation to PDF, utilize the PdfOptions
class to customize the export settings. For example, you can set options for image quality, text compression, and whether to save metafiles as PNG. Here’s a basic example:
Presentation pres = new Presentation("your-presentation.pptx");
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.setJpegQuality((byte)90);
pdfOptions.setSaveMetafilesAsPng(true);
pres.save("output.pdf", SaveFormat.Pdf, pdfOptions);
-
Convert Charts to Images: If the charts still do not render correctly, consider converting them to images before adding them back to the PPTX. This can help maintain the formatting during the PDF conversion.
-
Test with Different Files: If possible, test the conversion with different PPTX files to determine if the issue is specific to the file you are using.
Next Steps: If these steps do not resolve the issue, please share a minimal reproducible example or the specific charts that are causing problems. This will assist in diagnosing the issue more effectively.
I hope this helps! Please let me know if you have any further questions or need additional assistance.
I attempted these solutions, but I’m still seeing the formatting issues.
@Pompilius,
Thank you for reporting the issue. I have reproduced the issue where the charts render incorrectly when converting the PowerPoint presentation to a PDF document. We apologize for any inconvenience caused.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): SLIDESNODEJS-144
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@Pompilius,
Thank you for helping make Aspose.Slides better.
The issues you found earlier (filed as SLIDESNODEJS-144) have been resolved in Aspose.Slides for Node.js via Java 25.9 (ZIP, NPM).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.