You are viewing limited content. For full access, please sign in.

Question

Question

Annotation font auto-size?

SDK
asked on November 1, 2019

I'm trying to bring annotations from another document management system into Laserfiche. The SQL table holding the annotations for the old system does not seem to have anything about the font size, and it appears that it auto-sizes based on the amount of text and the size of the annotation box.

 

I'm trying to bring that into LF as a TextBoxAnnotation. I can specify the exact same x- and y-coordinates and the same height and width for the actual text box, but when it comes to the size of the font I'm not sure what I can do. It defaults to 12-point font which is way too big in some cases, but correct in other cases. Is there some way to auto-size the font based on the size of the box and the amount of text, or possibly some other solution to this issue?

0 0

Replies

replied on November 4, 2019

If you were using Workflow to do this, you could have some conditionals to choose the font size of your text boxes, similar to the below screenshot:


Alternately, you should be able to use the TextSize property of TextBoxAnnotation to set the size of the text, presumably also conditionally based on the length of the text.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.