Free Support Forum -

DocumentBuilder.InsertHtml printing HTML head title at top of page

We have an issue where we’ve used Aspose.Words to perform a Mail Merge operation on a document, then convert that to HTML, we then allow the user to edit this document using a WYSIWYG editor and upon submission, we use Aspose.Words again to convert that modified HTML to a PDF.

If the MS Word document has a document Title attribute on it, that comes back in the generated HTML within the head tag as a title tag value. This gets sent back and what we’re finding is that when calling DocumentBuilder.InsertHtml and saving that result to PDF, it’s printing the document title at the top of the page. if the title attribute is removed from the document properties in MS Word altogether, then this issue goes away.

Is there a way to suppress this outside of stripping the title tag from the markup before converting it?


Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output HTML and PDF files that shows the undesired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.