Code samples within this repository extract content from presentation files (including shape text, images, and slide notes).
Use the following collections to obtain slides and associated content:
- Presentation.Slides - stores all slides within the presentation.
- Slide.Shapes - stores shapes within a slide. Use shapes to access content such as text, images, figures, etc.
This repository uses the following techniques to correctly obtain slide content:
-
The order of elements in the Slide.Shapes collection does not necessarily match visual order. To process shapes top to bottom or left to right, sort them by coordinates. Examples in this repository use the System.Linq namespace to sort elements.
Code to review: the Sort shapes region.
-
You can identify and skip certain shape types. For example, the Slide.Shapes collection includes a slide number placeholder shape. Use the CommonShape.PlaceholderSettings.Type property to identify and skip this shape.
Code to review: the Filter shapes region.
-
You can obtain only shapes that contain text. Check that the TextArea.Text property is not an empty string.
Code to review: the Filter shapes region.
Refer to the following help topic for image/extraction results: Extract Presentation Content.
(you will be redirected to DevExpress.com to submit your response)