Jump to content

2 line text, 1 line text, background same height

Recommended Posts



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?





Link to comment
Share on other sites

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:



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....

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...