PowerPoint Shows Repair Error and Blank Slides After PDF to PPTX Conversion in Java

Aspose Slides Version:
26.2, 26.6

Aspose Pdf Version
26.1

Powerpoint Version:
Version 16.110 (26061317)

Operating System:
MacOs 26.3.1 (a)

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.

Sample Code (Groovy 4):

import com.aspose.cells.*
import com.aspose.pdf.*
import com.aspose.pdf.DocSaveOptions
import com.aspose.pdf.PptxSaveOptions
import com.aspose.slides.Presentation
import com.aspose.slides.SlideSizeScaleType

import java.io.FileInputStream

import com.aspose.pdf.Document
import com.aspose.pdf.PptxSaveOptions

class PowerPointService {
    Presentation createPresentationFromPdf(String pdfLocation) {
        Integer width = 792
        Integer height = 612

        Presentation presentation = new Presentation()
        presentation.slides.addFromPdf(pdfLocation);
        presentation.slides.removeAt(0)
        presentation.slideSize.setSize(width, height, SlideSizeScaleType.EnsureFit)

        return presentation
    }

}

def service = new PowerPointService()


def ppt = service.createPresentationFromPdf( "input_pdf_file.pdf")

ppt.save("issue_powerpoint_file.pptx", com.aspose.slides.SaveFormat.Pptx)

Attached Files:
aspose conversion pdf to pptx.zip (122.1 KB)

Note: This is a blocker issue for us. Our clients are unable to use the powerpoint downloads. Can you please look into it with priority?

Also, We noticed this error around June 18. So we suspect incompatibility of Aspose Slides conversion with newer Microsoft PowerPoint app.

Escalated via paid support: 179461

@kiran.karki

We have reproduced the issue on our side. Sorry for inconvenience caused by it.

We have opened the following new ticket(s) in our internal issue tracking system.

Issue ID(s): SLIDESJAVA-39836

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)

Sample output:
pdf_documents.zip (105.9 KB)

Can you please investigate this behavior?

@kiran.karki

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.