Aspose.Slides 8.1

When there are characters utf8mb4 inside the ppt document, aspose slides can’t read them correctly into String.

Below is the snippet to reproduce the problem. Open output document and see incorrect character representation in output document.
License license = new License();
license.setLicense(new ByteArrayInputStream(TEMP_LICENSE_INFO.getBytes(“UTF8”)));
InputStream inputStream = new FileInputStream(fileName);

Presentation presentation = new Presentation(inputStream);
for (Slide slide : presentation.getSlides())
{
for (Shape shape : slide.getShapes())
{
if (null != shape.getTextFrame())
{
for (Paragraph paragraph : shape.getTextFrame().getParagraphs())
{
for (Portion portion : paragraph.getPortions())
{
if (StringUtils.isNotBlank(portion.getText()))
{
portion.setText(portion.getText());
}
}
}
}
}
}
presentation.save(“supplementary_modified.ppt”, SaveFormat.Ppt);


Hi Andrey,

I have worked with the presentation file shared by you and have been able to observe he issue specified in the saved presentation. An issue with ID SLIDESJAVA-34228 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

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


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