Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Re: How to get selected images?

$
0
0

If you want the anchored frames in a range of selected text, you would use

 

var textList = doc.GetTextForRange(doc.TextSelection, Constants.FTI_FrameAnchor);

 

If you want to get graphics that are selected as objects, you can use:

 

var graphic = doc.FirstSelectedGraphicInDoc;
while (graphic.ObjectValid()) {    // Do something here.    graphic = graphic.NextSelectedGraphicInDoc;
}

 

Rick


Viewing all articles
Browse latest Browse all 3715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>