Anchor Tag not clickable with deeply nested tables when converted from HTML to PDF

Hi

When converting a HTML file to PDF, anchor tags are not clickable in the resulting PDF in case the HTML contains 9 nested tables. The same HTML file with only 8 nested tables will produce a PDF, where the links are clickable. Only links on the same page with the nested tables are not clickable, other pages will work.

We convert HTML-Bodies from Emails, which may contain such deeply nested tables and we encountered the issue with non-clickable links.

I can provide basic HTML samples to reproduce the behaviour.

Thanks in advance

The following HTML contains 8 nested tables and the converted PDF has clicklable links

<html>
<body>
<table
>
    <tr>
        <td>
            <table>
                <tr>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                Test Link <a
                                                    href="https://products.aspose.com/words">
                                                Aspose Words</a>
                                                <table>
                                                    <tr>
                                                        <td
                                                        >
                                                            <table>
                                                                <tr>
                                                                    <td
                                                                    >
                                                                        <table>
                                                                            <tr>
                                                                                <td
                                                                                >
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td
                                                                                            >
                                                                                                Another Link
                                                                                                <a
                                                                                                        href="https://products.aspose.com/words/">Aspose
                                                                                                    Words</a>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
Next Test Link <a
        href="https://products.aspose.com/words">
    Aspose Words</a>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
New Page Link <a
        href="https://products.aspose.com/words">
    Aspose Words</a>
</body>
</html>

The following HTML contains 9 nested tables and links in the resulting PDF are not clickable on the first page with the nested tables. The link on the second page without nested tables is clickable.

<html>
<body>
<table
>
    <tr>
        <td>
            <table>
                <tr>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                Test Link <a
                                                    href="https://products.aspose.com/words">
                                                Aspose Words</a>
                                                <table>
                                                    <tr>
                                                        <td
                                                        >
                                                            <table>
                                                                <tr>
                                                                    <td
                                                                    >
                                                                        <table>
                                                                            <tr>
                                                                                <td
                                                                                >
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td
                                                                                            >
                                                                                                <table>
                                                                                                    <tr>
                                                                                                        <td
                                                                                                        >
                                                                                                            Another Link
                                                                                                            <a
                                                                                                                    href="https://products.aspose.com/words/">Aspose
                                                                                                                Words</a>

                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
Next Test Link <a
        href="https://products.aspose.com/words">
    Aspose Words</a>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
New Page Link <a
        href="https://products.aspose.com/words">
    Aspose Words</a>
</body>
</html>

The following HTML contains 9 nested tables but without any content. Only the presence of this nested table structure makes the links on the same page in the PDF not clickable.

<html>
<body>
<table
>
    <tr>
        <td>
            <table>
                <tr>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <table>
                                                    <tr>
                                                        <td
                                                        >
                                                            <table>
                                                                <tr>
                                                                    <td
                                                                    >
                                                                        <table>
                                                                            <tr>
                                                                                <td
                                                                                >
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td
                                                                                            >
                                                                                                <table>
                                                                                                    <tr>
                                                                                                        <td
                                                                                                        >

                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
Next Test Link <a
        href="https://products.aspose.com/words">
    Aspose Words</a>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
New Page Link <a
        href="https://products.aspose.com/words">
    Aspose Words</a>
</body>
</html>

@muehmar
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): WORDSNET-26736

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.