GroupDocs.Metadata for .NET 18.1 Release Notes

Major Features

There are 3 new features in this regular monthly release. The most notable are:

  • Implement ability to read metadata of EPUB format
  • Implement ability to detect EPUB e-book format
  • Implement ability to read DublinCore metadata in EPUB format

All Changes

KeySummaryCategory
METADATANET-717Implement ability to read metadata of EPUB formatNew Feature
METADATANET-2133  Implement ability to detect EPUB e-book formatNew Feature 
METADATANET-2134Implement ability to read DublinCore metadata in EPUB formatNew Feature 

Public API and Backward Incompatible Changes

Implement ability to read metadata of EPUB format

Description

Implement ability to read metadata of EPUB e-book format

Public API changes

Added EpubFormat class into namespace GroupDocs.Metadata.Formats.Ebook
Added EpubMetadata class into namespace GroupDocs.Metadata.Formats.Ebook

Usecases

This example demonstrates how to read metadata of EPUB e-book format

// path to the EPUB file
const string file = @"C:\Jack_London_Biography.epub";

// open EPUB file
EpubFormat epub = new EpubFormat(file);

// read EPUB metadata
EpubMetadata metadata = epub.GetEpubMetadata();

// get keys
string[] keys = metadata.Keys;

foreach (string key in keys)
{
 // get next metadata property
 MetadataProperty property = metadata[key];

 // and print it
 Console.WriteLine(property);
}

Implement ability to detect EPUB e-book format

Description

Implement ability to detect EPUB e-book format

Public API changes

Added EpubFormat class into namespace GroupDocs.Metadata.Formats.Ebook

Usecases

This example demonstrates how to detect EPUB e-book format

// just try to open
EpubFormat epubFormat = new EpubFormat(file);

// or
//using FormatFactory
EpubFormat epubFormat = (EpubFormat) FormatFactory.RecognizeFormat(file);

Implement ability to read DublinCore metadata in EPUB format

Description

Implement ability to read DublinCore metadata of EPUB e-book format

Public API changes

Added DublinCoreMetadata class into namespace GroupDocs.Metadata

Usecases

This example demonstrates how to read DublinCore metadata of EPUB e-book format

// path to the EPUB file
const string file = @"C:\Jack_London_Biography.epub";

// open EPUB file
EpubFormat epub = new EpubFormat(file);

// read dublin-core metadata
DublinCoreMetadata dublinCore = epub.GetDublinCore();

// get creator
string creator = dublinCore.Creator;

// get publisher
string publisher = dublinCore.Publisher;

// get contributor
string contributor = dublinCore.Contributor;