Jump to content

Stacks and Total Sheet Count


Recommended Posts

When using stacks and sheet counts I'm having a problem getting the correct total sheet count after the 2nd stack.


I've attached the small test files I've been using – 2up, stacks of 10.


If I run 20 records it comes out fine. Slugline reads F. 1 of 10, F. 2 of 10, etc. If I run 17 records it comes out fine .... F. 1 of 9, 2 of 9, etc.

BUT if I run 26 records I get ... 1 of 15, 2 of 15, 3 of 15, like it's a full stack when it isn't. It should read 1 of 13, 2 of 13, etc.

FP Stack Sheet Count Test.zip

Edited by vicki
add attachment
Link to comment
Share on other sites

Thanks for creating a great sample job which demonstrates the problem clearly.


This is a bug in the calculation of the total number of imposed sheets when one or more stacks are "short", i.e. there are not enough composed output records/pages to completely fill the number of sheets defined for the stack. Typically, as in this case, it's the last sheet that's short.


You can work around this by calculating the number of sheets based on the total record count and the number of sheets in a stack. In this job, you can modify the rule "Slugline Rule" like so:

var sheet = FusionPro.Composition.impositionSheetNumber || 1;

//var totalSheets = FusionPro.Composition.impositionTotalSheets;
// Work around bug with calculating the total number of sheets when stacks (such as the last) are incomplete.
var recordsPerSheet = 2; // for "stack test.fpi"
var totalRecs = FusionPro.Composition.totalRecordCount || 1;
var totalSheets = Math.ceil(totalRecs / recordsPerSheet);

return "F. " + sheet + " of " + totalSheets;

I've entered a case about this, FP-508.

Link to comment
Share on other sites

  • 2 weeks later...

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.

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