Some test text!

menu
FreeHandAnnotation creation delaykeyboard_arrow_down

FreeHandAnnotation creation delay

When creating a FreeHandAnnotation with WebViewer, there is an intentional delay applied to allow users to create the annotation with multiple strokes. Strokes within the short delay will be treated as part of the same annotation. Beyond the delay, strokes will be treated as a separate annotation. Take for example when drawing an 'X' on the page. Drawing it normally or quickly will ensure the two strokes are part of the same annotation. On the other hand, drawing one stroke and then waiting for more than one second before drawing the second stroke will get you two annotations: one for each stroke.

Delay demo

Due to the delay, the annotationChanged event will be delayed by some amount of time. This can be adjust by modifying the delay amount through the FreeHandAnnotation class prototype:

Tools.FreeHandCreateTool.prototype.createDelay = 0;

Note that removing the delay will make it difficult, if not impossible, to create annotations with multiple strokes.

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 live demo to learn about use cases & capabilities for WebViewer

Learn more
close