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 copied from the Mozilla pdf.js project (https://github.com/mozilla/pdf.js).
Provides a "search" or "find" functionality for the PDF.This object actually performs the search for a given string.
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Members
-
active :boolean
-
If active, find results will be highlighted.
Type:
- boolean
- Default Value:
- false
- Source:
-
dirtyMatch :boolean
-
Type:
- boolean
- Default Value:
- false
- Source:
-
extractTextPromises :array
-
Type:
- array
- Default Value:
- []
- Source:
-
findTimeout :number
-
Type:
- number
- Default Value:
- null
- Source:
-
integratedFind :boolean
-
Type:
- boolean
- Default Value:
- false
- Source:
-
pageContents :array
-
Stores the text for each page.
Type:
- array
- Default Value:
- []
- Source:
-
pageMatches :array
-
Type:
- array
- Default Value:
- []
- Source:
-
pdfPageSource :object
-
Type:
- object
- Default Value:
- null
- Source:
-
pendingFindMatches :object
-
Type:
- object
- Default Value:
- {}
- Source:
-
resumePageIdx
-
- Default Value:
- null
- Source:
-
startedTextExtraction :boolean
-
Type:
- boolean
- Default Value:
- false
- Source:
-
state
-
- Default Value:
- null
- Source:
Methods
-
advanceOffsetPage()
-
calcFindMatch()
-
constructor()
-
extractText()
-
handleEvent()
-
matchesReady()
-
nextMatch()
-
nextPageMatch()
-
reset()
-
updateMatch()
-
updatePage()
-
updateUIState()
-
Fires: