addLink

public final PdfLinkAnnotation addLink(float x, float y, float width, float height)

Adds an empty link annotation to this page. Use the returned annotation's property or method to configure the link target. The annotation is created with no action or destination. You must set either for external links or call for internal page links.

Return

The newly created .

Parameters

x

The x coordinate of the link area in points.

y

The y coordinate of the link area in points.

width

The width of the link area in points.

height

The height of the link area in points.

Throws

Thrown when no page is loaded.

Thrown when the operation fails.