ISlideCollection.addFromPDF Method Causes ArgumentException in Java

zombies.pdf (631.1 KB)

The following pdf causes an exception when attempting to read as an Input Stream.

Version: jdk16:23.5

Caused by:

com.aspose.slides.exceptions.ArgumentException: Parameter is invalid
at com.aspose.slides.internal.uj.o2.jm(Unknown Source)
at com.aspose.slides.x9f.jm(Unknown Source)
at com.aspose.slides.x9f.q5(Unknown Source)
at com.aspose.slides.loc.q5(Unknown Source)
at com.aspose.slides.SlideCollection.q5(Unknown Source)
at com.aspose.slides.SlideCollection.addFromPdf(Unknown Source)

@Spatterson1 Please be aware that the PDF file format is not supported for loading in Aspose.Slides for Java.

Hi @eduardo.canal, is it possible that link hasn’t been updated? There is a method that supports the PDF file format Import Presentation|Aspose.Slides Documentation . It works for a lot of PDF’s we have tried.

@Spatterson1
Apologies for any confusion caused, and thank you for providing the additional information. I have successfully replicated the issue you described.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESJAVA-39456

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.