Module: alfresco/preview/PdfJs/PDFFindController

alfresco/preview/PdfJs/PDFFindController

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.

Author:
  • Dave Draper
  • Will Abson
  • Kevin Roast
License:
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: