Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

Question regarding form field and multiline

$
0
0

Hi all,

 

Ive searched a lot for a solution for this question without any results. I have the following case, Im adding a field(textbox), from access via javascript in acrobat X ,in which I enter a string which may vary in lenght. I set the .multiline = true since the text may be longer then the .rect I have defined. When the text is longer a scrollbar is visible but I want to increase the height of the field so the entire text is shown. My problem is that I do not know when the multiline is triggered. So as I understand it there is no property for ex lines.count or anything that I can examine to see if more then one line is used. My initial workaround was to actually calculate the length i.e the number of chars before i need to increase the .rect, but as i see it the wrapper logic wraps on the first blank if present which makes this much harder to calculate. Also font name and size affects this calculation.So my question is are there any workarounds for this. Can I somehow see if there is more then one line in the textfield, ive checked for carriage return(chr(13) without any success in the Field.value, any help would be grately appreciated.


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>