Jump to content

Imposition Issues, onRecordStart


Recommended Posts

Hello All,

 

So I have been having some issues with FP Imposer and adding cover sheets to the beginning of the output pdfs. I have this working perfectly without an imposition and at one point it was working with a 2up imposition, but now it is adding blank pages to the document.

 

Here is what I am doing.

 

var stack = FusionPro.Composition.JobOptions["RecordsPerChunk"] / 4;

if(cover  = FusionPro.Composition.inputRecordNumber % stack == 1)
{
   FusionPro.Composition.repeatRecordCount = 2;
   FusionPro.Composition.SetBodyPageUsage("SetSheet", true);
   FusionPro.Composition.SetBodyPageUsage("BSetSheet", true);
}
if((FusionPro.Composition.repeatRecordNumber == 1 && cover == false) || FusionPro.Composition.repeatRecordCount == 2)
{
   FusionPro.Composition.SetBodyPageUsage("Page1",true);
   FusionPro.Composition.SetBodyPageUsage("Page2",true);
}

 

I am trying to output this 4up duplex on a sheet. The cover sheet will print with a back and repeat the record count. Then the record will repeat and print the front and back of the main page.

 

This works perfectly, except that the imposition is repeating the cover page (without printing that it is to the log) after 2 records and then it is adding 2 blank pages every page. What might be wrong with this?

 

Thanks for your time!

Link to comment
Share on other sites

I have tried in many different ways to make it work using the Imposition tab of the Composition Settings dialogue and I have never managed to get it to work with an imposition. The closest I was ever able to get it cut off half of the cover sheet and replaced it with blank space.

 

However I did manage to get this working by changing the order of my "if" statements.

 

Solution:

 

var stack = FusionPro.Composition.JobOptions["RecordsPerChunk"] / 4;
var cover = false;

//check first for repeat
if(FusionPro.Composition.repeatRecordNumber == 2)
{
   FusionPro.Composition.SetBodyPageUsage("Page1",true);
   FusionPro.Composition.SetBodyPageUsage("Page2",true);
}

//Insert cover and repeat
if(cover  = FusionPro.Composition.inputRecordNumber % stack == 1)
{
   FusionPro.Composition.repeatRecordCount = 2;
   FusionPro.Composition.SetBodyPageUsage("SetSheet", true);
   FusionPro.Composition.SetBodyPageUsage("BSetSheet", true);
}

//No cover and no repeat
if(FusionPro.Composition.repeatRecordNumber == 1 && cover == false)
{
   FusionPro.Composition.SetBodyPageUsage("Page1",true);
   FusionPro.Composition.SetBodyPageUsage("Page2",true);
}

Link to comment
Share on other sites

I have tried in many different ways to make it work using the Imposition tab of the Composition Settings dialogue and I have never managed to get it to work with an imposition. The closest I was ever able to get it cut off half of the cover sheet and replaced it with blank space.

 

However I did manage to get this working by changing the order of my "if" statements.

Okay, if you got it to work, great. It's just hard to help without seeing the job files.

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