Converting PPTX to PDF in Java: Unsupported Secondary Axis Composition

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>

When I try to convert these PPTX files to PDF, the below error throws :

stackTrace :
class com.aspose.slides.PptxReadException: Unsupported secondary axis composition
—> class com.aspose.slides.exceptions.ArgumentException: Unsupported secondary axis composition
com.aspose.slides.AxesManager.for(Unknown Source)
com.aspose.slides.AxesManager.if(Unknown Source)
com.aspose.slides.ChartSeriesCollection.do(Unknown Source)
com.aspose.slides.e8.do(Unknown Source)
com.aspose.slides.fq.do(Unknown Source)
com.aspose.slides.fq.do(Unknown Source)
com.aspose.slides.fs.do(Unknown Source)
com.aspose.slides.f3.do(Unknown Source)
com.aspose.slides.s0.do(Unknown Source)
com.aspose.slides.s0.do(Unknown Source)
com.aspose.slides.bt.do(Unknown Source)
com.aspose.slides.ao9.do(Unknown Source)
com.aspose.slides.aj1.do(Unknown Source)
com.aspose.slides.aji.byte(Unknown Source)
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:620)
com.wsf.service.DownloadServiceImpl.generateTempPdf(DownloadServiceImpl.java:556)
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)
— End of inner exception stack trace —

Caused by :
class com.aspose.slides.exceptions.ArgumentException: Unsupported secondary axis composition
com.aspose.slides.AxesManager.for(Unknown Source)
com.aspose.slides.AxesManager.if(Unknown Source)
com.aspose.slides.ChartSeriesCollection.do(Unknown Source)
com.aspose.slides.e8.do(Unknown Source)
com.aspose.slides.fq.do(Unknown Source)
com.aspose.slides.fq.do(Unknown Source)
com.aspose.slides.fs.do(Unknown Source)
com.aspose.slides.f3.do(Unknown Source)
com.aspose.slides.s0.do(Unknown Source)
com.aspose.slides.s0.do(Unknown Source)
com.aspose.slides.bt.do(Unknown Source)
com.aspose.slides.ao9.do(Unknown Source)
com.aspose.slides.aj1.do(Unknown Source)
com.aspose.slides.aji.byte(Unknown Source)
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)

Could you check from your side once and let us know the possible fixes.

@dev.raz,
Thank you for reporting the issue.

I’ve reproduced the problem with converting the presentation files to PDF and added a ticket with ID SLIDESJAVA-38726 in our issue tracking system. We apologize for any inconvenience. Our development team will investigate this case. You will be notified when the issue is resolved.

@Andrey_Potapov
May I know the current status of this issue ?

@dev.raz,
As far as I can see, our development team is already working on the issue. Unfortunately, I don’t have any progress information yet. We will let you know as soon as something changes.

@Andrey_Potapov
Could you share the current status of this issue?

@dev.raz,
I’ve requested ETA from our development team for this issue. I will let you know shortly.

@dev.raz,
Our developers have promised to resolve the issue this week. I can’t say yet which version a fix will be included in.

@Andrey_Potapov
Could you share the update for the fix release related to this issue?

@dev.raz,
As far as I can see, our developers are still working on the issue. We will be able to share ETA a little later.

@Andrey_Potapov
Could you share the status of this issue?

@dev.raz,
I requested an ETA again from our developers to resolve the issue. I will let you know as soon as possible.

@Andrey_Potapov
Could you share the status of this issue we need to inform client?

@dev.raz,
The issue has normal priority. As far as I can see, our development team is still working on the issue. Unfortunately, I don’t have more information for you.

@Andrey_Potapov
Thank you for the continuous reply.
Could you share the updates of this issue we need to inform client?

@dev.raz,
The issue has been resolved. A fix will be included in Aspose.Slides 22.5. This release will be published in the second half of May.

@Andrey_Potapov

As per the reply, We have changed the Version to 22.5 and checked this issue,
${aspose.version} = 22.5.

<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-slides</artifactId>
<version>${aspose.version}</version>
<classifier>jdk16</classifier>
</dependency>

Below issue is still exists,
class com.aspose.slides.exceptions.ArgumentException: Unsupported secondary axis composition

Could you verify it once and let us know how to check this fix.

@dev.raz,
As far as I can see, the fix was not included in versions 22.5 and 22.6 for some reason. The update has been planned for Aspose.Slides 22.7. We apologize for any inconvenience.

@Andrey_Potapov
could you share us when 22.7 version is planned ?

@dev.raz,
Aspose.Slides 22.7 will be published in the second half of July.

@Andrey_Potapov

Thank you for your support.
We have checked this issue with the latest version as mentioned below,
aspose.slides - 22.7
aspose.cells - 22.7
aspose.pdf - 22.6
aspose.words - 22.6

AsposeSlidecheck.zip (676.9 KB)
Now, Above PPTX file(compressed pptx file) is getting opened without any error.
But, some of the bar chart and bar chart content in it is not properly displayed.

Refer below misatched file content
slideNo_5.png (179.8 KB)

Could you check this issue once by verify all the slides in the pptx file and let us know the possible solution.