Parameters
- currentPageIndex
- 0-based index of the page containing the current link target. This is used for relative targets (such as previous page) and may be -1 if there is no current page in the current context, or the link target is absolute.
- document
- The document containing the current link target.
Return Value
The DocumentLocation containing the target location.