private void copyToArrays(){
  colorExtracted=pdf_data.isColorExtracted();
  final int count=pdf_data.getRawTextElementCount();
  isUsed=new boolean[count];
  fontSize=new int[count];
  writingMode=new int[count];
  spaceWidth=new float[count];
  content=new StringBuilder[count];
  textLength=new int[count];
  f_x1=new float[count];
  f_colorTag=new String[count];
  f_x2=new float[count];
  f_y1=new float[count];
  f_y2=new float[count];
  for (int i=0; i < count; i++) {
    content[i]=new StringBuilder(pdf_data.contents[i]);
    fontSize[i]=pdf_data.f_end_font_size[i];
    writingMode[i]=pdf_data.f_writingMode[i];
    f_x1[i]=pdf_data.f_x1[i];
    f_colorTag[i]=pdf_data.colorTag[i];
    f_x2[i]=pdf_data.f_x2[i];
    f_y1[i]=pdf_data.f_y1[i];
    f_y2[i]=pdf_data.f_y2[i];
    spaceWidth[i]=pdf_data.space_width[i];
    textLength[i]=pdf_data.text_length[i];
  }
}

private void copyToArrays ( ) { colorExtracted = pdf_data . isColorExtracted ( ) ; final int count = pdf_data . getRawTextElementCount ( ) ; isUsed = new boolean [ count ] ; fontSize = new int [ count ] ; writingMode = new int [ count ] ; spaceWidth = new float [ count ] ; content = new StringBuilder [ count ] ; textLength = new int [ count ] ; f_x1 = new float [ count ] ; f_colorTag = new String [ count ] ; f_x2 = new float [ count ] ; f_y1 = new float [ count ] ; f_y2 = new float [ count ] ; for ( int i = 0 ; i < count ; i ++ ) { content [ i ] = new StringBuilder ( pdf_data . contents [ i ] ) ; fontSize [ i ] = pdf_data . f_end_font_size [ i ] ; writingMode [ i ] = pdf_data . f_writingMode [ i ] ; f_x1 [ i ] = pdf_data . f_x1 [ i ] ; f_colorTag [ i ] = pdf_data . colorTag [ i ] ; f_x2 [ i ] = pdf_data . f_x2 [ i ] ; f_y1 [ i ] = pdf_data . f_y1 [ i ] ; f_y2 [ i ] = pdf_data . f_y2 [ i ] ; spaceWidth [ i ] = pdf_data . space_width [ i ] ; textLength [ i ] = pdf_data . text_length [ i ] ; } }
put raw data into arrays for quick merging breakup_fragments shows if we break on vertical lines and spaces
