Table layout is broken after conversion from DOCX to PDF using C#

We’re experiencing a problem when converting this document into a .pdf file (using version 19.11.0.0). The attached test file is just a part of a larger document that causes the problem. The attached file has all the unnecessary data removed from it leaving just enough for you to observe the problem. If you open the file in Microsoft Word, you can see that it contains 5 pages. If you convert the file into .pdf using Microsoft Word, you’ll still be left with 5 pages in the resulting .pdf file. If you convert the file using Aspose Words (using the sample code below) you’ll generate a .pdf document that contains 6 pages. For some reason the fourth page is broken into two pages when converting the document using Aspose Words. When we try to convert the original document that is much lager than this one the problem is much more visible, and we’re left with a lot more pages then we begin with. Unfortunately, in the original document a lot of the tables contain shapes in them so when Aspose breaks the tables surrounding those shapes we’re left with an unintelligible and unfortunately unusable document. The tables are broken into two pages, but the shapes stay on the first page, so we’re left with a shape that is supposed to be surrounded by the table, but is left surrounded by nothing and the cells that should surround the shape are found on the next page empty.

Test.zip (39.9 KB)

// Set license
var license = new License();
license.SetLicense("Aspose.Total.lic");

// Create from file
var document = new Document("Test.docx");

// Save the document as pdf
document.Save("Test.pdf", SaveFormat.Pdf);

@bushprakash1

We have tested the scenario using the latest version of Aspose.Words for .NET 20.1 and have not found the shared issue. So, please use Aspose.Words for .NET 20.1. 20.1.pdf (19.2 KB)