2 Replies Latest reply on Mar 17, 2009 3:00 PM by Loic.Aigon

    [JS CS3/4] >How to Insert a page break (^P)  via scripting ?

    Loic.Aigon Adobe Community Professional
      I would like to use that command for placing a pagebreak after a xml element but the string is just considered as plain text.
      Is it possible to do so ?

      myRoot.xmlElements[0].xmlElements[1].insertTextAsContent ("^P", XMLElementPosition.AFTER_ELEMENT)

      I tried \^P but get strange result. The backslash does not appear but the string ^P does.

      Any ideas ?

      Thanks in advance.