Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Server Developers
Viewing all articles
Browse latest Browse all 20709

.createTOC() every time use createBookmarks = true

$
0
0

Hello @all,

 

I have a problem with the following code to auto-update my TOCs in InDesign CS4:

 

var myDocument = app.activeDocument;

alert("createBookmarks: " + myDocument.tocStyles.itemByName("Kapitel 1").createBookmarks);  // --> this show me "false"

var myStory = myDocument.createTOC(myDocument.tocStyles.itemByName("Kapitel 1"), true /*replacing*/);

 

After this action I have entries from the TOC ("Kapitel 1") in my pdf bookmark? Why?

 

I also tried for test purpose the following:

myDocument.tocStyles.itemByName("Kapitel 1").duplicate();

 

This copy of my TOC has the option "pdf bookmars" on "true"?!

 

How can I force, that I get NO createBookmarks for this TOCs?

If I use manually "layout-->toc-formats-->update TOC" it works fine for me.

 

Regards,
Jessi


Viewing all articles
Browse latest Browse all 20709

Trending Articles



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