PPT to PDF Conversion in Java: PptxException: No Approriate Effect Class Type Found!

Now our company is evaluating Aspose Slides, we try to convert a PPT into PDF, yet we get such an exception:

com.aspose.slides.PptxException: reading animation group failed. 
---> class com.aspose.slides.PptxException: No approriate effect class type found!

Our Java code is very simple:

final Presentation presentation = new Presentation("powerpointtest.ppt");
presentation.save("powerpoint-out.pdf", SaveFormat.PDF);

Here it is our test file (because this forum forbidden to upload .PPT file, therefore I compress it as .ZIP file): pptexamples.zip (1,0 MB)

Why can Aspose not convert this ppt into pdf?

@zwei,
Thank you for contacting support.

I was unable to reproduce the exception you described. Please check your results using the latest version of Aspose.Slides for Java if it is possible. If the issue persists, please share the following information:

  • OS version on which the code was executed
  • JDK version in your app
  • Aspose.Slides version you used

Such an exception still exists in our test environment.

OS: Windows 10 Pro , Version 22H2, Systembuild 19045.3208
JDK: Corretto-17.0.3
Aspose Slide: aspose-slides-23.7-jdk16.jar (Evaluation)
IDE: IntelliJ

@zwei,
Thank you for the additional information. Could you please also share the full stack trace of the error?

C:\Users\weiz.jdks\corretto-17.0.3\bin\java.exe “-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2022.1.2\lib\idea_rt.jar=63620:C:\Program Files\JetBrains\IntelliJ IDEA 2022.1.2\bin” -Dfile.encoding=UTF-8 -classpath D:\sourcecode\docx4j\target\classes;C:\Users\weiz.m2\repository\org\docx4j\docx4j-JAXB-ReferenceImpl\11.4.8\docx4j-JAXB-ReferenceImpl-11.4.8.jar;C:\Users\weiz.m2\repository\org\docx4j\docx4j-core\11.4.8\docx4j-core-11.4.8.jar;C:\Users\weiz.m2\repository\org\docx4j\docx4j-openxml-objects\11.4.8\docx4j-openxml-objects-11.4.8.jar;C:\Users\weiz.m2\repository\org\docx4j\docx4j-openxml-objects-pml\11.4.8\docx4j-openxml-objects-pml-11.4.8.jar;C:\Users\weiz.m2\repository\org\docx4j\docx4j-openxml-objects-sml\11.4.8\docx4j-openxml-objects-sml-11.4.8.jar;C:\Users\weiz.m2\repository\org\plutext\jaxb-svg11\11.4.0\jaxb-svg11-11.4.0.jar;C:\Users\weiz.m2\repository\net\engio\mbassador\1.3.2\mbassador-1.3.2.jar;C:\Users\weiz.m2\repository\org\slf4j\jcl-over-slf4j\2.0.0-alpha5\jcl-over-slf4j-2.0.0-alpha5.jar;C:\Users\weiz.m2\repository\org\apache\commons\commons-lang3\3.9\commons-lang3-3.9.jar;C:\Users\weiz.m2\repository\org\apache\commons\commons-compress\1.21\commons-compress-1.21.jar;C:\Users\weiz.m2\repository\commons-codec\commons-codec\1.12\commons-codec-1.12.jar;C:\Users\weiz.m2\repository\commons-io\commons-io\2.7\commons-io-2.7.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\xmlgraphics-commons\2.7\xmlgraphics-commons-2.7.jar;C:\Users\weiz.m2\repository\org\docx4j\org\apache\xalan-interpretive\11.0.0\xalan-interpretive-11.0.0.jar;C:\Users\weiz.m2\repository\org\docx4j\org\apache\xalan-serializer\11.0.0\xalan-serializer-11.0.0.jar;C:\Users\weiz.m2\repository\net\arnx\wmf2svg\0.9.8\wmf2svg-0.9.8.jar;C:\Users\weiz.m2\repository\org\antlr\antlr-runtime\3.5.2\antlr-runtime-3.5.2.jar;C:\Users\weiz.m2\repository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;C:\Users\weiz.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\weiz.m2\repository\org\checkerframework\checker-qual\2.8.1\checker-qual-2.8.1.jar;C:\Users\weiz.m2\repository\com\google\errorprone\error_prone_annotations\2.3.3\error_prone_annotations-2.3.3.jar;C:\Users\weiz.m2\repository\org\apache\pdfbox\fontbox\2.0.24\fontbox-2.0.24.jar;C:\Users\weiz.m2\repository\com\thoughtworks\qdox\qdox\1.12\qdox-1.12.jar;C:\Users\weiz.m2\repository\org\glassfish\jaxb\jaxb-runtime\3.0.2\jaxb-runtime-3.0.2.jar;C:\Users\weiz.m2\repository\com\sun\activation\jakarta.activation\2.0.1\jakarta.activation-2.0.1.jar;C:\Users\weiz.m2\repository\org\glassfish\jaxb\jaxb-core\3.0.2\jaxb-core-3.0.2.jar;C:\Users\weiz.m2\repository\org\glassfish\jaxb\txw2\3.0.2\txw2-3.0.2.jar;C:\Users\weiz.m2\repository\com\sun\istack\istack-commons-runtime\4.0.1\istack-commons-runtime-4.0.1.jar;C:\Users\weiz.m2\repository\jakarta\xml\bind\jakarta.xml.bind-api\3.0.1\jakarta.xml.bind-api-3.0.1.jar;C:\Users\weiz.m2\repository\org\docx4j\docx4j-export-fo\11.4.8\docx4j-export-fo-11.4.8.jar;C:\Users\weiz.m2\repository\org\plutext\jaxb-xslfo\11.4.0\jaxb-xslfo-11.4.0.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\fop\2.7\fop-2.7.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\fop-util\2.7\fop-util-2.7.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\fop-events\2.7\fop-events-2.7.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\fop-core\2.7\fop-core-2.7.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-anim\1.14\batik-anim-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-css\1.14\batik-css-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-dom\1.14\batik-dom-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-ext\1.14\batik-ext-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-parser\1.14\batik-parser-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-shared-resources\1.14\batik-shared-resources-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-svg-dom\1.14\batik-svg-dom-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-util\1.14\batik-util-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-constants\1.14\batik-constants-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-i18n\1.14\batik-i18n-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-awt-util\1.14\batik-awt-util-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-bridge\1.14\batik-bridge-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-script\1.14\batik-script-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-xml\1.14\batik-xml-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-extension\1.14\batik-extension-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-gvt\1.14\batik-gvt-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-transcoder\1.14\batik-transcoder-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-svggen\1.14\batik-svggen-1.14.jar;C:\Users\weiz.m2\repository\org\slf4j\slf4j-api\2.0.7\slf4j-api-2.0.7.jar;C:\Users\weiz.m2\repository\org\slf4j\slf4j-simple\2.0.7\slf4j-simple-2.0.7.jar;D:\sourcecode\docx4j\src\main\resources\aspose-slides-23.7-jdk16.jar;D:\sourcecode\docx4j\src\main\resources\aspose-barcode-23.7-jdk18.jar;D:\sourcecode\docx4j\src\main\resources\aspose-words-23.7-jdk17.jar;D:\sourcecode\docx4j\src\main\resources\aspose-words-23.7-javadoc.jar de.forcont.documentconverter.docx4j.Docx4JTestMain
Exception in thread “main” class com.aspose.slides.PptxException: reading animation group failed. —> class com.aspose.slides.PptxException: No approriate effect class type found!
com.aspose.slides.pq.b6(Unknown Source)
com.aspose.slides.TextAnimation.b6(Unknown Source)
com.aspose.slides.TextAnimation.b6(Unknown Source)
com.aspose.slides.ym.b6(Unknown Source)
com.aspose.slides.ym.b6(Unknown Source)
com.aspose.slides.ym.b6(Unknown Source)
com.aspose.slides.yj.sj(Unknown Source)
com.aspose.slides.yj.b6(Unknown Source)
com.aspose.slides.qwq.b6(Unknown Source)
com.aspose.slides.ko0.ul(Unknown Source)
com.aspose.slides.ko0.b6(Unknown Source)
com.aspose.slides.Presentation.t8(Unknown Source)
com.aspose.slides.Presentation.b6(Unknown Source)
com.aspose.slides.Presentation.b6(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
de.forcont.documentconverter.docx4j.service.AsposeConverter.ppt2pdfTest(AsposeConverter.java:297)
de.forcont.documentconverter.docx4j.Docx4JTestMain.main(Docx4JTestMain.java:23)
— End of inner exception stack trace —
com.aspose.slides.ym.b6(Unknown Source)
com.aspose.slides.ym.b6(Unknown Source)
com.aspose.slides.yj.sj(Unknown Source)
com.aspose.slides.yj.b6(Unknown Source)
com.aspose.slides.qwq.b6(Unknown Source)
com.aspose.slides.ko0.ul(Unknown Source)
com.aspose.slides.ko0.b6(Unknown Source)
com.aspose.slides.Presentation.t8(Unknown Source)
com.aspose.slides.Presentation.b6(Unknown Source)
com.aspose.slides.Presentation.b6(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
de.forcont.documentconverter.docx4j.service.AsposeConverter.ppt2pdfTest(AsposeConverter.java:297)
de.forcont.documentconverter.docx4j.Docx4JTestMain.main(Docx4JTestMain.java:23)
at com.aspose.slides.ym.b6(Unknown Source)
at com.aspose.slides.ym.b6(Unknown Source)
at com.aspose.slides.yj.sj(Unknown Source)
at com.aspose.slides.yj.b6(Unknown Source)
at com.aspose.slides.qwq.b6(Unknown Source)
at com.aspose.slides.ko0.ul(Unknown Source)
at com.aspose.slides.ko0.b6(Unknown Source)
at com.aspose.slides.Presentation.t8(Unknown Source)
at com.aspose.slides.Presentation.b6(Unknown Source)
at com.aspose.slides.Presentation.b6(Unknown Source)
at com.aspose.slides.Presentation.(Unknown Source)
at com.aspose.slides.Presentation.(Unknown Source)
at de.forcont.documentconverter.docx4j.service.AsposeConverter.ppt2pdfTest(AsposeConverter.java:297)
at de.forcont.documentconverter.docx4j.Docx4JTestMain.main(Docx4JTestMain.java:23)
Caused by: class com.aspose.slides.PptxException: No approriate effect class type found!
com.aspose.slides.pq.b6(Unknown Source)
com.aspose.slides.TextAnimation.b6(Unknown Source)
com.aspose.slides.TextAnimation.b6(Unknown Source)
com.aspose.slides.ym.b6(Unknown Source)
com.aspose.slides.ym.b6(Unknown Source)
com.aspose.slides.ym.b6(Unknown Source)
com.aspose.slides.yj.sj(Unknown Source)
com.aspose.slides.yj.b6(Unknown Source)
com.aspose.slides.qwq.b6(Unknown Source)
com.aspose.slides.ko0.ul(Unknown Source)
com.aspose.slides.ko0.b6(Unknown Source)
com.aspose.slides.Presentation.t8(Unknown Source)
com.aspose.slides.Presentation.b6(Unknown Source)
com.aspose.slides.Presentation.b6(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
de.forcont.documentconverter.docx4j.service.AsposeConverter.ppt2pdfTest(AsposeConverter.java:297)
de.forcont.documentconverter.docx4j.Docx4JTestMain.main(Docx4JTestMain.java:23)
at com.aspose.slides.pq.b6(Unknown Source)
at com.aspose.slides.TextAnimation.b6(Unknown Source)
at com.aspose.slides.TextAnimation.b6(Unknown Source)
at com.aspose.slides.ym.b6(Unknown Source)
… 14 more

Process finished with exit code 1

@zwei,
Thank you for the stack trace of the error, I will get back to you as soon as possible.

@zwei,
I’ve reproduced the exception you are experiencing. Please also note that the error does not appear when using an Aspose license.

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-39279

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.

1 Like

Here it is another PPT test file, which causes also Exception in our test environment. samplepptx.zip (395,4 KB)

The stack trace is so:

C:\Users\weiz.jdks\corretto-17.0.3\bin\java.exe “-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2022.1.2\lib\idea_rt.jar=57085:C:\Program Files\JetBrains\IntelliJ IDEA 2022.1.2\bin” -Dfile.encoding=UTF-8 -classpath D:\sourcecode\docx4j\target\classes;C:\Users\weiz.m2\repository\org\docx4j\docx4j-JAXB-ReferenceImpl\11.4.8\docx4j-JAXB-ReferenceImpl-11.4.8.jar;C:\Users\weiz.m2\repository\org\docx4j\docx4j-core\11.4.8\docx4j-core-11.4.8.jar;C:\Users\weiz.m2\repository\org\docx4j\docx4j-openxml-objects\11.4.8\docx4j-openxml-objects-11.4.8.jar;C:\Users\weiz.m2\repository\org\docx4j\docx4j-openxml-objects-pml\11.4.8\docx4j-openxml-objects-pml-11.4.8.jar;C:\Users\weiz.m2\repository\org\docx4j\docx4j-openxml-objects-sml\11.4.8\docx4j-openxml-objects-sml-11.4.8.jar;C:\Users\weiz.m2\repository\org\plutext\jaxb-svg11\11.4.0\jaxb-svg11-11.4.0.jar;C:\Users\weiz.m2\repository\net\engio\mbassador\1.3.2\mbassador-1.3.2.jar;C:\Users\weiz.m2\repository\org\slf4j\jcl-over-slf4j\2.0.0-alpha5\jcl-over-slf4j-2.0.0-alpha5.jar;C:\Users\weiz.m2\repository\org\apache\commons\commons-lang3\3.9\commons-lang3-3.9.jar;C:\Users\weiz.m2\repository\org\apache\commons\commons-compress\1.21\commons-compress-1.21.jar;C:\Users\weiz.m2\repository\commons-codec\commons-codec\1.12\commons-codec-1.12.jar;C:\Users\weiz.m2\repository\commons-io\commons-io\2.7\commons-io-2.7.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\xmlgraphics-commons\2.7\xmlgraphics-commons-2.7.jar;C:\Users\weiz.m2\repository\org\docx4j\org\apache\xalan-interpretive\11.0.0\xalan-interpretive-11.0.0.jar;C:\Users\weiz.m2\repository\org\docx4j\org\apache\xalan-serializer\11.0.0\xalan-serializer-11.0.0.jar;C:\Users\weiz.m2\repository\net\arnx\wmf2svg\0.9.8\wmf2svg-0.9.8.jar;C:\Users\weiz.m2\repository\org\antlr\antlr-runtime\3.5.2\antlr-runtime-3.5.2.jar;C:\Users\weiz.m2\repository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;C:\Users\weiz.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\weiz.m2\repository\org\checkerframework\checker-qual\2.8.1\checker-qual-2.8.1.jar;C:\Users\weiz.m2\repository\com\google\errorprone\error_prone_annotations\2.3.3\error_prone_annotations-2.3.3.jar;C:\Users\weiz.m2\repository\org\apache\pdfbox\fontbox\2.0.24\fontbox-2.0.24.jar;C:\Users\weiz.m2\repository\com\thoughtworks\qdox\qdox\1.12\qdox-1.12.jar;C:\Users\weiz.m2\repository\org\glassfish\jaxb\jaxb-runtime\3.0.2\jaxb-runtime-3.0.2.jar;C:\Users\weiz.m2\repository\com\sun\activation\jakarta.activation\2.0.1\jakarta.activation-2.0.1.jar;C:\Users\weiz.m2\repository\org\glassfish\jaxb\jaxb-core\3.0.2\jaxb-core-3.0.2.jar;C:\Users\weiz.m2\repository\org\glassfish\jaxb\txw2\3.0.2\txw2-3.0.2.jar;C:\Users\weiz.m2\repository\com\sun\istack\istack-commons-runtime\4.0.1\istack-commons-runtime-4.0.1.jar;C:\Users\weiz.m2\repository\jakarta\xml\bind\jakarta.xml.bind-api\3.0.1\jakarta.xml.bind-api-3.0.1.jar;C:\Users\weiz.m2\repository\org\docx4j\docx4j-export-fo\11.4.8\docx4j-export-fo-11.4.8.jar;C:\Users\weiz.m2\repository\org\plutext\jaxb-xslfo\11.4.0\jaxb-xslfo-11.4.0.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\fop\2.7\fop-2.7.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\fop-util\2.7\fop-util-2.7.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\fop-events\2.7\fop-events-2.7.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\fop-core\2.7\fop-core-2.7.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-anim\1.14\batik-anim-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-css\1.14\batik-css-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-dom\1.14\batik-dom-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-ext\1.14\batik-ext-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-parser\1.14\batik-parser-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-shared-resources\1.14\batik-shared-resources-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-svg-dom\1.14\batik-svg-dom-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-util\1.14\batik-util-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-constants\1.14\batik-constants-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-i18n\1.14\batik-i18n-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-awt-util\1.14\batik-awt-util-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-bridge\1.14\batik-bridge-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-script\1.14\batik-script-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-xml\1.14\batik-xml-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-extension\1.14\batik-extension-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-gvt\1.14\batik-gvt-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-transcoder\1.14\batik-transcoder-1.14.jar;C:\Users\weiz.m2\repository\org\apache\xmlgraphics\batik-svggen\1.14\batik-svggen-1.14.jar;C:\Users\weiz.m2\repository\org\slf4j\slf4j-api\2.0.7\slf4j-api-2.0.7.jar;C:\Users\weiz.m2\repository\org\slf4j\slf4j-simple\2.0.7\slf4j-simple-2.0.7.jar;D:\sourcecode\docx4j\src\main\resources\aspose-cells-23.8.jar;D:\sourcecode\docx4j\src\main\resources\aspose-slides-23.7-jdk16.jar;D:\sourcecode\docx4j\src\main\resources\aspose-barcode-23.7-jdk18.jar;D:\sourcecode\docx4j\src\main\resources\aspose-words-23.7-jdk17.jar;D:\sourcecode\docx4j\src\main\resources\aspose-words-23.7-javadoc.jar de.forcont.documentconverter.docx4j.Docx4JTestMain
Exception in thread “main” class com.aspose.slides.PptxException: This export format is not implemented for PPTX yet.
com.aspose.slides.Presentation.b6(Unknown Source)
com.aspose.slides.Presentation.save(Unknown Source)
de.forcont.documentconverter.docx4j.service.AsposeConverter.ppt2pdfTest(AsposeConverter.java:299)
de.forcont.documentconverter.docx4j.Docx4JTestMain.main(Docx4JTestMain.java:23)
at com.aspose.slides.Presentation.b6(Unknown Source)
at com.aspose.slides.Presentation.save(Unknown Source)
at de.forcont.documentconverter.docx4j.service.AsposeConverter.ppt2pdfTest(AsposeConverter.java:299)
at de.forcont.documentconverter.docx4j.Docx4JTestMain.main(Docx4JTestMain.java:23)

Process finished with exit code 1

It looks that the Aspose Online PPT 2 PDF have also problem with my test file.

@zwei,
Unfortunately, I was unable to reproduce the second error you described. Please check the issue with the samplepptx.pptx file carefully again. Perhaps, you used another file. If the issue persists, please share additional information about how to reproduce the exception.

This problem still exists in my test environment and stay the same exception.

Exception in thread “main” class com.aspose.slides.PptxException: This export format is not implemented for PPTX yet.
com.aspose.slides.Presentation.b6(Unknown Source)
com.aspose.slides.Presentation.save(Unknown Source)
de.forcont.documentconverter.docx4j.service.AsposeConverter.ppt2pdfTest(AsposeConverter.java:299)
de.forcont.documentconverter.docx4j.Docx4JTestMain.main(Docx4JTestMain.java:23)
at com.aspose.slides.Presentation.b6(Unknown Source)
at com.aspose.slides.Presentation.save(Unknown Source)
at de.forcont.documentconverter.docx4j.service.AsposeConverter.ppt2pdfTest(AsposeConverter.java:299)
at de.forcont.documentconverter.docx4j.Docx4JTestMain.main(Docx4JTestMain.java:23)

Process finished with exit code 1

Here it is our test file, and we use Aspose Evaluation JAR

ppttest2.zip (395,4 KB)

@zwei,
When using the ppttest2.pptx file, the exception does not appear on my end either. Please try isolating the problem and share additional information to reproduce the error.

Our test File is “ppttest2.pptx”

Our Java code is

final Presentation presentation = new Presentation("ppttest2.pptx"); 
presentation.save("powerpoint-out.pdf", SaveFormat.PDF);

We use Aspose Slides 23.7 Evaluation JAR, e.g., aspose-slides-23.7-jdk16.jar

And the test result is always the same exception

Exception in thread “main” class com.aspose.slides.PptxException: This export format is not implemented for PPTX yet.
com.aspose.slides.Presentation.b6(Unknown Source)
com.aspose.slides.Presentation.save(Unknown Source)
de.forcont.documentconverter.docx4j.service.AsposeConverter.ppt2pdfTest(AsposeConverter.java:299)
de.forcont.documentconverter.docx4j.Docx4JTestMain.main(Docx4JTestMain.java:23)
at com.aspose.slides.Presentation.b6(Unknown Source)
at com.aspose.slides.Presentation.save(Unknown Source)
at de.forcont.documentconverter.docx4j.service.AsposeConverter.ppt2pdfTest(AsposeConverter.java:299)
at de.forcont.documentconverter.docx4j.Docx4JTestMain.main(Docx4JTestMain.java:23)

@zwei,
Unfortunately, I was still unable to reproduce the exception. Could you please share the simplest Java project that reproduces the error?

OS: Windows 10 Pro , Version 22H2, Systembuild 19045.3208
JDK: Corretto-17.0.3
Aspose Slide: aspose-slides-23.7-jdk16.jar (Evaluation)
IDE: IntelliJ

Java Code:

final Presentation presentation = new Presentation("ppttest2.pptx"); 
presentation.save("powerpoint-out.pdf", SaveFormat.PDF);

Test File: ppttest2.zip (395,4 KB)

Exception Stack Trace:

Exception in thread “main” class com.aspose.slides.PptxException: This export format is not implemented for PPTX yet.
com.aspose.slides.Presentation.b6(Unknown Source)
com.aspose.slides.Presentation.save(Unknown Source)
de.forcont.documentconverter.docx4j.service.AsposeConverter.ppt2pdfTest(AsposeConverter.java:299)
de.forcont.documentconverter.docx4j.Docx4JTestMain.main(Docx4JTestMain.java:23)
at com.aspose.slides.Presentation.b6(Unknown Source)
at com.aspose.slides.Presentation.save(Unknown Source)
at de.forcont.documentconverter.docx4j.service.AsposeConverter.ppt2pdfTest(AsposeConverter.java:299)
at de.forcont.documentconverter.docx4j.Docx4JTestMain.main(Docx4JTestMain.java:23)

@zwei,
This is the same information you provided earlier, and I was still unable to reproduce the exception on my end. Could you please create and share the simplest Java project that reproduces the error?

That is the exact condition for the exception on my environment. Here it is the screenshot
image.png (137,4 KB)

Do you use Aspose Evaluation Edition to reproduce this exception?

@zwei,
Yes, I used Aspose.Slides for Java 23.7 without applying any license (evaluation mode). This is my result: output.pdf (1.9 MB).

Wow, your result, that is exactly what I want.

OK, my company gonna purchase an Aspose Total License soon. Perhaps by that time, this problem won’t happen.