Hi
Thank you for additional information. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed.
It seems the reason of the problem is lot of <BR> tags inside the document. So you can try using the following workaround:
DateTime p0 = DateTime.Now;
string html = File.ReadAllText(@"Test006\longtxt_CONVERTED.html");
html = html.Replace("<br>", "<p>");
MemoryStream strm = new MemoryStream(Encoding.UTF8.GetBytes(html));
DateTime p1 = DateTime.Now;
Console.WriteLine("Replacing: {0} sec", (p1 - p0).TotalSeconds);
Document doc = new Document(strm);
DateTime p2 = DateTime.Now;
Console.WriteLine("Loading: {0} sec", (p2 - p1).TotalSeconds);
doc.UpdatePageLayout();
DateTime p3 = DateTime.Now;
Console.WriteLine("Layout: {0} sec", (p3 - p2).TotalSeconds);
doc.Save(@"Test006\out.xps");
DateTime p4 = DateTime.Now;
Console.WriteLine("Saving: {0} sec", (p4 - p3).TotalSeconds);
Best regards,
Andrey Noskov
Developer/Technical Support
Aspose Auckland Team