Creates and inserts a new image which has a fixed geometrical position in the document. This position is specified through a location relative to the top left corner of the complete document. All gaps between the pages must be included.

<void> ImageCollection.addAtFixedPositionInDocument(<string> imageData, <Point> location, <ImageInsertionMode> insertionMode, [<RequestImageCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
imageData The base64 encoded image data.
location Specifies the location, in twips, at which the image is to be inserted. This is a location relative to the top left corner of the complete document. All gaps between the pages must be included.
insertionMode Specifies how the text flow is handled.
callback Optional. The newly created image object is returned via this callback.
errorCallback Optional. Is called when the operation failed with an error. function.