How can I determine, if the free text annotation was created by clicking on page or after drawing a rectangle?

According to documentation FreeText & Callout Annotations in WebViewer | Apryse SDK

FreeText annotations created through the FreeTextCreateTool can be created one of two ways: drawing a rectangle or by clicking.

How can I determine, if the free text annotation was created by clicking on page or after drawing a rectangle?

annotationAdded and annotationCreate events don’t provide such information

1 Like

Hi @mturenko87,

The key difference is delineated in this part of the guide:

By creating a FreeText annotation by drawing a rectangle, it has a fixed size and does not autosize to content. The latter will resize relative to the content.

So what you can do, is check whether your free text is auto sized or not, using the following method: isAutoSized. This will indicate to you if it was created with a click, or by drawing (or if the property to autosize was set in another manner).

Best Regards,
Armando Bollain
Software Developer
Apryse Software Inc.

1 Like

Thank you.
It solved the problem

1 Like