     @_computeLineHeight pageNumber
 
     for segmentsIndices in @_splitSections pageNumber
-      @_processParagraph pageNumber, segmentsIndices
+      @_processSection pageNumber, segmentsIndices
 
     # For debugging
     @_showParagraphs pageNumber

  setTextContent: (pageNumber, textContent) =>
    @_pages[pageNumber - 1].textContent = textContent

  _dy: (pageNumber, i) =>
    page = @_pages[pageNumber - 1]
    page.textSegments[i + 1].top - page.textSegments[i].top

  _computeLineHeight: (pageNumber) =>
    page = @_pages[pageNumber - 1]


    left + (right - left) * SECTION_INDENT_THRESHOLD

  _splitParagraphs: (pageNumber, segmentsIndices, sectionIndentThreshold) =>
    page = @_pages[pageNumber - 1]

    s = 0
    paragraphs = []
    for j in [1...segmentsIndices.length]
      segment = page.textSegments[segmentsIndices[j]]

      if @_dy(pageNumber, segmentsIndices[j - 1], segmentsIndices[j]) > page.lineHeight * SPLIT_PARAGRAPH_THRESHOLD and segment.left > sectionIndentThreshold
        paragraphs.push segmentsIndices[s...j]
        s = j

    paragraphs.push segmentsIndices[s..segmentsIndices.length]
    console.log paragraphs
    paragraphs

  _processParagraph: (pageNumber, segmentsIndices) =>
