function generateSections(value) {
  function pushToSection(sections, index, rowData) {
    if (Object.prototype.hasOwnProperty.call(sections, index)) {
      sections[index].push(rowData);
    } else {
      sections[index] = [];
      sections[index].push(rowData);
    }
  }
  const sections = {};
  let sectionIndex = 0;
  for (let row = 0; row < value.length; row++) {
    const rowData = value[row];
    if (rowData.lineType === constants.PDFDocumentLineType.END_LINE) {
      sectionIndex++;
      continue;
    }
    pushToSection(sections, sectionIndex, rowData);
  }
  return sections;
}
// generateSections : Generates sections to ease handling of cases in COLUMN_INFO and META_INFO
generateSections : Generates sections to ease handling of cases in COLUMN_INFO and META_INFO
generateSections : Generates sections to ease handling of cases in COLUMN_INFO and META_INFO
function generateSections(value) {
  function pushToSection(sections, index, rowData) {
    if (Object.prototype.hasOwnProperty.call(sections, index)) {
      sections[index].push(rowData);
    } else {
      sections[index] = [];
      sections[index].push(rowData);
    }
  }
  const sections = {};
  let sectionIndex = 0;
  for (let row = 0; row < value.length; row++) {
    const rowData = value[row];
    if (rowData.lineType === constants.PDFDocumentLineType.END_LINE) {
      sectionIndex++;
      continue;
    }
    pushToSection(sections, sectionIndex, rowData);
  }
  return sections;
}
function generateSections ( value ) { function pushToSection ( sections , index , rowData ) { if ( Object . prototype . hasOwnProperty . call ( sections , index ) ) { sections [ index ] . push ( rowData ) ; } else { sections [ index ] = [ ] ; sections [ index ] . push ( rowData ) ; } } const sections = { } ; let sectionIndex = 0 ; for ( let row = 0 ; row < value . length ; row ++ ) { const rowData = value [ row ] ; if ( rowData . lineType === constants . PDFDocumentLineType . END_LINE ) { sectionIndex ++ ; continue ; } pushToSection ( sections , sectionIndex , rowData ) ; } return sections ; }
generateSections : Generates sections to ease handling of cases in COLUMN_INFO and META_INFO
generateSections : Generates sections to ease handling of cases in COLUMN_INFO and META_INFO