PDF4Java Reference Documentation
com.o2sol.pdf4java.annotations Package / PDFAnnotation Class / setRotation Method
The annotation rotation angle in degrees.
Collapse All Expand All
In This Topic

setRotation Method
In This Topic
Sets the annotation rotation angle.
The accepted values for this property are 0, 90, 180 and 270 degrees.
Syntax

    public void setRotation(
       int rotation
    )

#### Parameters

rotation
  The annotation rotation angle in degrees.

Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | When the value being set is not one of the accepted values.

See Also

#### Reference

PDFAnnotation Class
PDFAnnotation Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.