Hello,
I perform conversion from HTML to PDF with following Java code:
final String myDocument = "./testcases/Functional programming - HaskellWiki.html";
final String myDocumentOut = "./testcases/out/Functional programming - HaskellWiki.pdf";
final com.aspose.html.saving.PdfSaveOptions soptPdf = new com.aspose.html.saving.PdfSaveOptions();
com.aspose.html.converters.Converter.convertHTML(myDocument, soptPdf, myDocumentOut);
most of file works fine, but with attached file
Functional programming - HaskellWiki.zip (12.1 KB)
I got following exception:
Exception in thread "main" class com.aspose.html.utils.ms.System.ArgumentException: element already exists
com.aspose.html.utils.ms.System.Collections.Generic.SortedList.a(Unknown Source)
com.aspose.html.utils.ms.System.Collections.Generic.SortedList.addItem(Unknown Source)
com.aspose.html.utils.Ez.ek(Unknown Source)
com.aspose.html.utils.Ez.hn(Unknown Source)
com.aspose.html.utils.Ez.d(Unknown Source)
com.aspose.html.utils.Ez.a(Unknown Source)
com.aspose.html.utils.Ez.d(Unknown Source)
com.aspose.html.utils.Ez.c(Unknown Source)
com.aspose.html.utils.DU.a(Unknown Source)
com.aspose.html.utils.QK.a(Unknown Source)
com.aspose.html.utils.QN.a(Unknown Source)
com.aspose.html.utils.QJ$a.a(Unknown Source)
com.aspose.html.utils.QJ.a(Unknown Source)
com.aspose.html.utils.TO.a(Unknown Source)
com.aspose.html.utils.akS.au(Unknown Source)
com.aspose.html.utils.aok$a.av(Unknown Source)
com.aspose.html.utils.aok$a.a(Unknown Source)
com.aspose.html.utils.aok$a$8.a(Unknown Source)
com.aspose.html.utils.aok$a$8.invoke(Unknown Source)
com.aspose.html.utils.awy$k.hasNext(Unknown Source)
com.aspose.html.utils.aok$a.oh(Unknown Source)
com.aspose.html.utils.aok$a$a.hasNext(Unknown Source)
com.aspose.html.utils.aok.b(Unknown Source)
com.aspose.html.utils.aok.b(Unknown Source)
com.aspose.html.utils.aoe$3.c(Unknown Source)
com.aspose.html.utils.aoe$3.invoke(Unknown Source)
com.aspose.html.utils.dj.a(Unknown Source)
com.aspose.html.utils.aoe.a(Unknown Source)
com.aspose.html.utils.aoe$3.c(Unknown Source)
com.aspose.html.utils.aoe$3.invoke(Unknown Source)
com.aspose.html.utils.dj.a(Unknown Source)
com.aspose.html.utils.aoe.a(Unknown Source)
com.aspose.html.utils.aoe$3.c(Unknown Source)
com.aspose.html.utils.aoe$3.invoke(Unknown Source)
com.aspose.html.utils.dj.a(Unknown Source)
com.aspose.html.utils.aoe.a(Unknown Source)
com.aspose.html.utils.aoe$3.c(Unknown Source)
com.aspose.html.utils.aoe$3.invoke(Unknown Source)
com.aspose.html.utils.dj.a(Unknown Source)
com.aspose.html.utils.aoe.a(Unknown Source)
com.aspose.html.utils.aoe.a(Unknown Source)
com.aspose.html.utils.aoe.b(Unknown Source)
com.aspose.html.utils.aoe$30.a(Unknown Source)
com.aspose.html.utils.aoe$30.b(Unknown Source)
com.aspose.html.utils.aoe$1.w(Unknown Source)
com.aspose.html.utils.aoe$1.invoke(Unknown Source)
com.aspose.html.utils.awy$k.hasNext(Unknown Source)
com.aspose.html.utils.collections.generic.List.a(Unknown Source)
com.aspose.html.utils.collections.generic.List.<init>(Unknown Source)
com.aspose.html.utils.awy.ay(Unknown Source)
com.aspose.html.utils.aoe.a(Unknown Source)
com.aspose.html.utils.aoe.d(Unknown Source)
com.aspose.html.utils.aoe.b(Unknown Source)
com.aspose.html.utils.aoe$30.a(Unknown Source)
com.aspose.html.utils.aoe$30.b(Unknown Source)
com.aspose.html.utils.aoe$1.w(Unknown Source)
com.aspose.html.utils.aoe$1.invoke(Unknown Source)
com.aspose.html.utils.awy$k.hasNext(Unknown Source)
com.aspose.html.utils.collections.generic.List.a(Unknown Source)
com.aspose.html.utils.collections.generic.List.<init>(Unknown Source)
com.aspose.html.utils.awy.ay(Unknown Source)
com.aspose.html.utils.aoe.a(Unknown Source)
com.aspose.html.utils.aoe.d(Unknown Source)
com.aspose.html.utils.aoe.b(Unknown Source)
com.aspose.html.utils.aoe.a(Unknown Source)
com.aspose.html.utils.aoe.b(Unknown Source)
com.aspose.html.utils.aoh.b(Unknown Source)
com.aspose.html.utils.aoh.c(Unknown Source)
com.aspose.html.utils.aoh$15.a(Unknown Source)
com.aspose.html.utils.aoh$15.a(Unknown Source)
com.aspose.html.utils.aoa.b(Unknown Source)
com.aspose.html.utils.aoh.c(Unknown Source)
com.aspose.html.utils.aoh.a(Unknown Source)
com.aspose.html.utils.anJ$9.c(Unknown Source)
com.aspose.html.utils.anJ$9.invoke(Unknown Source)
com.aspose.html.utils.dj.a(Unknown Source)
com.aspose.html.utils.anJ.a(Unknown Source)
com.aspose.html.utils.anJ.b(Unknown Source)
com.aspose.html.utils.anJ.a(Unknown Source)
com.aspose.html.utils.anJ.b(Unknown Source)
com.aspose.html.utils.anJ.a(Unknown Source)
com.aspose.html.utils.anJ$9.c(Unknown Source)
com.aspose.html.utils.anJ$9.invoke(Unknown Source)
com.aspose.html.utils.dj.a(Unknown Source)
com.aspose.html.utils.anJ.a(Unknown Source)
com.aspose.html.utils.anJ.b(Unknown Source)
com.aspose.html.utils.anJ.a(Unknown Source)
com.aspose.html.utils.anJ.b(Unknown Source)
com.aspose.html.utils.anJ.a(Unknown Source)
com.aspose.html.utils.anJ$9.c(Unknown Source)
com.aspose.html.utils.anJ$9.invoke(Unknown Source)
com.aspose.html.utils.dj.a(Unknown Source)
com.aspose.html.utils.anJ.a(Unknown Source)
com.aspose.html.utils.anJ.a(Unknown Source)
com.aspose.html.utils.anE$1.a(Unknown Source)
com.aspose.html.utils.anE$1.a(Unknown Source)
com.aspose.html.utils.anE.a(Unknown Source)
com.aspose.html.utils.anE.a(Unknown Source)
com.aspose.html.utils.aoc.a(Unknown Source)
com.aspose.html.utils.aoc.a(Unknown Source)
com.aspose.html.utils.aoc$b.hasNext(Unknown Source)
com.aspose.html.utils.collections.generic.List.a(Unknown Source)
com.aspose.html.utils.collections.generic.List.<init>(Unknown Source)
com.aspose.html.utils.awy.ay(Unknown Source)
com.aspose.html.utils.Qk.a(Unknown Source)
com.aspose.html.utils.Qk.a(Unknown Source)
com.aspose.html.utils.Qk.a(Unknown Source)
com.aspose.html.utils.Qi.g(Unknown Source)
com.aspose.html.utils.Rf.aet(Unknown Source)
com.aspose.html.utils.Rf.afd(Unknown Source)
com.aspose.html.utils.XL.a(Unknown Source)
com.aspose.html.rendering.HtmlRenderer.render(Unknown Source)
com.aspose.html.rendering.HtmlRenderer.render(Unknown Source)
com.aspose.html.rendering.HtmlRenderer.render(Unknown Source)
com.aspose.html.rendering.Renderer.render(Unknown Source)
com.aspose.html.rendering.Renderer.render(Unknown Source)
com.aspose.html.utils.hm.a(Unknown Source)
com.aspose.html.utils.hm.a(Unknown Source)
com.aspose.html.utils.hm.a(Unknown Source)
com.aspose.html.converters.Converter.convertHTML(Unknown Source)
Version aspose.html.23.11 for Java. Could you please help us?
Thank you