Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

font.lineThroughPeriod

Avatar

Level 3

Anyone know if font.lineThrough and font.lineThroughPeriod is broken in LCD 9, Acrobat 9?

I have a check box in a row, and if checked I'd like the data in the row to have a strikethrough.  Even in "simple testing" where I set up a simple textfield and checkbox this script is not working.  Even tried it in FormCalc.  Even tried it as a simple EXIT code on the textfield (this.font.lineThroughPeriod = "all";).  Nope.

?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

the lineThrough property has three numeric values:

  • 0 = no line through the text
  • 1 = a single line through
  • 2 = double line through.

So:

TextField1.font.lineThrough = "1"; 

would give you a single line through for TextField1.

Hope that helps,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

the lineThrough property has three numeric values:

  • 0 = no line through the text
  • 1 = a single line through
  • 2 = double line through.

So:

TextField1.font.lineThrough = "1"; 

would give you a single line through for TextField1.

Hope that helps,

Niall

Avatar

Level 3

Hi Niall -

Yeah, for some reason that was not working prior.  I had also tried the lineThroughPeriod and was not able to get it working.  I again tried it in a new PDF and it started working, then switched back to my main PDF and it worked.  Odd.  I noticed also I was using the CTRL + SHIFT method to put in full SOM expression and that was NOT working properly prior also.  Now it is putting in the correct SOM expression, so somethng must have been off.

Thanks