How to fit an OLEObject to content

Hello,
I am inserting an OLEObject using

docConnector.executeMethod('InsertOleObject')

but the image size is getting too big. How to fit the OLEObject to content after insert it??
There is a way to fit the OLEObject image as the button ‘Adjust to the margin’ works?

onlyoffice

1 Like

Hi @lucasoliveira
I’m afraid such a method doesn’t exist.

You need to specify precise values for the image/OLE object.