Module: alfresco/preview/PdfJs/TextLayerBuilder

alfresco/preview/PdfJs/TextLayerBuilder

This code was adapted from a Share Extras (http://share-extras.github.io/) project and was then integrated into Alfresco Share for version 5.0. That code was in turn originally adapted from the Mozilla pdf.js project (https://github.com/mozilla/pdf.js).

TextLayerBuilder provides text-selection functionality for the PDF. It does this by creating overlay divs over the PDF text. This divs contain text that matches the PDF text they are overlaying. This object also provides for a way to highlight text that is being searched for.

Author:
  • Dave Draper
  • Will Abson
  • Kevin Roast
License:
Source:

Members

<inner> FIND_SCROLL_OFFSET_TOP

Copied from pdf.js viewer.
Source:

Methods

appendText()

Source:

constructor()

Source:

convertMatches()

Source:

renderLayer()

Source:

renderMatches()

Source:

setTextContent()

Source:

setupRenderLayoutTimer()

Source:

updateMatches()

Source: