Answered
how to figure anchoring in indesign javscript
how to figure anchoring in indesign javscript
how to figure anchoring in indesign javscript
Hi rajas15536079,
You can use this line to anchor you image rectangle to specific insertion point like this:
currentImageRectangle.anchoredObjectSettings.insertAnchoredObject(currentTextFrame.insertionPoints[0], AnchorPosition.ABOVE_LINE);
// Or
currentImageRectangle.anchoredObjectSettings.insertAnchoredObject(currentTextFrame.insertionPoints[0], AnchorPosition.ANCHORED);
// Or
currentImageRectangle.anchoredObjectSettings.insertAnchoredObject(currentTextFrame.insertionPoints[0], AnchorPosition.INLINE_POSITION);
Best
Sunil
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.