add Underline
public final PdfUnderlineAnnotation addUnderline(float x, float y, float width, float height, String author, String contents)
Adds an underline annotation to this page. The annotation is created with a default green color. Use the returned annotation's property to customize the color.
Return
The newly created .
Parameters
x
The x coordinate of the underline area in points.
y
The y coordinate of the underline area in points.
width
The width of the underline area in points.
height
The height of the underline area in points.
author
The author of the annotation.
contents
The text contents/comment for the annotation.
Throws
Thrown when no page is loaded.
Thrown when the operation fails.