       page.textSegmentsDone = true
 
       @_enableHighligts pageNumber
-
-      @_showSegments pageNumber
 
     appendText: (geom) =>
       page.textSegments.push PDFJS.pdfTextSegment page.textContent, page.textSegments.length, geom


  _showHighlight: (pageNumber, start, end) =>

  _openHighlight: (pageNumber, highlightStartIndex, highlightEndIndex) =>

  _closeHighlight: (pageNumber) =>


    # Highlights already enabled for this page
    return if page.highlightsEnabled
    page.highlightsEnabled = true

    # For debugging
    #@_showSegments pageNumber

    $canvas = $("#display-page-#{ pageNumber } canvas")

