The docx file is converted to a pdf file, and the content is missing and the line is broken

After I used aspose (22.12) to convert the docx (file name is old. docx) file into a pdf file, I found some missing content and newline problems, as shown below
1673251891959.png (277.0 KB)

Later, I used the wps software to save old.docx as new.docx. After the conversion, everything was normal. The file is as follows:
new.docx (16.0 KB)
old.docx (18.4 KB)

@humanhuman Thank you for reporting the problem to us. It looks like the document has incorrect table grid. Aspose.Words renders the document exactly the same as it looks in MS Word when you open it. MS Word also renders the document to PDF the same as Aspose.Words does: ms.pdf (159.6 KB)
So Aspose.Words behavior is correct here.

Investigations show that if autofit the table to fixed columns widths fixes the issue and the document is rendered as it is expected:

Document doc = new Document(@"C:\Temp\in.docx");

foreach (Table t in doc.GetChildNodes(NodeType.Table, true))
    t.AutoFit(AutoFitBehavior.FixedColumnWidths);

doc.Save(@"C:\Temp\out.pdf");

out.pdf (116.0 KB)
So you can use the above code a a workaround.