carloscastro Posted April 11, 2016 Share Posted April 11, 2016 Hello. My knowledge on java is very limited, with that being said, here's the question. I'm trying to achieve this. When the text is bigger than 1 line, the graphic underneath needs to have the same height dimensions than the 2 lines text, here's the screenshot of the graphic, can you tell me if this is possible? and how? thanks Quote Link to comment Share on other sites More sharing options...
tou Posted April 11, 2016 Share Posted April 11, 2016 You can setup both scenario naming the pages "Inova 1" and "Inova 2" respectively. In OnRecordStart rule, set page usage accordingly. Scripting can be done as follows: if (2 LINE CRITERIA IS TRUE) { FusionPro.Composition.SetBodyPageUsage("Inova 2", true); FusionPro.Composition.SetBodyPageUsage("Inova 1", false); } else { FusionPro.Composition.SetBodyPageUsage("Inova 1", true); FusionPro.Composition.SetBodyPageUsage("Inova 2", false); I'm sure there are better ways of doing it.... Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted April 11, 2016 Share Posted April 11, 2016 If the graphic were just a solid fill, it would be easy enough to add the text to a table with a single cell filled with that color. For the gradient, it's a bit more complicated. I would use the FusionProTextMeasure object to determine the height of the text, then place the graphic inline in a separate text frame with the space before set to the height of the text. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.