GroupDocs.Signature voor .NET 26.6 is nu beschikbaar. Deze release voegt OOXML‑compliance‑controle toe voor WordProcessing‑documenten, verfijnt de proef‑moduservaring voor archieven en meerlagige afbeeldingen, en introduceert een multi‑framework NuGet‑leveringsmodel met toegewijde per‑TFM‑pakketten.

Wat is nieuw in deze release

Sleutel Categorie Samenvatting
SIGNATURENET-5634 Feature Ondersteuning en respect voor OOXML‑compliance voor WordProcessing‑documenten
SIGNATURENET-5822 Enhancement Multi‑framework NuGet‑verpakking en TFM‑gesplitste pakketten
SIGNATURENET-5825 Enhancement Herstructurering van proeflicentie‑limieten
SIGNATURENET-5705 Enhancement Interne verbeteringen

Nieuwe functies

Ondersteuning en respect voor OOXML‑compliance voor WordProcessing‑documenten

GroupDocs.Signature behoudt nu het oorspronkelijke OOXML‑compliance‑niveau van WordProcessing‑documenten en stelt u in staat dit bij het opslaan via de API te overschrijven.

Wat is veranderd:

  • De oorspronkelijke OoxmlCompliance‑waarde wordt gedetecteerd wanneer het document wordt geladen en standaard bij het opslaan behouden.
  • WordProcessingSaveOptions biedt een nieuwe nullable OoxmlCompliance‑eigenschap. Wanneer null (standaard), wordt de compliance van het geladen document behouden; wanneer ingesteld, wordt de bronwaarde overschreven.
  • Alleen van toepassing op OOXML‑outputformaten: Docx, Docm, Dotx, Dotm en hun FlatOpc‑varianten.

Nieuwe enum:

public enum OoxmlCompliance
{
    /// <summary>Specifies ECMA-376 compliance level.</summary>
    Ecma,
    /// <summary>Specifies ISO/IEC 29500:2008 Transitional compliance level.</summary>
    Transitional,
    /// <summary>Specifies ISO/IEC 29500:2008 Strict compliance level.</summary>
    Strict
}

Codevoorbeeld

using (Signature signature = new Signature(filePath))
{
    TextSignOptions signOptions = new TextSignOptions("John Smith")
    {
        Left = 100,
        Top = 100,
        Width = 200,
        Height = 60
    };

    // Force ISO 29500:2008 Strict on save regardless of the source's compliance.
    // Other allowed values: OoxmlCompliance.Ecma, OoxmlCompliance.Transitional.
    WordProcessingSaveOptions saveOptions = new WordProcessingSaveOptions(WordProcessingSaveFileFormat.Docx)
    {
        OoxmlCompliance = OoxmlCompliance.Strict
    };

    SignResult result = signature.Sign(outputFilePath, signOptions, saveOptions);
}

Hoe de update te verkrijgen

NuGet

Pakket Doel‑framework(s)
GroupDocs.Signature netstandard2.1; net45; net6.0; net8.0 (alle frameworks)
GroupDocs.Signature.netstandard2.1 .NET Standard 2.1
GroupDocs.Signature.net45 .NET Framework 4.5
GroupDocs.Signature.net6 .NET 6.0
GroupDocs.Signature.net8 .NET 8.0

Upgrade naar de nieuwste pakketversie via NuGet. Kies het pakket dat overeenkomt met uw doel‑framework om alleen de benodigde binaries te downloaden.