Affects all Word platforms, and any version of the API should be missing this feature. The preview API does not have this feature either.
Tested with Microsoft 365 Word and Office-js 1.3.
We seem to lack a way of retrieving floating pictures through the API.
Right now we're only able to retrieve inline pictures by using the inlinePictures property. It would be great to have the same for floating pictures 🙂
Currently there is no way of getting floating pictures at all.
Ideally the API should be something like
context.document.body.floatingPictures
This feature is critical for the future development of my company's Word extension.
Example of a floating picture in Word
https://i.imgur.com/cPnIs3i.png
1 Comment
- razvaniravacorCopper Contributor
Hello, i was having the same issue with a similar case.
I managed to find a solution that works for the desktop version, you can find the documentation here https://learn.microsoft.com/en-us/javascript/api/requirement-sets/word/word-api-desktop-1.2-requirement-set?view=common-js-preview (see Body.Shapes)
Using this you can retrieve all shapes including inline and floating images.
Hope this helps!