GroupDocs.Metadata for .NET 24.5 Release Notes
This page contains release notes for GroupDocs.Metadata for .NET 24.5
Major Features
There are the following features, enhancements, and fixes in this release:
- Copy method for metadata
- Expanding the list of known properties
- Implement Document Preview options
Full List of Issues Covering all Changes in this Release
Key | Summary | Category |
---|---|---|
METADATANET-4055 | Implement support for copying metadata. | New Feature |
METADATANET-4060 | Implement Document Preview options PreviewOptions.Resolution property. | New Feature |
Public API and Backward Incompatible Changes
Implement the ability to configure cache for heavy operations
Public API changes
The CopyTo method has been added to the GroupDocs.Metadata.Metadata class
The Resolution property has been added to the GroupDocs.Metadata.PreviewOptions class
Use cases
Copy metadata properties from source file to destination file
using (Metadata source = new Metadata("D:\source.pdf"))
using (Metadata destination = new Metadata("D:\destination.pdf"))
{
var source_root = source.GetRootPackage<PdfRootPackage>();
var destination_root = destination.GetRootPackage<PdfRootPackage>();
var source_root = source_metadata.GetRootPackage<PdfRootPackage>();
Console.WriteLine("\nBefore copy:");
Console.WriteLine("\nSource package:");
Console.WriteLine(source_root.DocumentProperties.Author);
Console.WriteLine(source_root.DocumentProperties.CreatedDate);
Console.WriteLine(source_root.DocumentProperties.Producer);
var destination_root = destination_metadata.GetRootPackage<PdfRootPackage>();
Console.WriteLine("\nDestination package:");
Console.WriteLine(destination_root.DocumentProperties.Author);
Console.WriteLine(destination_root.DocumentProperties.CreatedDate);
Console.WriteLine(destination_root.DocumentProperties.Producer);
source_metadata.CopyTo(destination_root);
Console.WriteLine("\n\nAfter copy:");
Console.WriteLine("\nDestination package:");
Console.WriteLine(destination_root.DocumentProperties.Author);
Console.WriteLine(destination_root.DocumentProperties.CreatedDate);
Console.WriteLine(destination_root.DocumentProperties.Producer);
}