Search the Community
Showing results for tags 'text frame'.
-
I have a client requesting a task I am unsure how to implement. There is a text frame of variable content. By default I allowed text to shrink to fit a frame, but the client is asking for the text box to shrink to the size of the text... or expand if necessary. Is that even possible?
-
Greetings all, We are stumped on a copyfit issue, and would appreciate any help you may be able to give. Here is the rule and the issue below. thanks so much in advance for any help!!!! OnCopyfit Rule: Rule("OnCopyfit") if (FusionPro.Composition.CurrentFlow.name == "Event"); MagnifyAttributes("Event", 0, 400, 6, 0); if (FusionPro.Composition.CurrentFlow.name == "Special Message"); MagnifyAttributes("Special Message", 25, 400, 6, 72); ReportWarning("Could not copyfit text in flow " + FusionPro.Composition.CurrentFlow.name); In the Text frame “Event” under paragraph formatting, I have the box for “Do not break on copyfit” checked and under Overflow Options I have Adjust text to fit checked along with Allow text to expand to fill. So ideally, I would like whatever the customer types in to the box to fill the box and stay on one line However, right now it is breaking into two lines and discarding the text that doesn’t fit. screen shot attached
-
Hello All, I found a post from Dan that got me 40-50% of the way to my goal, but I am struggling as I am a total Noob. I am working with a project that has up to 1200 different versions/ possible pages, front and back. Each page can have up to 50 variables, all in various locations. I am trying to make this as simple as possible, and found this code from a previous post which showed promise. data = new ExternalDataFileEx('/path/to/data.csv',','); for (var i=1; i<=data.recordCount; i++) { var frame = FindTextFrame(data.GetFieldValue(i, 'Frame')); var att = ['width','height','x','y']; for (var n in att) if (a = data.GetFieldValue(i, att[n])) frame[att[n]] = a; frame.content = RawTextFromTagged(CreateResource(data.GetFieldValue(i, 'content')).content); } Catch is that I am trying to use Formatted Text Resources, to make the fonts easier to manage, in the content location. All I can think to do is create a huge amount of Switch statements that control the FTR being matched to the Version codes I have and then calling that rule in the 'frame.content' part of this code. Sorry if I am losing anyone, this is not an easy task and has so many moving parts.
-
- external data
- formatted text resource
-
(and 3 more)
Tagged with:
-
Hi all, I'm trying to find out if it's possible to get the name of the current text frame (for example "01") so I can then use it in the rule. In other words, it'd be great if the FindTextFrame() function could be used to find the name of the current text frame, as opposed to the name of the specific text frame that one passes in the function. Here's the scenario: I have 18 pages with 8 text frames on each, and I'd like to be able to use only one rule that uses the frame names as variables to modify the specifics of the rule, as opposed to having to write one distinct rule for each of the 144 text frames. Hope this is clear, let me know if not and I can provide more info. Thanks! Julian