This example demonstrates how to load a file from a stream.
advanced_usage.loading_files.LoadFromStream
// Constants.InputDoc is an absolute or relative path to your document. Ex: @"C:\Docs\source.doc"try(InputStreamstream=newFileInputStream(Constants.InputDoc)){try(Metadatametadata=newMetadata(stream)){// Extract, edit or remove metadata here}}
More resources
GitHub examples
You may easily run the code above and see the feature in action in our GitHub examples: