This module was extracted from the PdfJs previewer plugin that was originally a Share Extras (http://share-extras.github.io/) project and later integrated into Alfresco Share 5.0. It was created exclusively to support the Aikau PdfJs module.
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Extends
Methods
-
_setPageSize()
-
Set page container size
- Source:
-
constructor()
-
Instantiates a new page, ready to be rendered.
- Source:
-
getRegion() → {object}
-
Get the region in the document taken by this page
- Source:
Returns:
Object containing region dimensions- Type
- object
-
getTextContent()
-
Get the text content of the page. Used by find
- Source:
-
getVPos()
-
Get the vertical position of the page relative to the top of the parent element. A negative number means that the page is above the current scroll position, a positive number means it is below.
- Source:
Returns:
The vertical position of the page relative to the top of the parent element -
render()
-
Render a specific page in the container. This does not render the content of the page itself, just the container divs.
- Source:
-
renderContent()
-
Render page content
- Source:
-
renderFn()
-
- Source:
-
reset()
-
Remove page canvas and reset dimensions
- Source:
-
scrollIntoView()
-
Scroll the page into view
- Source: