When converting a word document to PDF using the Aspose.Words (v22.8.0) .NET library the rendered table height in the PDF is slightly shorter than the source word document. This causes the text that follows it to wrap at a different line to the next page. For a customer, this is causing page numbers to mismatch, which is a regulatory audit concern.
The C# code used to create the output PDF:
using Aspose.Words;
new License().SetLicense("PdfTest.Aspose.Total.lic");
var doc = new Document(@"test2.docx");
doc.AcceptAllRevisions();
var nodes = doc.GetChildNodes(NodeType.Comment, true);
nodes.Clear();
doc.Save("dump.pdf", SaveFormat.Pdf);
The table is using the “raised/embossed” border style with 3/4th pt width. (See border.png)
border.PNG (5.5 KB)
The PDF rendered table is about 18 pixels shorter, or 1.5 pixels per row. As seen in the table.png image, this causes the last line on the page to be “L”, while the last line in the source docx is “K”:table.PNG (12.3 KB)
The test document that I’m using is test2.docx (13.3 KB)