Observed Issue:
After converting pdf generated from the Aspose API to powerpoint format. Powerpoint application shows an error message “PowerPoint found a problem with content in issue_powerpoint_file_true.pptx.
PowerPoint can attempt to repair the presentation.If you trust the source of this presentation, click Repair.” when opening the converted powerpoint. After clicking the repair button blank slide is displayed instead of the original content.
We initially saved the PDF output to a byte array output stream, which caused the bullet points to be rendered as square boxes. We then switched to saving the PDF to a file instead, and this resolved the issue—the bullet points rendered correctly.
However, after making this change, we observed some performance degradation in the application. Despite this, we did not encounter any issues when using the file-generated PDF for PowerPoint creation.
For now, we are using the file-based approach as a temporary workaround.
Initial Code:
Document finalOutput = new Document()
ByteArrayInputStream srcStream = new ByteArrayInputStream(dstStream.toByteArray());
Document tempDocument = new Document(srcStream)
finalOutput.getPages().add(tempDocument.getPages())
def tempPdfStream = new ByteArrayOutputStream()
finalOutput.save(tempPdfStream, com.aspose.pdf.SaveFormat.Pdf)
Workaround Code:
Document finalOutput = new Document()
ByteArrayInputStream srcStream = new ByteArrayInputStream(dstStream.toByteArray());
Document tempDocument = new Document(srcStream)
finalOutput.getPages().add(tempDocument.getPages())
def tempPdfPath = "temp-${UUID.randomUUID()}.pdf"
finalOutput.save(tempPdfPath, com.aspose.pdf.SaveFormat.Pdf)
Thank you for the additional information.
I have attached the new files to the ticket; I hope they will help to detect the source of the issue.
Thanks for your patience.
The issues you found earlier (filed as SLIDESJAVA-39836) have been resolved in Aspose.Slides for Java 26.7 (Maven, JAR).
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.