Add HTML to pdf

Hi,
I’m trying to add HTML content to first page of a pdf document. The hyperlink in the html is getting striked-out instead of underlink in the output.

PFA the file_file_output.pdf (53.5 KB)
file_output.pdf (53.5 KB)
output.pdf.

Please find below the required details.
Java code to add html fragement:
Page page = doc.getPages().insert(1);
HtmlFragment htmlFragment = new HtmlFragment(htmlContent);
page.getParagraphs().add(htmlFragment);

jar: Aspose-pdf-18.8.jar

HTML Content:

<p lang="en-US" align="center">
    <a
        href="https://www.google.com"
    >
        <u><strong>Post your details for FREE on google.com</strong></u>
    </a>
</p>
<p lang="en-US" align="center">
    <strong>Go to: </strong>
    <a
        href="https://www.google.com"
    >
        <u>
            <strong>
                https://www.google.com
            </strong>
        </u>
    </a>
</p>
<p lang="en-US" align="center">
    <strong>Scroll down for candidate’s resume</strong>
</p>
<p lang="en-US" align="left">
    <img src="" align="left" hspace="12"/>
    <br/>
</p>

Please help us out on priority. Thanks in advance.

Regards’
Kunal Wadhwa

@kunal.wadhwa

Thank you for contacting support.

Would you please try using Aspose.PDF for Java 19.9 as we are unable to notice the problem with latest version. Generated file has been attached for your kind reference. file_output_19.9.pdf