Go Back   MarcomCentral (PTI) and FusionPro User Communities > Support > Issues, Questions, Etc.

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 10th, 2008, 08:03 AM
Bill McCarthy Bill McCarthy is offline
Forum n00b
 
Join Date: Oct 2008
Location: Illinois
Posts: 6
Default Text overflow problem

When I specify a variable field in a text box that contains more characters than will fit in the box, nothing prints. I have selected "discard text that does not fit" but it discards everything, even the text that fits. When I select "overflow text to new pages" it similarly overflows the entire text, not just the text that doesn't fit. Is there a way to remedy this?
Reply With Quote
  #2  
Old November 10th, 2008, 08:28 AM
Admin's Avatar
Admin Admin is offline
Administrator
 
Join Date: Oct 2007
Posts: 331
Default Re: Text overflow problem

Bill, can you tell us which version of FusionPro you are using, Mac/PC, etc?

Also, what happens if you select "Adjust text to fit"?

Thanks
__________________
Forum Administrator
PTI Marketing Technologies, Inc.
Reply With Quote
  #3  
Old November 10th, 2008, 08:32 AM
Alex Marshall's Avatar
Alex Marshall Alex Marshall is offline
FusionPro VDP Support
 
Join Date: Sep 2008
Location: Chicago,Illinois
Posts: 384
Default Re: Text overflow problem

Hello,
Is the text pulled in from a field in your data file? If so, try this option.
I'll try my best to answer your questions and walk you through the steps
quickly.

Below are the steps to take in Fusion Pro to create a formatted text
resource and then insert it into your rule.
1) Go to the following menu options in at the top of your tool bar in
fusion pro (FusionPro - Palettes - Steps)
2) When the "Steps" palette opens hit the second button down "Create
Resources". This will open the resource dialog box.
3) Name your resource something you can recognize. In the "Type" drop
down menu choose "Formatted Text". Hit the "Edit Button".
4) This will open a window that looks and works exactly as the variable
text frame editor so that you can add and format you paragraph along
with the variable. Once this is completed save and close out of all of
these windows. You have created a formatted text paragraph.
5) In the "Steps" palette go to the "Create Rule" option and create the
rule as you normally would. To insert the formatted text resource open
your "Building Blocks" and click on the tab at the top that says
"Resource". Your new formatted text resource should be listed here the
way that you named it and you can insert it exactly as you would insert
a variable field.
6) Then insert your rule into your variable text frame. Remember that
your rule will contain your paragraph.


Reply With Quote
  #4  
Old November 10th, 2008, 08:53 AM
Bill McCarthy Bill McCarthy is offline
Forum n00b
 
Join Date: Oct 2008
Location: Illinois
Posts: 6
Default Re: Text overflow problem

I'm using Version 5.1p1d on Windows.

The problem is that there are too many words in the paragraph. When it doesn't fit, it prints nothing. I want it to print what fits and truncate the rest. Since it is only one paragraph, that doesn't seem to work.
Reply With Quote
  #5  
Old November 11th, 2008, 12:32 PM
Alex Marshall's Avatar
Alex Marshall Alex Marshall is offline
FusionPro VDP Support
 
Join Date: Sep 2008
Location: Chicago,Illinois
Posts: 384
Default Re: Text overflow problem

If you want to fit text to a single line, you can just use the
CopyfitLine function.
If you want to fit to a different number of lines, you will need to roll
your own copyfit logic using the FusionProTextMeasure object.

Basically, most copyfitting involves iterations of measuring some text,
then modifying its size and measuring again, until it fits. The
<magnify> tag can be very helpful in this regard.
Here's a function that should work:


function CopyfitToLines(text, widthInPoints, numLines, magnifyType)
{
var MagnifyType = magnifyType || "text";
var NumLines = Int(numLines) || 1;
var tm = new FusionProTextMeasure;
tm.maxWidth = widthInPoints*100;
var retcode = 0;
var factor = 100;
var tags = text;

for (var factor = 100; factor >= 10; factor--)
{
if (factor != 100)
tags = "<magnify type=" + MagnifyType +
" factor=" + factor + ">" +
text + "</magnify>";
retcode = tm.CalculateTextExtent(tags);
if (tm.messages)
ReportError("CopyfitLines: " + tm.messages);
if (retcode != 0)
break;
if (tm.textLines <= NumLines)
return tags;
}
ReportWarning("CopyfitLines failed to fit the text");
return text;
}


The last two parameters are optional. Note that the font name, point
size, and anything else affecting the measurement must be specified in
the tags.
Here's an example of calling it:

var text = "<f name=Arial><z newsize=36>" +
Field("FName") + " " + Field("Lname") + " of " +
Field("City") + ", " + Field("State");
return CopyfitToLines(text, 200, 2);
Reply With Quote
  #6  
Old November 12th, 2008, 08:55 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,623
Default Re: Text overflow problem

It's hard to say what you need to change without looking at the job, since there are a lot of things that affect how text is kept together. I would start by taking a look at the "Widows" and "Keep with next paragraph" settings in the Paragraph Formatting dialog.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.