addStickyNote

public final PdfTextAnnotation addStickyNote(float x, float y, String author, String subject, String contents)

Adds a sticky note (text) annotation to this page. The annotation is created with a default yellow color. Use the returned annotation's property to customize the color.

Return

The newly created .

Parameters

x

The x coordinate of the annotation in points.

y

The y coordinate of the annotation in points.

author

The author of the annotation.

subject

The subject of the annotation.

contents

The text contents of the annotation.

Throws

Thrown when no page is loaded.

Thrown when the operation fails.