Thanks for your inquiry. We have tested the scenario using latest version of Aspose.Words for .NET 16.12.0 and have not found the shared issue. Please use Aspose.Words for .NET 16.12.0. We have attached the output document with this post for your kind reference.
If you still face problem, please share your output document and code of InsertHeaderFooter method here for further testing. We will investigate the issue and provide you more information on this.
After the updating the aspose.dll with the latest one ,still I am facing the same issue of Image base 64 embedded.
Please find code below and find two documents of input html and output word file as an attachment.
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense("Aspose.Words.lic");
var doc1 = new Aspose.Words.Document("D:/test.htm");
foreach (Aspose.Words.Tables.Row row in doc1.GetChildNodes(NodeType.Row, true))
{
row.RowFormat.AllowBreakAcrossPages = true;
}
foreach (Paragraph para in doc1.GetChildNodes(NodeType.Paragraph, true))
{
para.ParagraphFormat.Borders.ClearFormatting();
}
var builder = new Aspose.Words.DocumentBuilder(doc1);
builder.MoveToHeaderFooter(HeaderFooterType.FooterPrimary);
builder.PageSetup.PageStartingNumber = 1;
builder.PageSetup.RestartPageNumbering = true;
builder.MoveToHeaderFooter(HeaderFooterType.FooterPrimary);
builder.Write("Page ");
builder.InsertField("PAGE", string.Empty);
builder.MoveToDocumentEnd();
doc1.Save("D:/doctest.docx", Aspose.Words.SaveFormat.Docx);
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.