We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF and JPG out giving wrong colours for SVG

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) ; } }

@JamesDriscoll,
Thank you for the query. I checked the issue and found that it has been fixed in Aspose.Slides 21.6. Please check it on your side.

1 Like

excellent timing - thanks