add Highlight
public final PdfHighlightAnnotation addHighlight(float x, float y, float width, float height, String author, String contents)
Adds a highlight 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 highlight area in points.
y
The y coordinate of the highlight area in points.
width
The width of the highlight area in points.
height
The height of the highlight 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.