DublinCorePackage

WordProcessingRootPackage.DublinCorePackage property

Gets the Dublin Core metadata package extracted from the document.

public DublinCorePackage DublinCorePackage { get; }

Property Value

The Dublin Core metadata package extracted from the document.

Remarks

Learn more

Examples

This example demonstrates how to extract Dublin Core metadata from a WordProcessing document.

using (Metadata metadata = new Metadata(Constants.InputDocx))
{
    var root = metadata.GetRootPackage<WordProcessingRootPackage>();

    if (root.DublinCorePackage != null)
    {
        Console.WriteLine(root.DublinCorePackage.Format);
        Console.WriteLine(root.DublinCorePackage.Contributor);
        Console.WriteLine(root.DublinCorePackage.Coverage);
        Console.WriteLine(root.DublinCorePackage.Creator);
        Console.WriteLine(root.DublinCorePackage.Source);
        Console.WriteLine(root.DublinCorePackage.Description);

        // ...
    }
}

See Also