Get content of selected shape in powerpoint format

documentserver developer edition: docker 8.2.1.38

does any api in presentation section that allow me get the entire text content of selected shape like “This is a pen. This is a pen” will be returned when using it

Hi @ZangHoang :wave:

I’m sorry, but currently, there isn’t an API method in the presentation section that allows you to get the entire text content of a selected shape directly as described.

I’ll check with our development team to see if there are any plans to implement such a feature.
Thank you for bringing this to our attention! :hugs:

I got it, but as an alternative, do we have an API that allows us to get the text content of each shape in the current slide?

Hello @ZangHoang,

Below, you will find the links to the necessary methods to access text content for each shape in the current slide:

  1. Presentation Structure - Overview of the presentation structure API.

  2. Api.GetPresentation - Retrieves the current presentation.

  3. ApiPresentation.GetCurrentSlide - Retrieves the current slide.

  4. ApiSlide.GetAllShapes - Retrieves all shapes on the slide.

  5. ApiShape.GetContent - Retrieves the content of the shape.

  6. ApiDocumentContent.GetAllParagraphs - Returns an array of all paragraphs from the current document content.
    (Note: This is part of the Text Document API, but may be relevant.)

  7. ApiParagraph.GetText - Retrieves the text of the paragraph
    (Note: This is part of the Text Document API, but may be relevant.)

These resources should help you implement your required functionality.