I have some simple code attempting to insert an image at a certain bookmark, like this:
Stream stream = new MemoryStream(document);
Aspose.Words.Document doc = new Aspose.Words.Document(stream);
Aspose.Words.DocumentBuilder docbuild = new Aspose.Words.DocumentBuilder(doc);
docbuild.MoveToBookmark(bookmark, true, false);
Aspose.Words.Drawing.Shape shape = docbuild.InsertImage(signature);
shape.WrapType = Aspose.Words.Drawing.WrapType.None;
shape.Width = (shape.Width / shape.Height) * height;
shape.Height = height;
Instead of inserting it at the correct position in the document, it inserts the image at the left margin, ignoring the horizontal position. This is as though it inserts it at the beginning of the paragraph the bookmark is in, not at the actuall bookmark.
The place I am trying to insert it at is after a chunk of text that has several tabs before it on the line.
This seems like it may be a bug to me, or I do not exactly understand the system
Thank you for any help.