跳到主要内容

OLEObjectData

The OLE object data.

Properties

NameTypeDescription
DatastringOLE object data (internal format).
ImageDatastringAn image in the base64 format stored in the OLE object and used by the plugin.
ApplicationIdstringAn identifier of the plugin which can edit the current OLE object and must be of the asc.{UUID} type.
InternalIdstringThe OLE object identifier which is used to work with OLE object added to the document.
ParaDrawingIdstringAn identifier of the drawing object containing the current OLE object.
WidthnumberThe OLE object width measured in millimeters.
HeightnumberThe OLE object height measured in millimeters.
WidthPixnumberThe OLE object image width in pixels.
HeightPixnumberThe OLE object image height in pixels.

Type

Object

Example

let oleObjectData = {
"Data": "{data}",
"ImageData": "data:image/png;base64,image-in-the-base64-format",
"ApplicationId": "asc.{38E022EA-AD92-45FC-B22B-49DF39746DB4}",
"Width": 70,
"Height": 70,
"WidthPix": 60 * 36000,
"HeightPix": 60 * 36000
};
window.Asc.plugin.executeMethod("InsertOleObject", [oleObjectData, true]);