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
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
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!
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:
Presentation Structure - Overview of the presentation structure API.
Api.GetPresentation - Retrieves the current presentation.
ApiPresentation.GetCurrentSlide - Retrieves the current slide.
ApiSlide.GetAllShapes - Retrieves all shapes on the slide.
ApiShape.GetContent - Retrieves the content of the shape.
→ 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.)
→ 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.