Hello,
Thanks for your inquiry!
I did reproduce the issue of “<hr>” tags from the HTML file got lost in the final PDF file after converting, but actually, the tags had already been lost during the operation of converting the HTML to Docx, and our Spire.Doc converted Docx file to PDF based on the appearance of Docx file, so there are no tags in the final PDF file. I have logged this issue in our issue tracking system with the ticket SPIREDOC-7009 for further investigation.
We will let you know if there is any update. Sorry for the inconvenience caused.
In addition, if you just want to convert HTML files to PDF, we recommend that you can achieve it by using our
Spire.PDF for java directly. In fact, the effect of this method is better than using Spire.Doc. Please refer to this article to have a try:
Java convert HTML to PDF.Sincerely,
Marcia
E-iceblue support team