Forum Discussion

NisHera's avatar
NisHera
Valued Contributor
7 years ago
Solved

splitting PDF text to array

Hi, I'm testing PDF file using PDFBox java class. Everything properly set up and could strip text from pdf. But problem is converting text to array...my function is like below   function ABCD(){...
  • HKosova's avatar
    7 years ago

    Hi NisHera,

     

    This looks very similar to the array issue discussed in this thread. Try replacing

    var textArray = text.split('\r');

    with

    var textArray = text.split('\r').OleValue.toArray();

    and see if it helps.