Class: PDFLinkService

PDFLinkService(options)

Performs navigation functions inside PDF, such as opening specified page, or destination.

Constructor

new PDFLinkService(options)

Parameters:
Name Type Description
options PDFLinkServiceOptions
Implements:
Source:

Members

externalLinkEnabled :boolean

Type:
  • boolean
Implements:
Source:

page :number

Type:
  • number
Implements:
Source:

page

Implements:
Source:

pagesCount :number

Type:
  • number
Implements:
Source:

rotation :number

Type:
  • number
Implements:
Source:

rotation

Implements:
Source:

Methods

cachePageRef(pageNum, pageRef)

Parameters:
Name Type Description
pageNum number page number.
pageRef Object reference to the page.
Implements:
Source:

executeNamedAction(action)

Parameters:
Name Type Description
action string
Implements:
Source:

getAnchorUrl(anchor) → {string}

Prefix the full url on anchor links to make sure that links are resolved relative to the current URL instead of the one defined in .
Parameters:
Name Type Description
anchor string The anchor hash, including the #.
Implements:
Source:
Returns:
The hyperlink to the PDF object.
Type
string

getDestinationHash(dest) → {string}

Parameters:
Name Type Description
dest string | Array The PDF destination object.
Implements:
Source:
Returns:
The hyperlink to the PDF object.
Type
string

isPageVisible(pageNumber)

Parameters:
Name Type Description
pageNumber number
Implements:
Source:
Parameters:
Name Type Description
dest string | Array The named, or explicit, PDF destination.
Implements:
Source:

setHash(hash)

Parameters:
Name Type Description
hash string
Implements:
Source: