2 Replies Latest reply on Jan 17, 2014 1:09 PM by tin_can_robot

    Changing Paragraph Style Export Tagging Options


      I'm having a heck of a time trying to get the "Split Document (EPUB only)" box checked for certain styles. I was hoping an experienced scripter may be able to help me solve what I'm sure is an easy fix.


      My code snippet is below:


      var doc = app.activeDocument;

      var par_styles = doc.paragraphStyles.everyItem().getElements();

      for (var i = 0; i < par_styles.length; i++) {

           par_styles[i].styleExportTagMap.splitDocument = true;



      In this example, I'd like to get the Split Document checkbox checked for every paragraph style in my document. However, apparently the paragraph style doesn't support the "styleExportTagMap" class, which is the only place I've found that the "splitDocument" property lives.


      I assume my ignorance arises from not knowing exactly what the styleExportTagMap(s) class does.


      Could anyone point me in the right direction?