Skip to content

Creates a console application that extracts content from presentation files (including shape text, images, and slide notes).

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/presentation-api-extract-content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Creates a console application that extracts content from presentation files (including shape text, images, and slide notes).

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages