Hi,
I am using Aspose.total with Developer OEM license.
- With Aspose slides, I am trying to convert a PPTX file to PDF as follows :
com.aspose.slides.LoadOptions loadOptions = new com.aspose.slides.LoadOptions();
Presentation pres = new Presentation(GZIPInputStreamObject, loadOptions);
pres.save(fileOutputStream, com.aspose.slides.SaveFormat.Pdf);
- I am using the latest version of Aspose slides [21.12 ]
<dependency> <groupId>com.aspose</groupId> <artifactId>aspose-slides</artifactId> <version>21.12</version> <classifier>jdk16</classifier> </dependency>
Preview_Error_Report_PPTX_File.7z (43.5 KB)
When I try to convert the above PPTX file to PDF, the below error throws :
stackTrace :
class com.aspose.slides.PptxReadException —> java.lang.NullPointerException
— End of inner exception stack trace —
com.aspose.slides.aji.do(Unknown Source)
com.aspose.slides.Presentation.if(Unknown Source)
com.aspose.slides.Presentation.do(Unknown Source)
com.aspose.slides.Presentation.if(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
com.wsf.service.DownloadServiceImpl.savePresentationGroup(DownloadServiceImpl.java:624)
com.wsf.service.DownloadServiceImpl.generateTempPdf(DownloadServiceImpl.java:558)
com.wsf.service.DownloadServiceImpl.getPreviewFileObject(DownloadServiceImpl.java:495)
com.wsf.controller.WsfFileDownloadController.getPreviewFileObject(WsfFileDownloadController.java:108)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1060)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:962)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382)
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1726)
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Thread.java:748)
Caused by : java.lang.NullPointerException
at com.aspose.slides.fq.do(Unknown Source)
at com.aspose.slides.fs.do(Unknown Source)
at com.aspose.slides.fs.do(Unknown Source)
at com.aspose.slides.f3.do(Unknown Source)
at com.aspose.slides.s0.do(Unknown Source)
at com.aspose.slides.s0.do(Unknown Source)
at com.aspose.slides.bt.do(Unknown Source)
at com.aspose.slides.ao9.do(Unknown Source)
at com.aspose.slides.aj1.do(Unknown Source)
at com.aspose.slides.aji.byte(Unknown Source)
The size of this PPTX file is 270 KB (only 4 slides)
Could you check from your side once and let us know is there any issue in this selected file formatting ?