Get Shapes from a Slide
Introduction
The following API method allows you to retrieve all shapes or shapes of a specified type from a slide in a PowerPoint presentation saved to a storage.
GetShapes
API Information
API | Type | Description | Resource |
---|---|---|---|
/slides/{slideIndex}/shapes | GET | Reads information about shapes from the slide. | GetShapes |
Request Parameters
Name | Type | Location | Required | Description |
---|---|---|---|---|
name | string | path | true | The name of a presentation file. |
slideIndex | integer | path | true | The 1-based index of the slide. |
password | string | header | false | The password to open the presentation. |
folder | string | query | false | The path to the folder containing the presentation. |
storage | string | query | false | The name of the storage contaning the folder . |
shapeType | string | query | false | The type of shapes to retrieve. Available values: Shape, Chart, Table, PictureFrame, VideoFrame, AudioFrame, SmartArt, OleObjectFrame, GroupShape, GraphicalObject, Connector, SmartArtShape, ZoomFrame, SectionZoomFrame, SummaryZoomFrame, SummaryZoomSection. |
subShape | string | query | false | Sub-shape path (e.g. “3”, “3/shapes/2) |
In case of Amazon S3 storage folder path starts with Amazon S3 bucket name.
Examples
Read information about all shapes and charts placed on the first slide from MyPresentation.pptx saved to the default storage.
cURL Solution
SDK Solutions
SDKs
Using an SDK (API client) is the quickest way for a developer to speed up development. An SDK takes care of a lot of low-level details of making requests and handling responses and lets you focus on writing code specific to your particular project. Check out our GitHub repository for a complete list of Aspose.Slides Cloud SDKs along with working examples, to get you started in no time. Please check Available SDKs article to learn how to add an SDK to your project.