I am using the latest version of Aspose.Slides (Java, 17.9.1) to combine slides from multiple presentations into a new presentation.
Everything works as expected but slides with SVG images do not get cloned properly (Other formats like JPEG, PNG work).
The SVG images are referenced but not included in the target presentation (I checked the media folder of the extracted pptx).
Reduced code sample
// prepare presentation
Presentation destPres = new Presentation();
destPres.getSlides().removeAt(0); // remove default slide
IMasterSlideCollection masters = destPres.getMasters();
ISlideCollection slides = destPres.getSlides();
// Create new presentation and clone the slide
Presentation srcPres = new Presentation(file);
// Get the source slide
ISlide sourceSlide = srcPres.getSlides().get_Item(slideIndex);
// Clone the source master slide
IMasterSlide sourceMaster = sourceSlide.getLayoutSlide().getMasterSlide();
IMasterSlide iSlide = masters.addClone(sourceMaster);
// add the source slide
slides.addClone(sourceSlide, iSlide, true);
How can I get it working with SVG’s?
Am I doing something wrong?
I have observed your comments. Can you please share source presentation, generated result and environment details with us so that we may further investigate to help you out.
I have worked with source code and presentation file shared by you using Aspose.Slides for Java 17.9.1 and have been able to observe the issue. A ticket with ID SLIDESJAVA-36659 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with issue so that you may be automatically notified once issue will be fixed.
I have verified issue status from our issue tracking system. I regret to inform that issue is still unresolved. Can you please share OS name and version along with JDK version so that we may further investigate to help you out.
I like to inform that our product team investigated issue in details. Can you please specify Linux version, JDK version and list of used fonts (fc-list command) for further investigation. Can you please check this issue on Aspose.Slides for Java 17.11 and 17.12 on your end.
I the issue seems partially resolved with version 17.11. The SVG is showing up but when opening the presentation Powerpoint shows a corruption warning.
Version 17.12 does not seem to work at all for me, the resulting presentation does not include any slides.
I tested it with the code attached before. On Windows 10 with JDK 8 and 9
I attached the output of the fc-list command of Linux Server fc-list.zip (1.4 KB)
I found the issue why I assumed the new version does not work at all.
It works indeed and the SVG is embedded correctly, but the notes panel is so tall that the slides are not visible.
Is there a way to close the notes panel by default on new presentations?
I have observed your comments. I like to inform that our product team investigated issue in details. Can you please share the presentations generated with Aspose.Slides for Java 17.11 and 17.12 for further investigations.
I have observed the issue shared by you. There seems to be issue with default viewing options for generated presentation. An issue with ID SLIDESJAVA-36874 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 fixed.
I have observed your comments. I regret to inform that there is no workaround regarding this issue. I request for your patience until issue gets resolved.
The issues you have found earlier (filed as SLIDESJAVA-36659) have been fixed in Aspose.Slides for Java 18.1. Please try using the latest release version and in case you experience any issue or you have any further query, please feel free to contact.
@Adnan.Ahmad
Like mentioned before the SVG-Issue was resolved for me since 17.12.
But why are you releasing a new major version without fixing the view setting regression?
All created presentations look like this for me image.png (34.0 KB)
That is unusable for the enduser!
Is there anything I can do?
As a workaround I have to set the view setting to the Notes View.
I have observed your comments. I like to inform that Presentation view issue will be resolved in upcoming version of Aspose.Slides for Java 18.2. I request for your patience until release of Aspose.Slides 18.2.