Image Is Upside Down when Converting PowerPoint Presentation to PDF

Also, we are finding a different issue. While converting the attached test Test Slide.zip (152.7 KB)
ppt into the pdf file. The rendered pdf file is getting the image in upside manner.

We are using the following snippet to do the conversion of the file to pdf.

    File f = new File(pdfPath);
    Document pdfDocument = new Document(pdfPath);
    int pageCount = 1;
    int i = 1;
    for (Page pdfPage : pdfDocument.getPages()) {
        Document newDocument = new Document();
        // Add page to the document
        newDocument.getPages().add(pdfPage);
        String newfilePath = this.DocFolder.getAbsolutePath() + "/" + this.FileName + "_" + i + ".pdf";
    //  this.filesToUpload.add(newfilePath);
        newDocument.save(newfilePath);
        pageCount++;
        i++;
    }
    return pageCount;

@mdispensa,
Thank you for reporting the issue.

The code example above does not convert the presentation to PDF, but I’ve reproduced the problem using the following code example:

var presentation = new Presentation("Test Slide.pptx");
presentation.save("output.pdf", SaveFormat.Pdf);

So I’ve added a ticket with ID SLIDESJAVA-38811 to our issue tracking system. We apologize for any inconvenience. Our development team will investigate this case. You will be notified when the issue is resolved.

It would be great if you could share the following additional information:

  • OS version where the conversion was performed
  • JDK version you used

We will then test a future solution in an environment similar to yours.

Additional information:

  1. JDK version
    openjdk 15.0.2 2021-01-19
    OpenJDK Runtime Environment (build 15.0.2+7-27)
    OpenJDK 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)

  2. OS
    Windows 11

Thank you for the help!

@mdispensa,
Thank you for the additional information. I’ve passed this on to our developers.

Hi Team,

Do we have any update on this?

@mdispensa,
I’ve requested plans for the issue from our development team. We will let you know soon.

Sure. Thank you.

@mdispensa,
Investigation of the issue will begin in the first half of July. After we find the cause of the problem, we will be able to inform in which release a fix will be included.

Thank you for this info. Please let us know once we get any new update on it.

@mdispensa,
As far as I can see, the issue has already been resolved for the .NET version. A fix will be included in Aspose.Slides 22.8. So the Java version will also contain the fix. This release will be published in the second half of August.

Okay, any possibility of this getting released before second half of August?

@mdispensa,
Aspose.Slides 22.7 is already preparing. Unfortunately, this release will not change, and the fix for the problem you have encountered will be included in version 22.8. We apologize for any inconvenience.

Got it. Thank you for your help.
This information was helpful

@mdispensa,
Thank you for using Aspose.Slides.

The issues you have found earlier (filed as SLIDESJAVA-38811) have been fixed in Aspose.Slides for Java 22.8 (ZIP).
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.

Thank you for this confirmation!

@mdispensa,
Thank you for helping us make our products better.