Free Support Forum - aspose.com

Converting HTML to PDF - min > opt

I’m experiencing an issue when trying to convert the attached html.zip (294 Bytes) html.html file to PDF (v20.9).

The issue appears to be caused by the max-width style property on nested table td.

<td style="max-width:80%">Key</td>

If this value is a percentage, the error is observed. If the value is amended to a px value, the conversion succeeds.

I am trying to convert html provided upstream from my process, so just changing the value is not a viable solution for me. wkhtmltopdf has no issue converting the same html content

Stack trace:

Caused by: class com.aspose.pdf.internal.ms.System.lh: min (21491) > opt (0)
com.aspose.pdf.internal.l45p.ld.lI(Unknown Source)
com.aspose.pdf.internal.l43y.lv.lf(Unknown Source)
com.aspose.pdf.internal.l43y.lv.lI(Unknown Source)
com.aspose.pdf.internal.l43y.lv.lI(Unknown Source)
com.aspose.pdf.internal.l43y.lv.lI(Unknown Source)
com.aspose.pdf.internal.l43y.lv.lI(Unknown Source)
com.aspose.pdf.internal.l43y.l0l.lf(Unknown Source)
com.aspose.pdf.internal.l43y.l0l.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l0l.lI(Unknown Source)
com.aspose.pdf.internal.l43y.le.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lc.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l0l.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lc.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lc.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l0l.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lk.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lk.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lc.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l0l.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lc.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lc.lI(Unknown Source)
com.aspose.pdf.internal.l43y.lk.lI(Unknown Source)
com.aspose.pdf.internal.l43y.ld.lI(Unknown Source)
com.aspose.pdf.internal.l43y.ld.lI(Unknown Source)
com.aspose.pdf.internal.l43y.lv.lI(Unknown Source)
com.aspose.pdf.internal.l43y.lv.lI(Unknown Source)
com.aspose.pdf.internal.l43y.l0l.lf(Unknown Source)
com.aspose.pdf.internal.l43y.l0l.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l0l.lI(Unknown Source)
com.aspose.pdf.internal.l43y.le.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lc.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l0l.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lc.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lc.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l0l.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lk.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lk.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lc.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l0l.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lc.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lc.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l0l.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lk.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lk.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l1l.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l1l.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l1l.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l1l.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l3n.lI(Unknown Source)
com.aspose.pdf.internal.l43t.lf.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l3n.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l3n.lj(Unknown Source)
com.aspose.pdf.internal.l43t.lf.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l3n.lI(Unknown Source)
com.aspose.pdf.internal.l43t.l4if.l2n(Unknown Source)
com.aspose.pdf.internal.l39v.lb.lf(Unknown Source)
com.aspose.pdf.internal.l40n.lk.l0p(Unknown Source)
com.aspose.pdf.internal.l40t.lf.lI(Unknown Source)
com.aspose.pdf.internal.l40t.lf.lI(Unknown Source)
com.aspose.pdf.internal.l40t.lf.lI(Unknown Source)
com.aspose.pdf.internal.l39l.lj.lI(Unknown Source)
com.aspose.pdf.internal.l39t.lI.lI(Unknown Source)
com.aspose.pdf.internal.l48if.lI.lI(Unknown Source)
com.aspose.pdf.internal.l39k.lt.lI(Unknown Source)
com.aspose.pdf.internal.l39k.lf.lj(Unknown Source)
com.aspose.pdf.internal.html.collections.lf.lj(Unknown Source)
com.aspose.pdf.internal.html.collections.lf.hasNext(Unknown Source)
com.aspose.pdf.internal.l48if.lI.lI(Unknown Source)
com.aspose.pdf.internal.html.rendering.HtmlRenderer.render(Unknown Source)
com.aspose.pdf.internal.html.rendering.HtmlRenderer.render(Unknown Source)
com.aspose.pdf.internal.html.rendering.Renderer.render(Unknown Source)
com.aspose.pdf.internal.html.rendering.Renderer.render(Unknown Source)
com.aspose.pdf.l6h.lI(Unknown Source)
com.aspose.pdf.l6h.lI(Unknown Source)
com.aspose.pdf.ADocument.lI(Unknown Source)
com.aspose.pdf.ADocument.<init>(Unknown Source)
com.aspose.pdf.Document.<init>(Unknown Source)

@chriswhite199

We were able to reproduce the similar issue in our environment while using Aspose.PDF for Java 20.10. Therefore, we have logged it as PDFJAVA-39946 in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.