WebViewer Version: “@pdftron/webviewer”: “^10.5.0”,
I am creating a text annotation where the text content doesn’t fit inside the annotation.
I need to determine if all my content is visible inside the annotation or if the annotation will cut off some part of the content.
If the text content doesn’t fit within the annotation, is there a method to automatically resize only the height of my annotation based on the content height?
So, I need two solutions:
- Check if the text content fits the annotation.
- Resize the annotation height based on the content height.
For second problem I can use something like
annotation.resize(annotation.getRect())
where annotation will be with updated height. But perhaps there are some simple solution.
Thanks