I have used to create Bookmark for all heading levels like (title,h1,h2 and h3). While adding this in a TOCStyle in the Indesign and using CreateTOC, the script crashes due to the Title tag tagged with separate frame.
Have anyone faced this issue before in creating Bookmark.
var doc = app.open("bookmark_generation.indd");
var tocStyle = doc.tocStyles.firstItem();
var stories = doc.createTOC(tocStyle, true, book, ["1in", "1in"], false);
Thanks in advance
Are you using any script for generating the TOC?
I have used the TOC style manually created in the indesign document with name "TOC".
If the first frame is linked with all text frame then there is no issues in generating Bookmark. It happens when we drag a textframe (chapter title textframe as first textframe) from the main textframe (i.e first page textframe).