addStamp

public final PdfStampAnnotation addStamp(float x, float y, float width, float height, String title, String contents)

Adds a rubber stamp annotation to this page. The annotation is created with a default "Draft" stamp style and red color. Use the returned annotation's properties to customize the stamp style and color.

Return

The newly created .

Parameters

x

The x coordinate of the stamp in points.

y

The y coordinate of the stamp in points.

width

The width of the stamp in points.

height

The height of the stamp in points.

title

The title of the annotation.

contents

The text contents of the annotation.

Throws

Thrown when no page is loaded.

Thrown when the operation fails.