Get a Paragraph Rectangle

Introduction

Coordinates and sizes of paragraphs in PowerPoint presentations play a major role in the visual organization and perception of information on a slide. Coordinates determine the position of the paragraph in a text box, and sizes define the width and height of the paragraph. Use the following method to get coordinates and size of a paragraph.

GetParagraphRectangle

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/bounds GET Returns coordinates and dimensions of a paragraph from a presentation saved in a storage. GetParagraphRectangle

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 a slide.
shapeIndex integer path true The 1-based index of a shape.
paragraphIndex integer path true The 1-based index of a paragraph.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation file.
storage string query false The name of the storage contaning the folder.

Examples

In the default storage, the document MyPresentation.pptx contains a text box (the first shape) on the first slide. The text box contains two paragraphs. Get the coordinates and dimensions of the second paragraph.

The slide

cURL Solution

SDK Solutions

SDKs

Check Available SDKs to learn how to add an SDK to your project.