我們很高興宣布 GroupDocs.Redaction for Node.js via Java 26.11 的發布,於 2026年11月 起可供使用。本次發布包含三項增強功能和一項錯誤修復,並對評估模式限制、OCR 類型組織以及加密庫版本進行了顯著更新。
本次發布的新功能
- [Enhancement] 為 .NET 6.0、.NET 8.0 和 .NET 10.0 目標框架新增 Windows 支援 (REDACTIONNET-878)
- [Enhancement] 更新試用模式限制規則 (REDACTIONNET-854)
- [Enhancement] 將 System.Security.Cryptography.Pkcs 更新至 .NET 6 與 .NET 8 的 8.0.2 版,並於 .NET 10 使用 9.0.21 版 (CVE-2026-84008, CVE-2026-70162) (REDACTIONNET-877)
- [Bug] 光柵化檔案的輸出位置不正確 (REDACTIONNET-881)
此版本還引入了 License.isLicensed() 以檢查授權狀態,並將 OCR 連接器類型移至 com.groupdocs.redaction.integration.ocr,因此需要在自訂 Java 互操作實作中更新套件參考。
公開 API 變更
License.isLicensed()
當已套用有效授權時返回 true,在組件以評估模式運行時返回 false。
const redaction = require('@groupdocs/groupdocs.redaction');
const license = new redaction.License();
license.setLicense('GroupDocs.Redaction.lic');
if (license.isLicensed()) {
const redactor = new redaction.Redactor('sample.pdf');
try {
// licensed processing
} finally {
redactor.close();
}
}
OCR 類型已移至 com.groupdocs.redaction.integration.ocr
以下類型已從 com.groupdocs.redaction.integration 移至 com.groupdocs.redaction.integration.ocr:
IOcrConnectorRecognizedImageTextLineTextFragment
如果您在 Java 互操作程式碼中實作自訂 OCR 連接器,請相應更新套件參考:
// Before (26.10 and earlier)
// com.groupdocs.redaction.integration.IOcrConnector
// After (26.11)
// com.groupdocs.redaction.integration.ocr.IOcrConnector
新功能
此版本未引入新功能——僅包含增強與錯誤修復。
程式碼範例
請參閱上方 公開 API 變更 中的 License.isLicensed() 範例。
如何取得更新
npm
透過 npm 升級至最新套件:
@groupdocs/groupdocs.redaction@26.11.0
npm install @groupdocs/groupdocs.redaction@26.11.0
直接下載
從 GroupDocs.Redaction for Node.js via Java 26.11 頁面下載組件。