Some test text!

menu
Freeform rotationkeyboard_arrow_down

Freeform rotation for annotations

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

freeform_rotation_polygon_annotation

linkDisabling 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:

Webviewer(...)
  .then(instance => {
    const { annotManager } = instance;
    
    annotManager.on('annotationChanged', (annotations, action) => {
      if (action === 'add') {
        annotations.forEach((annotation) => {
          annotation.setRotationControlEnabled(false);
        });
      }
    });
  });

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

Join our upcoming webinar to learn about how to collaborate on videos frame by frame directly in your browser

Save your seat
close