// Create an instance of Parser class
try(Parserparser=newParser(Constants.SamplePptx)){// Extract metadata from the presentation
Iterable<MetadataItem>metadata=parser.getMetadata();// Iterate over metadata items
for(MetadataItemitem:metadata){// Print an item name and value
System.out.println(String.format("%s: %s",item.getName(),item.getValue()));}}
What file types work?
This works with all common PowerPoint formats:
.ppt - Older PowerPoint files
.pptx - Newer PowerPoint files
.pps - PowerPoint slideshow files
.ppsx - Newer slideshow files
Important notes
Warning
getMetadata method returns null value if metadata extraction isn’t supported for the document. For example, metadata extraction isn’t supported for TXT files. Therefore, for TXT file getMetadata method returns null. If Microsoft Office PowerPoint presentation has no metadata, getMetadata method returns an empty collection.
Real-world example
Let’s say you have a folder full of PowerPoint presentations and you want to find out who created each one:
Along with full featured Java library we provide simple, but powerful free Apps.
You are welcome to parse documents and extract data from PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, Emails and more with our free online Free Online Document Parser App.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.