GroupDocs.Metadata for .NET 24.4 Release Notes
Major Features
Important Note: Starting from 24.4.0, the GroupDocs.Metadata package has been split into two distinct platform packages: .NET Standard and .NET Framework. The GroupDocs.Metadata package is specifically designed to support the .NET Standard platform, making it compatible with .NET Core, .NET 5, .NET 6, etc. It includes backward compatibility improvements, allowing it to function with .NET Framework versions starting from 4.7.2. In addition, we have introduced the GroupDocs.Metadata.NETFramework package, which is optimized to run seamlessly in the .NET Framework runtime.
There are the following features, enhancements, and fixes in this release:
- Import metadata properties from JSON file.
Full List of Issues Covering all Changes in this Release
Key | Summary | Category |
---|---|---|
METADATANET-4047 | Import from file. | New Feature |
Public API and Backward Incompatible Changes
Implement the ability to configure cache for heavy operations
Public API changes
The GroupDocs.Metadata.Import class has been added to the GroupDocs.Metadata namespace
Use cases
Import metadata properties from JSON file File “D:\import.json” received after exporting properties
using (Metadata metadata = new Metadata("D:\sample.pdf"))
{
var root = metadata.GetRootPackage<PdfRootPackage>();
Console.WriteLine(root.DocumentProperties.Author);
Console.WriteLine(root.DocumentProperties.CreatedDate);
Console.WriteLine(root.DocumentProperties.Producer);
var manager = new ImportManager(root);
manager.Import("D:\import.json", ImportFormat.Json, new JsonImportOptions());
metadata.Save();
}