I have a ppt file that has the svg file in , the fill color has been set to accent 1 of a theme. If I change theme and save the ppt file out both pdf and jpg out don’t save the output in the new color (see attached where source pptx is in pink but outputs are in blue…)pdfAndjpgOut.zip (32.4 KB)
public static void main(String[] args) { com.aspose.slides.License license =
new com.aspose.slides.License();
license.setLicense("Aspose.Slides.Java.lic");
try {
String dataDir = new File(".").getAbsolutePath() + File.separator;
Presentation pres = new Presentation(dataDir+"in.pptx");
pres.save(dataDir + "out.pdf", SaveFormat.Pdf);
File f = new File(dataDir + "out.jpg");
ISlide sld = pres.getSlides().get_Item(0);
BufferedImage image = sld.getThumbnail(1f, 1f);
ImageIO.write(image, "jpeg", f);
} catch( Exception e){
System.out.println("Error Exception in code: "+e.getMessage());
System.exit(1) ; } }