上傳檔案後,發生跑版,麻煩看看如何處理?

版本:24.3.0
程式語言:C#

左邊轉檔前的word檔.右邊是轉為PDF後.紅框處多了換行


跑版檔案.docx (15.9 KB)

PS.沒有設定任何參數

// 設置Aspose.Words許可
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense("Aspose.Words.NET.lic");
// 加載Word文檔
Document document = new Document(inputDocFilePath);
document.Save(tempPdfFilePath, SaveFormat.Pdf);

@HUICHEN_CHOU
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-26780

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

加入document.CompatibilityOptions.OptimizeFor(Aspose.Words.Settings.MsWordVersion.Word2010);

該檔就不會跑版了

@HUICHEN_CHOU 感谢您提供更多信息。 是的,使用“MsWordVersion.Word2010”,文档可以正确呈现。 我们将进一步调查该问题,并在问题解决后通知您。

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