Hi Aspose support,
We are using the licensed Aspose 20.1 in JAVA.
When converting HTML files to PDF, we receive the following exception:
java.lang.ArrayIndexOutOfBoundsException: -1
at com.aspose.pdf.internal.l38u.le.lf(Unknown Source)
at com.aspose.pdf.internal.l38u.le.lI(Unknown Source)
at com.aspose.pdf.internal.l38u.le.lI(Unknown Source)
at com.aspose.pdf.internal.l38u.le.lI(Unknown Source)
at com.aspose.pdf.internal.l38u.le.lI(Unknown Source)
at com.aspose.pdf.internal.l38u.le.lI(Unknown Source)
at com.aspose.pdf.internal.l38u.lt.lI(Unknown Source)
at com.aspose.pdf.internal.l38u.lt.lj(Unknown Source)
at com.aspose.pdf.internal.l38u.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l38u.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l42t.l4if.l2n(Unknown Source)
at com.aspose.pdf.internal.l38v.lb.lf(Unknown Source)
at com.aspose.pdf.internal.l39n.lk.l0p(Unknown Source)
at com.aspose.pdf.internal.l39t.lf.lI(Unknown Source)
at com.aspose.pdf.internal.l39t.lf.lI(Unknown Source)
at com.aspose.pdf.internal.l39t.lf.lI(Unknown Source)
at com.aspose.pdf.internal.l38l.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l38t.lI.lI(Unknown Source)
at com.aspose.pdf.internal.l47if.lI.lI(Unknown Source)
at com.aspose.pdf.internal.l38k.lt.lI(Unknown Source)
at com.aspose.pdf.internal.l38k.lf.lj(Unknown Source)
at com.aspose.pdf.internal.html.collections.lf.lj(Unknown Source)
at com.aspose.pdf.internal.html.collections.lf.hasNext(Unknown Source)
at com.aspose.pdf.internal.l47if.lI.lI(Unknown Source)
at com.aspose.pdf.internal.html.rendering.HtmlRenderer.render(Unknown Source)
at com.aspose.pdf.internal.html.rendering.HtmlRenderer.render(Unknown Source)
at com.aspose.pdf.internal.html.rendering.Renderer.render(Unknown Source)
at com.aspose.pdf.internal.html.rendering.Renderer.render(Unknown Source)
at com.aspose.pdf.l6n.lI(Unknown Source)
at com.aspose.pdf.l6n.lI(Unknown Source)
at com.aspose.pdf.ADocument.lI(Unknown Source)
at com.aspose.pdf.ADocument.(Unknown Source)
at com.aspose.pdf.Document.(Unknown Source)
at Html2PdfConverter.convert(Html2PdfConverter.java:21)
at Html2PdfConverter.main(Html2PdfConverter.java:13)
The code and the HTML files are attached.
Is there a fix for this?
Thank you.
Html2PdfConverter.zip (113.3 KB)