PowerPoint found content in the file that it did not understand

Since upgrading to 14.10.0, when opening a presentation that has been generated using Aspose.Slides, we have been getting a message saying “PowerPoint found content in the file xxxx.pptx that it did not understand.”. Some text boxes also have a different font size to what is defined in the template PPTX.


After a lot of runs through removing content from the template and saving the presentation back out (without having been touched by any report code), I have narrowed the problem down to having multiple text fragments in one text area.

Here’s what I have distilled the problem down to:

  • Create a new presentation (I’m using Powerpoint 15.0.4655.1000 on Windows 8.1).
  • Remove all content from the slide.
  • Add a new text box and give it the text “Some text here” (without quotes).
  • Run attached Java code which reads the presentation and writes it back out as a new file.
New presentation opens just fine.

  • Go back to the template presentation and change only one of the three words to be bold.
  • Re-run Java code.
New presentation opens with message about content being removed.

Sometimes it doesn’t appear that any of the presentation contents are different to how they should be. All we need to do in these cases is save the file from within Powerpoint and the next time it’s opened the message doesn’t appear.

Other times, font attributes have changed, which requires us to manually go through and switch them back to their correct values.

I have attached the template I used. The Java code is below, as I can’t attach it. Please advise when you have reproduced the issue and when a fix will be available. It’s causing us a great deal of painstaking work to update the font attributes when they have been corrupted.



=== JAVA CODE ===

import com.aspose.slides.Presentation;

import com.aspose.slides.SaveFormat;

public class TestAspose2 {

public static void main(String[] args) {

Presentation pres = new Presentation("template.pptx");

pres.save("newtest.pptx", SaveFormat.Pptx);

}

}

As a side note, we upgraded from 14.7 to 14.10 when we found this problem. I’ve rolled back to 14.7 and the bug isn’t present in that version, so it was introduced in 14.8, 14.9 or 14.10.

Hi George,

Thank you for sharing the details. I am able to reproduce the issue using the latest version of Aspose.Slides for Java and a regression issue has been registered in our issue tracking system with issue id: SLIDESJAVA-34696. You will be notified via this forum thread once the issue gets resolved.

Also, please share the sample files in which you are experiencing the font change issue in the resultant file with sample code. We will check it and get back to you.

Thanks & Regards,

The issues you have found earlier (filed as SLIDESJAVA-34696) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.