Skip to main content
February 25, 2020
Answered

how to figure anchoring in indesign javscript

  • February 25, 2020
  • 1 reply
  • 391 views

how to figure anchoring in indesign javscript

This topic has been closed for replies.
Correct answer Sunil Yadav

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

1 reply

Sunil Yadav
Sunil YadavCorrect answer
Legend
February 25, 2020

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