setDestination

public final void setDestination(int pageNumber, Float x, Float y)

Sets the link destination to navigate to a specific page in the document. This method creates a GoTo action that navigates to the specified page. The coordinates specify where on the page the view should scroll to.

Parameters

pageNumber

The 1-based destination page number.

x

Optional X coordinate on the destination page. If null, the view scrolls to the top-left.

y

Optional Y coordinate on the destination page. If null, the view scrolls to the top-left.