Free Support Forum - aspose.com

slides.exceptions.ArgumentException: Already registered Parameter name: zipEntry

Presentation pres = new Presentation(pptFile.getAbsolutePath());
when execute this Statement, throws exception :
class com.aspose.slides.exceptions.ArgumentException: Already registered Parameter name: zipEntry

who can help me? thanks :)

@luliloveshe,

I have observed your comments. Can you please share source files along with environment details and Aspose.Slides version which you are using on your end so that we may further investigate to help you out.

1 maven:

com.aspose
aspose-slides
18.3
jdk16

2 maven repository
无标题.png (1.7 KB)

3 jdk1.8.0_51

4 source code

public static void asposePptSlide2Image(File pptFile, File targetDir) throws Exception {
Presentation pres = new Presentation(pptFile.getAbsolutePath());
IOUtil.lockMkdirs(targetDir);
for (ISlide slide : pres.getSlides())
{
BufferedImage image = slide.getThumbnail(1f, 1f);
ImageIO.write(image,“jpeg”, new File(targetDir, String.format(“slide_%d.jpg”, slide.getSlideNumber())));
}
}

thank for your reply

@luliloveshe,

I have observed the image shared by you and request you to please try using latest Aspose.Slides for Java 18.9 on your end first. In case there is still an issue then please share the source presentation reproducing the issue along with Java and Operating system details.

thank your suggest. success using 18.9 :)