How can we improve Adobe InDesign SDK

Table footnotes not indexed correctly

Table footnotes are not indexed correctly in two ways: to the script engine they appear in the wrong order and table footnotes have no .index property.

The attached document has one text frame with three footnotes in the main text and one table with one footnote. The table footnote is footnote 3. To reproduce the problem, do this:

1. Open the document.
2. Run this script against the document (in the ESTK):

fnotes = app.documents[0].stories[0].footnotes
for (i = 0; i < fnotes.length; i++) {
$.writeln (fnotes[i].contents)
}

3. Expected output:

. Note 1.
. Note 2.
. Note table.
. Note 4.

4. Actual output:

. Note 1.
. Note 2.
. Note 4.
. Note table.

Now do this, still with the same document:

app.documents[0].stories[0].footnotes[3].index

This returns an error. The error message is 'index'. Footnotes outside of tables correctly return their index as expected.

12 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Peter Kahrel shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base