For the complete documentation index, see llms.txt. This page is also available as Markdown.

Freeform rotation for PDF annotations

Line, Polygon, Polyline, Freehand, Ellipse, Rectangle, Stamp, FreeText annotations show a rotation control when selected. This control handle lets the user rotate the annotation with a full range (360 degrees).

Rotating annotations programmatically

To rotate annotations programmatically, supported annotations have a rotate function that takes an angle to rotate by:

Disabling freeform rotation

By default, freeform rotation is enabled for all Line, Polyline, Polygon or Freehand annotations. In order to disable it, the following can be done:

Using the setRotationOptions API, then you can disable rotation completely. If you would like to disable free form rotation on certain annotations, then the following can be used instead:

Vice-versa, to enable rotation controls, you would use the enableRotationControl API.

Configuring freeform rotation options

If you would like to configure the rotation type and rotation step sizes, that can be done with the same setRotationOptions API.

Last updated

Was this helpful?