// Constants.InputPpt is an absolute or relative path to your document. Ex: @"C:\Docs\test.ppt"FileoutputFile=newFile(Constants.OutputPpt);outputFile.delete();Files.copy(newFile(Constants.InputPpt).toPath(),outputFile.toPath());try(Metadatametadata=newMetadata(Constants.OutputPpt)){// Edit or remove metadata here// Saves the document to the underlying filemetadata.save();}
More resources
GitHub examples
You may easily run the code above and see the feature in action in our GitHub examples: