I want to use InsertHtml to add an Html string in Word document by this code:
var doc = new Aspose.Words.Document(); var builder = new Aspose.Words.DocumentBuilder(doc); builder.InsertHtml(html, true); doc.Save(targetFilePath, Aspose.Words.SaveFormat.Docx);
It works fine but when the Html string contains large width content the final Word document does not show all of Html. (Like attached file).
Insert Html.zip (12.0 KB)
I look for a way to autofit page size base on the content. It is important to me that do not change the Html size and import it in the original size. So I need to change page size.