GroupDocs.Signature for .NET 23.3 Release Notes

There are 10+ features, enhancements, and bug fixes in this release.

Full list of changes in this release

KeyCategorySummary
SIGNATURENET-4387FeatureImplement support of AZW3 File Type
SIGNATURENET-4553FeatureAdded HIBC PAS QR Codes QR, Aztec and DataMatrix
SIGNATURENET-4551FeatureAdded HIBC PASCode39 and PASCode128 Barcodes
SIGNATURENET-4413EnhancementImplement AZW3 as new export save file format for Word Processing documents
SIGNATURENET-4417EnhancementMigrate product from .NET 40 to NET 462 frameworks
SIGNATURENET-4428EnhancementReplace DateTime Now values with the Universal format UTC-now
SIGNATURENET-4428FixThe exception is thrown when .ps document is being opened
SIGNATURENET-4314FixException with UTC DateTime format with Digital PDF signatures
SIGNATURENET-4313FixImplicit using of third party Org.BouncyCastle in referenced libraries
SIGNATURENET-4312FixFixed issue with casting object types on Open Office documents

Major Features

This release includes three features and one enhancement:

Implement support of AZW3 File Type

FileTypes was extended with new AZW3 supported file type.

/// <summary>
/// Sign azw3 file type
/// </summary>
using (var signature = new Signature("sample.azw3"))
{
    // create sign options
    var options = new TextSignOptions("signed!")
    {
        // set signature position
        Left = 100,
        Top = 100
    };
    // sign document to file
    SignResult result = signature.Sign("output.azw3", options);
}

Added HIBC PAS QR Codes QR, Aztec and DataMatrix

QRCodeTypes static class was updated with new types to support HIBC PAS QR.

/// <summary>
/// HIBC PAS QR-Code Type object.
/// </summary>
public static readonly QrCodeType HIBCPASQR;

/// <summary>
/// HIBC PAS Data Matrix QR-Code Type object.
/// </summary>
public static readonly QrCodeType HIBCPASDataMatrix;

/// <summary>
/// HIBC PAS Aztec QR-Code Type object.
/// </summary>
public static readonly QrCodeType HIBCPASAztec;
using (Signature signature = new Signature("sample.pdf""))
{
    // create barcode option with predefined QR-Code text that follow HIBC LIC standard
    var options = new QrCodeSignOptions("A123PROD30917/75#422011907#GP293")
    {
        // setup Barcode encoding type
        EncodeType = QrCodeTypes.HIBCPASQR,
        // set signature position
        Left = 100,
        Top = 100
    };
    // sign document to file
    SignResult result = signature.Sign("output.pdf", options);
}

Added HIBC PASCode39 and PASCode128 Barcodes

BarcodeTypes static class was updated with new types to support HIBC PAS Barcodes.

/// <summary>
/// HIBC PAS 39 Barcode Type object.
/// </summary>
public static readonly BarcodeType HIBCCode39PAS;

/// <summary>
/// HIBC PAS 128 Barcode Type object.
/// </summary>
public static readonly BarcodeType HIBCCode128PAS;
using (Signature signature = new Signature("sample.pdf""))
{
    // create barcode option with predefined barcode text that follow HIBC PAS standard
    BarcodeSignOptions options = new BarcodeSignOptions("+A99912345/$$52001510X3")
    {
        // setup Barcode encoding type
        EncodeType = BarcodeTypes.HIBCCode39PAS,
        // set signature position
        Left = 100,
        Top = 100
    };
    // sign document to file
    SignResult result = signature.Sign(outputFilePath, options);
}

Implement AZW3 as new export save file format for Word Processing documents

WordProcessingSaveOptions was updated with new types to support AZW3 save file format File Format.

using (var signature = new Signature("sample.docx"))
{
    // create QRCode option with predefined QRCode text
    var signOptions = new TextSignOptions("JohnSmith")
    {
        // set signature position
        Left = 100,
        Top = 100
    };

    var saveOptions = new WordProcessingSaveOptions()
    {
        FileFormat = WordProcessingSaveFileFormat.Azw3,
        OverwriteExistingFiles = true
    };
    // sign document to file
    SignResult result = signature.Sign("output.azw3", signOptions, saveOptions);
}