Document.UpdateTableLayout changes the layout of document footer in output PDF using .NET


We have discovered a bug in Aspose.Words.
When we save a .docx document as .pdf Table Width in Footer is changing and the PDF document looks differently than Word one.
See the sample program and the document used to replicate the (20.2 KB)

var doc = new Document(@"Aspose.docx");
var pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.SaveFormat = SaveFormat.Pdf;
doc.Save(@"Aspose.pdf", pdfSaveOptions);

Furthermore, it happens for Aspose.Words version 20.10 as well.


We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-21256. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

We suggest you please do not call the Document.UpdateTableLayout method to get the desired output.

Hi Tahir,

Regarding the workaround, we need to call it to avoid issues described here Different margins for .dcox and .pdf unless these have been fixed?



Thanks for sharing the detail. We will inform you via this forum thread once there is an update available on it.

The issues you have found earlier (filed as WORDSNET-21256) have been fixed in this Aspose.Words for .NET 23.7 update also available on NuGet.