1 Reply Latest reply on Mar 4, 2009 11:20 PM by BR001

    createDataObject and NewLine characters

    BR001 Adobe Community Professional & MVP
      I was hoping to create a attachment to my form using the Doc.setDataObjectContents method and this is working but I was also hoping to include a new line character in the contents of the attachment.

      There seems to be a number of characters that get filtered out including the carriage return (but not the tab character).

      I was expecting the following line to put each word on a separate line.

      this.createDataObject("MyData.txt", "This\nis\nsome\ndata.");

      Is there a trick to doing this? I'm using Acrobat 8.0.0

      Thanks

      Bruce