我們很高興宣布 GroupDocs.Redaction for Java 26.11 已於 2026年11月 發佈。此版本包含 3 項增強功能與 1 項錯誤修復,顯著改進了評估模式、OCR 類型組織以及平台支援。

此版本的新功能

  • [Enhancement] 為 Windows 添加對 .NET 6.0、.NET 8.0 和 .NET 10.0 目標框架的支援 (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)

公開 API 變更

License.isLicensed()

當已套用有效授權時返回 true,在元件以評估模式運行時返回 false。

License license = new License();
license.setLicense("GroupDocs.Redaction.lic");

if (license.isLicensed()) {
    try (Redactor redactor = new Redactor("sample.pdf")) {
        // licensed processing
    }
}

OCR 類型已移至 com.groupdocs.redaction.integration.ocr

以下類型已從 com.groupdocs.redaction.integration 移至 com.groupdocs.redaction.integration.ocr:

  • IOcrConnector
  • RecognizedImage
  • TextLine
  • TextFragment

更新自訂 OCR 連接器及相關程式碼中的匯入語句:

// Before (26.10 and earlier)
import com.groupdocs.redaction.integration.IOcrConnector;
import com.groupdocs.redaction.integration.RecognizedImage;
import com.groupdocs.redaction.integration.TextLine;
import com.groupdocs.redaction.integration.TextFragment;

// After (26.11)
import com.groupdocs.redaction.integration.ocr.IOcrConnector;
import com.groupdocs.redaction.integration.ocr.RecognizedImage;
import com.groupdocs.redaction.integration.ocr.TextLine;
import com.groupdocs.redaction.integration.ocr.TextFragment;

新功能

此版本未引入新功能。

程式碼範例

此版本未提供程式碼範例。

如何取得更新

Maven

在 pom.xml 中使用以下相依性安裝套件:

<dependency>
    <groupId>com.groupdocs</groupId>
    <artifactId>groupdocs-redaction</artifactId>
    <version>26.11</version>
</dependency>

或直接從 Maven repository 下載套件。

直接下載

從 GroupDocs.Redaction for Java 26.11 release page 下載 JAR 檔案與文件。

資源