Jump to content

Auto-fit and Text wrap bug?


Recommended Posts

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.

 

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;}

Link to comment
Share on other sites

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.

 

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

 

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.

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;}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...