Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > FusionPro® VDP Creator

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 22nd, 2011, 09:11 AM
James.Lee@DG3.com James.Lee@DG3.com is offline
Junior Community Member
 
Join Date: May 2010
Posts: 25
Default Auto-fit and Text wrap bug?

I have a project with variable names in a letter that has been running for over a year now. Auto-fit has the standard settings.

Up until now, I have used "SetPage" to switch between a page with a text wrap around a graphic in the static offset print, and a page that does not have a text wrap.

The client has new logic that would require the text wrap around the graphic frame to be dynamically suppressed. I set it up to coincide with the the "SetPage" logic. But now the Auto-fit does not function.

Here is the code I used:
SO1 = Page with offer pre-printed. And Tray Call 1.
SN2 = Page with no offer pre-printed, but dynamically inserted. And Tray call 2
SH3 = Page with 2 graphics, one of them static. And Tray call 2.

Quote:
var type = (Rule("Paper Selection Rule"))

if (type == "SO1")
{
FusionPro.Composition.SetBodyPageUsage("SO1", true);
FusionPro.Composition.SetBodyPageUsage("SN2", false);
FusionPro.Composition.SetBodyPageUsage("SH3", false);
FindGraphicFrame("Coupon1").textWrap = true;
FindGraphicFrame("Coupon1").suppress = true;}

if (type == "SN2")
{
FusionPro.Composition.SetBodyPageUsage("SO1", false);
FusionPro.Composition.SetBodyPageUsage("SN2", true);
FusionPro.Composition.SetBodyPageUsage("SH3", false);
FindGraphicFrame("Coupon1").textWrap = false;
FindGraphicFrame("Coupon1").suppress = false;}


if (type == "SH3")
{
FusionPro.Composition.SetBodyPageUsage("SO1", false);
FusionPro.Composition.SetBodyPageUsage("SN2", false);
FusionPro.Composition.SetBodyPageUsage("SH3", true);
FindGraphicFrame("Coupon1").textWrap = true;
FindGraphicFrame("Coupon1").suppress = false;}

if (type == "SNN")
{
FusionPro.Composition.SetBodyPageUsage("SO1", false);
FusionPro.Composition.SetBodyPageUsage("SN2", true);
FusionPro.Composition.SetBodyPageUsage("SH3", false);
FindGraphicFrame("Coupon1").textWrap = true;
FindGraphicFrame("Coupon1").suppress = false;}
Reply With Quote
  #2  
Old December 22nd, 2011, 01:25 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,504
Default Re: Auto-fit and Text wrap bug?

Quote:
Originally Posted by James.Lee@DG3.com View Post
But now the Auto-fit does not function.
What exactly does this mean? What is the failure? Do you get an error message? What is the expected output, and what is the actual output?
__________________
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
  #3  
Old December 22nd, 2011, 01:45 PM
James.Lee@DG3.com James.Lee@DG3.com is offline
Junior Community Member
 
Join Date: May 2010
Posts: 25
Default Re: Auto-fit and Text wrap bug?

Quote:
What exactly does this mean? What is the failure?
My apologies for not being clear. The failure is that the Overflow Options > Adjust text to fit does not Adjust text to fit.

Quote:
Do you get an error message?
There is no error message.

Quote:
What is the expected output, and what is the actual output?
The expected output is that it would continue to function as it always had. We went through several rounds with the client to ensure the text spaced out appropriately across the document nearly a year ago, and it has functioned properly since then.

When I added the "FindGraphicFrame" function to create a page that would turn the text wrap on and off, the copy spacing stopped generating properly. All text adjusted to the same smaller setting that left a lot of white space at the bottom of the document.

I found a work around by clicking "Allow text to expand to fill" but it required further adjusting of the "Copy Fit" callback to ensure that the previously approved layouts were not adjusted to a larger size.

Even though I found a way around it, I would like to know if there is an error in the code, or something I could have done differently to prevent it from occurring on other jobs.

edit note: i made adjustments to the code because the text wrap wasn't functioning correctly with "Coupon1" on each page.
Quote:
var type = (Rule("Paper Selection Rule"))

if (type == "SO1")
{
FusionPro.Composition.SetBodyPageUsage("SO1", true);
FusionPro.Composition.SetBodyPageUsage("SN2", false);
FusionPro.Composition.SetBodyPageUsage("SH3", false);
FindGraphicFrame("Coupon1").textWrap = true;
FindGraphicFrame("Coupon1").suppress = true;}

if (type == "SN2")
{
FusionPro.Composition.SetBodyPageUsage("SO1", false);
FusionPro.Composition.SetBodyPageUsage("SN2", true);
FusionPro.Composition.SetBodyPageUsage("SH3", false);
FindGraphicFrame("Coupon2").textWrap = false;
FindGraphicFrame("Coupon2").suppress = true;}


if (type == "SH3")
{
FusionPro.Composition.SetBodyPageUsage("SO1", false);
FusionPro.Composition.SetBodyPageUsage("SN2", false);
FusionPro.Composition.SetBodyPageUsage("SH3", true);
FindGraphicFrame("Coupon3").textWrap = true;
FindGraphicFrame("Coupon3").suppress = false;}

if (type == "SNN")
{
FusionPro.Composition.SetBodyPageUsage("SO1", false);
FusionPro.Composition.SetBodyPageUsage("SN2", true);
FusionPro.Composition.SetBodyPageUsage("SH3", false);
FindGraphicFrame("Coupon2").textWrap = true;
FindGraphicFrame("Coupon2").suppress = false;}
Reply With Quote
Reply

Tags
setbodypageusage, supress graphic, text wrap

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 02:55 AM.


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