Skip to content

Latest commit

 

History

History
52 lines (29 loc) · 3.51 KB

File metadata and controls

52 lines (29 loc) · 3.51 KB

Presentation Document API – Extract Presentation Images, Notes, and Pictures

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.

Implementation Details

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.

File to Review

Program.cs (Program.vb)

Documentation

Refer to the following help topic for image/extraction results: Extract Presentation Content.

Does This Example Address Your Development Requirements/Objectives?

(you will be redirected to DevExpress.com to submit your response)