Extract Annotations from Microsoft Office PowerPoint presentations
Extract Annotations from Microsoft Office PowerPoint presentations
Leave feedback
On this page
Microsoft Office PowerPoint presentations (.ppt, .pptx) often contain annotations – slide comments left by reviewers during a review pass. With GroupDocs.Parser for .NET, you can easily read these annotations programmatically using the GetAnnotations method.
This guide shows how to extract annotations from Microsoft Office PowerPoint presentations in C# step by step.
What Are PowerPoint Annotations?
Annotations are comments that reviewers attach to slides in a PowerPoint (.ppt, .pptx) presentation – for example, feedback left on a specific shape or slide during a review pass. The GetAnnotations method reads this markup and returns it as a collection of AnnotationItem objects, each exposing a Value with the comment’s text, along with metadata such as the author and timestamp.
The method has two overloads:
Overload
Description
GetAnnotations()
Extracts annotations from the whole PowerPoint presentation
GetAnnotations(int pageIndex)
Extracts annotations from a specific slide (zero-based index)
⚡ Note: Annotation extraction is supported for both the legacy binary format (.ppt) and the Open XML format (.pptx).
How to Extract Annotations from a PowerPoint Presentation in C#
Follow these steps to get annotations from a .ppt or .pptx file:
Create a Parser object and load the PowerPoint presentation.
Call the GetAnnotations method to retrieve the annotation collection.
Iterate through the collection and read each annotation’s value.
GetAnnotations method returns null if annotation extraction isn’t supported for the document. If the PowerPoint presentation has no comments, GetAnnotations method returns an empty collection.
Extract PowerPoint Text Together with Annotations
Sometimes it’s useful to get the presentation’s text and its comments in one pass, instead of calling GetAnnotations separately. Set IncludeAnnotations to true on TextOptions and pass it to the GetText method – the comment text will be included in the extracted output alongside the regular slide text.
Along with full featured .NET 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.
On this page
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.