We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Callout Arrows

With Aspose Words for Java, is there anyway to set where the arrow of a call out shape points to or is anchored?

Thanks

Hi Timothy,

Thank you for inquiry. I am afraid, there is no way to set the arrow of call out shape. I think, you can achieve this by using appropriate shape. For more details please visit documentations links below:

Shape

ShapeType

In case of any ambiguity, please let me know.

No I dont want to change the arrow, I’d like to make it to anchor in a different spot. For example when I create a Shape thats a wedge_rect_callout, the arrow starts out pointing down and to the left. I’d like to be able to have the arrow point up and to the right.

Thanks,

Tim

Hi Timothy,

Please use the following code snippet to create callout rectangle with arrow point up and to the right.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Create a callout shape.
Shape calloutShape = new Shape(doc, ShapeType.WEDGE_RECT_CALLOUT);
calloutShape.setWidth(200);
calloutShape.setHeight(100);
calloutShape.setRotation(180);
// Move document builder cursot to the position where you need to inser a callout.
builder.moveToDocumentStart();
// Insert callout shape.
builder.insertNode(calloutShape);
doc.save("D:\\AsposeOut.doc");