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.
The issues you have found earlier (filed as WORDSNET-26736) have been fixed in this Aspose.Words for Java 24.5 update.
@alexey.noskov
Thanky you for the fix, but the examples do not seem to be clickable with version 24.5 either.
@muehmar As I can see the link is clickable. Here is test HTML and output PDF produced with the latest 24.5 version of Aspose.Words:
in.zip (418 Bytes)
out.pdf (25.3 KB)
@alexey.noskov
Yes, you are right. I had some caching issues locally, I was able to verify it too. Thank you very much.
1 Like