Free Support Forum - aspose.com

Exception "Position is out of range" when converting PPTX to PDF using Aspose.Slides for Java

class com.aspose.slides.exceptions.ArgumentException: Position is out of range!
com.aspose.slides.internal.eo.float.if(Unknown Source)
com.aspose.slides.internal.eo.float.int(Unknown Source)
com.aspose.slides.internal.eo.float.for(Unknown Source)
com.aspose.slides.internal.em.void.new(Unknown Source)
com.aspose.slides.internal.em.void.catch(Unknown Source)
com.aspose.slides.internal.em.void.void(Unknown Source)
com.aspose.slides.internal.em.if.(Unknown Source)
com.aspose.slides.internal.dv.do.do(Unknown Source)
com.aspose.slides.internal.ea.if.this(Unknown Source)
com.aspose.slides.internal.ea.if.for(Unknown Source)
com.aspose.slides.internal.ea.if.(Unknown Source)
com.aspose.slides.internal.d3.double.do(Unknown Source)
com.aspose.slides.internal.d0.new.do(Unknown Source)
com.aspose.slides.internal.d0.char.do(Unknown Source)
com.aspose.slides.internal.d3.double.do(Unknown Source)
com.aspose.slides.internal.d3.double.if(Unknown Source)
com.aspose.slides.internal.d3.short.do(Unknown Source)
com.aspose.slides.internal.d3.try.do(Unknown Source)
com.aspose.slides.internal.d3.else.do(Unknown Source)
com.aspose.slides.internal.d3.throw.do(Unknown Source)
com.aspose.slides.aac.do(Unknown Source)
com.aspose.slides.aac.do(Unknown Source)
com.aspose.slides.Presentation.do(Unknown Source)
com.aspose.slides.Presentation.save(Unknown Source)
com.sfdc.doc.rendition.PowerPointHandler.saveFile(PowerPointHandler.java:54)
com.sfdc.doc.rendition.AsposeConvert2Pdf.convert(AsposeConvert2Pdf.java:89)
com.sfdc.doc.rendition.AsposeConvert2Pdf.main(AsposeConvert2Pdf.java:56)

Any specific reason for this stack trace? I’m trying to convert PPTX to PDF. The jar I built mostly works for all PPTX expect to few like 2% of files

@sparamesh,

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

asposeTestFile.zip (6.4 MB)

I’m converting the above pptx file to pdf using aspose slides 18.3 java. I get the above stacktrace error. The same file converts fine with aspose slides 16.10 java

@sparamesh,

I have worked with source file shared by you using Aspose.Slides for java 18.4 and unable to observe any issue. I have also shared my generated result with you for your kind reference. Please check attachment. Can you please try to use Aspose.Slides latest version 18.4 on your end and share feedback with us if there is still an issue. 0001AlohaBowlPathToELA4.pdf (122.6 KB)

I do not see this issue in 18.4. Thanks for checking on it.