DublinCorePackage
EpubRootPackage.DublinCorePackage property
Gets the Dublin Core metadata package extracted from the e-book.
public DublinCorePackage DublinCorePackage { get; }
Property Value
The Dublin Core metadata package extracted from the e-book.
Remarks
Learn more
Examples
This example shows how to extract Dublin Core metadata from an EPUB file.
using (Metadata metadata = new Metadata(Constants.InputEpub))
{
var root = metadata.GetRootPackage<EpubRootPackage>();
if (root.DublinCorePackage != null)
{
Console.WriteLine(root.DublinCorePackage.Rights);
Console.WriteLine(root.DublinCorePackage.Publisher);
Console.WriteLine(root.DublinCorePackage.Title);
Console.WriteLine(root.DublinCorePackage.Creator);
Console.WriteLine(root.DublinCorePackage.Language);
Console.WriteLine(root.DublinCorePackage.Date);
// ...
}
}
See Also
- class DublinCorePackage
- class EpubRootPackage
- namespace GroupDocs.Metadata.Formats.Ebook
- assembly GroupDocs.Metadata