GroupDocs.Redaction for .NET 26.7이(가) 이제 제공됩니다. 이번 릴리스에서는 Word 처리 문서를 저장할 때 OOXML 준수 제어를 추가하고, 스프레드시트 형식 지원을 확대했으며, CSV 이미지 스타일 삭제 및 일반 텍스트 저장 동작과 관련된 문제를 수정했습니다.

Fixes and enhancements

  • [Enhancement] Word 문서에 대한 OOXML 준수 지원 및 적용 구현. (REDACTIONNET-718)
  • [Enhancement] ODS, OTS, XLSB, XLT 및 TAB 스프레드시트 형식 지원 구현. (REDACTIONNET-802)
  • [Bug] CSV 파일에 대한 불필요한 이미지 삭제. (REDACTIONNET-805)
  • [Bug] 텍스트 파일을 XLSX로 저장. (REDACTIONNET-628)

What’s New?

이번 릴리스는 Word 저장 옵션과 보다 넓은 스프레드시트 지원에 중점을 두며, 텍스트 기반 형식에 대한 보다 안정적인 동작을 제공합니다.

Specify OOXML compliance when saving Word documents

Word 처리 문서를 원본 형식으로 저장할 때 SaveOptions.WordprocessingSaveOptions.OoxmlCompliance를 통해 OOXML 준수 수준을 지정할 수 있습니다. 새로 추가된 WordProcessingComplianceLevel 열거형의 값(Ecma, Transitional, Strict) 중 하나를 사용하십시오.

이 속성을 설정하지 않으면 GroupDocs.Redaction은 원본 문서의 준수 수준을 유지합니다. StrictTransitional으로만 다운그레이드될 수 있으며, Ecma로는 다운그레이드되지 않습니다. 문서를 래스터화된 PDF가 아닌 Word OOXML로 저장하려면 RasterizeToPDFfalse로 설정하십시오.

Expanded spreadsheet format support

버전 26.7에서는 ODS, OTS, XLSB, XLT, TAB 스프레드시트를 지원합니다. 올바른 형식 감지와 원본 스프레드시트 형식으로의 저장이 가능하며, 다른 스프레드시트 문서와 동일한 API 패턴으로 이러한 파일을 삭제할 수 있습니다.

More reliable CSV and plain-text handling

CSV와 같은 텍스트 전용 스프레드시트 형식에서는 이미지 스타일 교체를 지원하지 않으므로 사각형(색상 사각형) 텍스트 삭제가 건너뛰어집니다. 또한 일반 텍스트 문서가 잘못된 경우 XLSX/ZIP 패키지로 저장되는 문제도 이번 릴리스에서 해결되었습니다.

Public API changes

Added

  • WordProcessingComplianceLevel 열거형 – 값: Ecma, Transitional, Strict
  • WordprocessingSaveOptions 클래스 – OoxmlCompliance 속성 추가
  • SaveOptions.WordprocessingSaveOptions 속성

Code examples

Save a Word document with OOXML compliance

using GroupDocs.Redaction.Options;
using GroupDocs.Redaction.Redactions;

using (Redactor redactor = new Redactor("sample.docx"))
{
    redactor.Apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions("[personal]")));

    var options = new SaveOptions()
    {
        AddSuffix = true,
        RasterizeToPDF = false,
        RedactedFileSuffix = "Strict"
    };
    // If not specified, the compliance level of the original document is preserved.
    // Strict can only be downgraded to Transitional, not to Ecma.
    options.WordprocessingSaveOptions.OoxmlCompliance = WordProcessingComplianceLevel.Strict;

    redactor.Save(options);
}

Redact newly supported spreadsheet formats

using GroupDocs.Redaction.Options;
using GroupDocs.Redaction.Redactions;

using (Redactor redactor = new Redactor("sample.ods"))
{
    redactor.Apply(new ExactPhraseRedaction("Sensitive", new ReplacementOptions("[redacted]")));
    redactor.Save(new SaveOptions() { AddSuffix = true, RasterizeToPDF = false });
}

How to get the update

  • NuGet – 최신 GroupDocs.Redaction for .NET 패키지를 NuGet에서 업그레이드
  • Direct DownloadGroupDocs.Redaction for .NET 26.7 페이지에서 GroupDocs.Redaction 어셈블리를 다운로드

Learn more