Reputation: 4303
I want to use C# to get the metadata of a file, for example a docx. In the screenshot below you see the auteur and other metadata of a file.
How do I write this metadata to the console?
Upvotes: 2
Views: 3879
Reputation: 597
A word file in DOCX is packaged as a zip file. The metadata is in an XML file within that zip file. As a very simple way to think about it, this is what you would need to do programmatically through C#:
Image Showing Structure and XML file
Info on Office Open XML format
Upvotes: 3