[aspose pdf for java]convert html to pptx by using aspose.pdf get an error when text contains strikethrough

Hi,

recently, we are testing upgrade from aspose.pdf for java from 23.1 to 24.10, we having issue when html content has strikethrough text to save into a ppt file.

input using
input2.zip (320 Bytes)

code snippet

String temp = Constant.HTML_HEADER + htmlContent.replace(Constant.RELATED_PATH_PREFIX, rootPath);
temp = temp.replace(Constant.RELATED_PATH_HTML, rootPath).replace(Constant.KEY_SRC + Constant.FILE_SEPARATOR,
                Constant.KEY_SRC);
InputStream inputStream = new ByteArrayInputStream(temp.getBytes());
try (Document convertedDocument = new Document(inputStream, new HtmlLoadOptions())) {
    convertedDocument.save(fileAbsolutePath + fileName + Constant.EXTENSION_PPT,
            com.aspose.pdf.SaveFormat.Pptx);
}catch (Exception e) {
    return new ConvertResult(false, e.toString(), null, null, null);
}

error got

class com.aspose.pdf.internal.ms.System.lh: Invalid parameter used.
com.aspose.pdf.internal.l65f.l0k.lj(Unknown Source)
com.aspose.pdf.internal.l65f.l0k.lj(Unknown Source)
com.aspose.pdf.internal.l65n.l2p.lj(Unknown Source)
com.aspose.pdf.internal.l65n.l2p.lf(Unknown Source)
com.aspose.pdf.internal.l65n.l2p.lI(Unknown Source)
com.aspose.pdf.internal.l65n.l2p.lt(Unknown Source)
com.aspose.pdf.internal.l65n.l2p.lI(Unknown Source)
com.aspose.pdf.internal.l25j.lj.visitPathEnd(Unknown Source)
com.aspose.pdf.internal.foundation.rendering.l2if.accept(Unknown Source)
com.aspose.pdf.internal.foundation.rendering.l0if.accept(Unknown Source)
com.aspose.pdf.internal.foundation.rendering.lv.accept(Unknown Source)
com.aspose.pdf.internal.foundation.rendering.l0if.accept(Unknown Source)
com.aspose.pdf.internal.foundation.rendering.lv.accept(Unknown Source)
com.aspose.pdf.internal.foundation.rendering.l0if.accept(Unknown Source)
com.aspose.pdf.internal.foundation.rendering.lv.accept(Unknown Source)
com.aspose.pdf.internal.foundation.rendering.l0if.accept(Unknown Source)
com.aspose.pdf.internal.foundation.rendering.lv.accept(Unknown Source)
com.aspose.pdf.internal.foundation.rendering.l0if.accept(Unknown Source)
com.aspose.pdf.internal.foundation.rendering.lv.accept(Unknown Source)
com.aspose.pdf.internal.l25j.lj.lI(Unknown Source)
com.aspose.pdf.internal.l25j.lj.lI(Unknown Source)
com.aspose.pdf.internal.l94if.lk.lI(Unknown Source)
com.aspose.pdf.internal.l17n.ld.lI(Unknown Source)
com.aspose.pdf.internal.l17n.lv.lI(Unknown Source)
com.aspose.pdf.internal.l17n.lb.lI(Unknown Source)
com.aspose.pdf.internal.l17h.lj.lI(Unknown Source)
com.aspose.pdf.internal.l94if.le.lI(Unknown Source)
com.aspose.pdf.l6p.lI(Unknown Source)
com.aspose.pdf.l6p.lI(Unknown Source)
com.aspose.pdf.ADocument.ld(Unknown Source)
com.aspose.pdf.ADocument.lt(Unknown Source)
com.aspose.pdf.ADocument.lf(Unknown Source)
com.aspose.pdf.ADocument.lI(Unknown Source)
com.aspose.pdf.Document.lI(Unknown Source)
com.aspose.pdf.ADocument.lI(Unknown Source)
com.aspose.pdf.ADocument.save(Unknown Source)
com.aspose.pdf.Document.save(Unknown Source)
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
java.base/java.lang.reflect.Method.invoke(Method.java:580)
com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:232)
com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:54)
com.thingworx.handlers.ServiceHandlerBase.processServiceWithMetrics(ServiceHandlerBase.java:62)
com.thingworx.entities.helpers.InternalServiceHelper.processServiceRequestDirect(InternalServiceHelper.java:121)
com.thingworx.entities.helpers.InternalServiceHelper.processServiceRequest(InternalServiceHelper.java:76)
com.thingworx.entities.ServiceProviderEntity.processServiceRequest(ServiceProviderEntity.java:60)
com.thingworx.dsl.engine.adapters.VirtualFunction.call(VirtualFunction.java:146)
org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:35)
org.mozilla.javascript.gen.ExportHtmlContentToFile_IMP_4276._c_anonymous_1(ExportHtmlContentToFile_IMP:50)
org.mozilla.javascript.gen.ExportHtmlContentToFile_IMP_4276.call(ExportHtmlContentToFile_IMP)
org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:29)
org.mozilla.javascript.gen.ExportHtmlContentToFile_IMP_4276._c_script_0(ExportHtmlContentToFile_IMP:13)
org.mozilla.javascript.gen.ExportHtmlContentToFile_IMP_4276.call(ExportHtmlContentToFile_IMP)
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:380)
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3868)
org.mozilla.javascript.gen.ExportHtmlContentToFile_IMP_4276.call(ExportHtmlContentToFile_IMP)
org.mozilla.javascript.gen.ExportHtmlContentToFile_IMP_4276.exec(ExportHtmlContentToFile_IMP)
com.thingworx.dsl.engine.DSLProcessor.executeService(DSLProcessor.java:202)
com.thingworx.dsl.DSLServiceHandler.processService(DSLServiceHandler.java:58)
com.thingworx.handlers.ServiceHandlerBase.processServiceWithMetrics(ServiceHandlerBase.java:62)
com.thingworx.things.Thing.executeServiceWithServiceHandler(Thing.java:9049)
com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:9037)
com.thingworx.things.Thing.processAPIServiceRequest(Thing.java:9000)
com.thingworx.webservices.BaseService.handleInvoke(BaseService.java:3422)
com.thingworx.webservices.BaseService.service(BaseService.java:487)
javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:169)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
com.thingworx.security.authentication.sso.SSOSecurityContextFilter.doFilter(SSOSecurityContextFilter.java:47)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:169)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
com.thingworx.security.contenttype.ContentTypeFilter.doFilter(ContentTypeFilter.java:145)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:169)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
com.thingworx.security.contenttype.ContentLengthFilter.doFilter(ContentLengthFilter.java:73)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:169)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
com.thingworx.security.filter.ValidationFilter.doFilter(ValidationFilter.java:22)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:169)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
com.thingworx.security.authentication.AuthenticationFilter.propagateRequest(AuthenticationFilter.java:754)
com.thingworx.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:245)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:169)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
com.thingworx.security.authentication.sso.SSORPUrlRewriteFilter.doFilter(SSORPUrlRewriteFilter.java:82)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:169)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
com.thingworx.security.filter.ContentSecurityPolicyFilter.doFilter(ContentSecurityPolicyFilter.java:82)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:169)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
com.thingworx.security.filter.ClickjackFilter.doFilter(ClickjackFilter.java:329)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:169)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
com.thingworx.security.filter.HttpResponseHeadersFilter.doFilter(HttpResponseHeadersFilter.java:172)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:169)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:168)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:670)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:346)
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:928)
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1786)
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
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:63)
java.base/java.lang.Thread.run(Thread.java:1583)

please take a look, thanks!

@FSUPTC

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): PDFJAVA-44453

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.