I want to insert a object, such as a polygon or a group of polygons, into the text of a textframe. How can I do that?
I am able to insert a graphic (e.g. indd) via the box.insertionPoints[x].place(graphic), but this is not what I need to achieve, because I do not want to use external file to be linked.
Thanks a lot for helping!
@Mirko – for InDesign CS5.5 and above:
myGroupOfPolygons is a Group object somewhere in the same document as the insertion point you want it to anchor to.
myInsertionPoint is a valid insertion point in the text frame you want to anchor the group.
myAnchorPosition is defined as one of three possible values:
AnchorPosition.ANCHORED is default, if the second argument of method insertAnchoredObject() is not used.
The exact position of the anchored object can be defined with some more properties of the anchoredObjectsSettings after using insertAnchoredObject().
Thanks a lot for your help, Uwe!