1 Reply Latest reply on Jul 19, 2013 2:36 AM by Kasyan Servetsky

    Export Tagging

    Learner Learner Level 1

      Hi All,

       

      I have a docuemnt which has huge number of paragraph styles i need to change the the Tag: and Class: in the "Export tagging".

       

      Thanks in advance

      Learner

        • 1. Re: Export Tagging
          Kasyan Servetsky Level 5

          Here is an example:

           

          Main();
          
          function Main() {
              var i, parStyle, map,
              doc = app.activeDocument,
              parStyles = doc.allParagraphStyles;
              
              for (i = 2; i < parStyles.length; i++) { // i = 2 to skip [No Paragraph Style] & [Basic Paragraph]
                  parStyle = parStyles[i];
                  map = parStyle.styleExportTagMaps.add({exportType: "EPUB", exportTag: "p", exportClass: "test", exportAttributes: ""});
              }
          }