This REST API adds a DrawingObject.

The request is an HTTP request with multipart content (see RFC 2046 or RFC 1341). The first part of the multipart content contains the drawing object data and the second contains a binary image.

The important parameters are described in the following table:

Parameter Name Type Description
RelativeHorizontalPosition Aspose.Words.Drawing.ShapeBase.RelativeHorizontalPosition Specifies where the distance to the image is measured.
RelativeVerticalPosition Aspose.Words.Drawing.ShapeBase.RelativeVerticalPosition Specifies where the distance to the image is measured.
Left double Distance in points from the origin to the left side of the image.
Top double Distance in points from the origin to the top side of the image.
Width double Width of the drawing objects in points.
Height double Height of the drawing object in points.
WrapType Aspose.Words.Drawing.ShapeBase.WrapType Specifies how to wrap text around the image.


The following URIs are used to address REST resources:


, where:

  • {file-name} is a filename of a document.
  • {nodePath} is a path to a node in a document. If this parameter is used, elements contained within a specified node will be processed:
    • sections/{sectionIndex} - references a section.
    • paragraphs/{paragraphIndex} - references a paragraph.
    • sections/{sectionIndex}/paragraphs/{paragraphIndex} - references a paragraph within a section.
  • {index} is an index of a drawing object.

The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser. 

You can use cURL command-line tool to access Aspose.Words web services easily. The following example shows how to make calls to Cloud API with cURL.

Cloud SDK Family

Using an SDK is the best way to speed up the development. An SDK takes care of low-level details and lets you focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Words Cloud SDKs.

The following code examples demonstrate how to make calls to Aspose.Words web services using various SDKs: