Hi,
Andreas Ruge
Hi,
Hi Andreas,
Hi Andreas,
Thanks for your patience. As a workaround of this issue, please enable Document.CompatibilityOptions.GrowAutofit property before saving the document. Moreover, please disable Table.AllowAutoFit property for the root table in the document to fit the table on page.
Please check the highlighted code snippet below. We have attached the output Pdf with this post for your kind reference. Hope this helps you.
Aspose.Words.LoadOptions loadOptions = new Aspose.Words.LoadOptions();
loadOptions.LoadFormat = Aspose.Words.LoadFormat.Mhtml;
Aspose.Words.Document doc = new Aspose.Words.Document(stream, loadOptions);
var table1 = doc.GetChildNodes(NodeType.Table, true)[0] as Table;
table1.AllowAutoFit = false;
Aspose.Words.Saving.PdfSaveOptions options = new Aspose.Words.Saving.PdfSaveOptions();
options.Compliance = PdfCompliance.Pdf15;
doc.CompatibilityOptions.GrowAutofit = true;
doc.Save(MyDir + "17.2.0.pdf", options);
The issues you have found earlier (filed as WORDSNET-14287) have been fixed in this Aspose.Words for .NET 24.7 update also available on NuGet.