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.
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Members
-
<inner> FIND_SCROLL_OFFSET_TOP
-
Copied from pdf.js viewer.
- Source:
Methods
-
appendText()
-
constructor()
-
- Source:
-
convertMatches()
-
renderLayer()
-
- Source:
-
renderMatches()
-
setTextContent()
-
setupRenderLayoutTimer()
-
updateMatches()