1 Reply Latest reply on Nov 8, 2009 12:58 AM by Harbs.

    script for load paragraph and character style

    Mac_06 Level 2

      Hello folks


      Could someone look into this, As i am bit primitive in scripting

      i need a script for append paragraph and character style from one template to another.


      Many thanks in advance

        • 1. Re: script for load paragraph and character style
          Harbs. Level 6

          Given a reference to a targetDoc and a File reference to the source



          var charImport = ImportFormat.CHARACTER_STYLES_FORMAT;
          var paraImport = ImportFormat.PARAGRAPH_STYLES_FORMAT;
          var clashPolicy = GlobalClashResolutionStrategy.LOAD_ALL_WITH_OVERWRITE;
          targetDoc.importStyles(charImport, sourceFile, clashPolicy);
          targetDoc.importStyles(paraImport, sourceFile, clashPolicy);