# Extract Metadata

You can obtain the metadata for a file by calling the metadata_map method:

    auto myinput = keyview::io::InputFile{ std::string("InputFile.docx") };
    auto metadata = KV.metadata_map(myinput);
    for (const auto& it : metadata)
    {
        std::cout << it.first << ": " << it.second << '\n';
    }

The metadata map contains a mapping from field names to field values.

_FT_HTML5_bannerTitle.htm