Jump to content

Turning on pages with overflow


WBG-guy

Recommended Posts

I have a document that has 6 pages that I want to output only two. Here is how I have the pages outputting depending on the field value...

 

1. Page 1 with overflow page (Field value = "No")

2. Page 3 with overflow page (Field value = "Yes")

3. Page 5 and 6 (Field value = "Bleed")

4. Page 5 and 6 again (Field value = "No Bleed")

 

This is my page names...

 

Page 1 - Body (unused) - "nobleedpg"

Page 2 - Overflow - "nobleedpg"

Page 3 - Body (unused) - "bleedpg"

Page 4 - Overflow - "bleedpg"

Page 5 - Body (unused) - "front"

Page 6 - Body (unused) - "back"

 

I'm using "OnRecordStart" but I'm not getting the back page to output? I'm also not sure if the overflow page is setup correctly to output.

 

Here's the rule that I setup...

 

if (Field("bleed1") == "Yes")

{

FusionPro.Composition.SetBodyPageUsage("bleedpg", true);

}

if (Field("bleed1") == "No")

{

FusionPro.Composition.SetBodyPageUsage("nobleedpg", true);

}

if (Field("bleed1") == "Bleed")

FusionPro.Composition.SetBodyPageUsage("front", true);

}

if (Field("bleed1") == "Bleed")

FusionPro.Composition.SetBodyPageUsage("back", true);

}

if (Field("bleed1") == "No Bleed")

FusionPro.Composition.SetBodyPageUsage("front", true);

}

if (Field("bleed1") == "No Bleed")

FusionPro.Composition.SetBodyPageUsage("back", true);

}

 

What am I missing??

Link to comment
Share on other sites

When are you not getting the back page to output? If it's only for records where the value of Field("bleed1") is equal to "Yes" or "No" could it be because your records don't have any content requiring the overflow page?

 

You may also be running into problems by using separate IF loops for activating each page. See if it helps to replace your OnRecordStart rule with:

switch (Field("bleed1")) {
  case "Yes":
  FusionPro.Composition.SetBodyPageUsage("bleedpg", true);
  break;

  case "No":
  FusionPro.Composition.SetBodyPageUsage("nobleedpg" , true);
  break;

  case "Bleed":
  case "No Bleed":
  default:
  FusionPro.Composition.SetBodyPageUsage("front", true);
  FusionPro.Composition.SetBodyPageUsage("back", true);
}

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.

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