4 Replies Latest reply on Jul 6, 2009 6:51 AM by stevewareham

    Increasing string length limit past 8192 characters

    stevewareham Level 1

      I'm trying to read the content of a stream as string using the readStream.read() method. I'm reading a fairly large CSV file and the read() function always stops at character 8192. I think this might be a limit on the length of a string. Does anyone know how I can increase this limit in JavaScript for Acrobat?

       

      Code I'm using:

       

      this.importDataObject("myData", "./data.csv");
      var myData = this.getDataObject("myData");

       

      var oFile = this.getDataObjectContents("myData");

      var myStream = oFile.read();
      console.println ("myStream length = " + myStream.length)