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

Re: Table footnotes

$
0
0

Hi Klaus, There is no special table footnote object in FrameMaker. There are two ways to get to table footnotes:

 

1) Loop through all of the document's Fn objects.

 

var doc = app.ActiveDoc;
var fn = doc.FirstFnInDoc;
while (fn.ObjectValid()) {  // ... Do something here.  fn = fn.NextFnInDoc;
}

 

This is the simplest method, but the internal list may not be in document order.

 

2) Process the paragraphs in document order, and for each paragraph, get a list of footnote anchor objects. I don't have time to code this in ExtendScript, but here is how it looks with FrameScript:

 

Set oPgf = TextSelection.Begin.Object;
Get TextList InObject(oPgf) FnAnchor NewVar(tTextList);
Loop While(i <= tTextList.Count) LoopVar(i) Init(1) Incr(1)  Set oFn = tTextList[i].TextData;  // Do something with the footnote here.
EndLoop

Viewing all articles
Browse latest Browse all 3715

Trending Articles



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