vicki Posted July 20, 2021 Share Posted July 20, 2021 (edited) 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 July 21, 2021 by vicki add attachment Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted July 21, 2021 Share Posted July 21, 2021 I don't see any attachment. Quote Link to comment Share on other sites More sharing options...
vicki Posted July 21, 2021 Author Share Posted July 21, 2021 (edited) Helped to hit "upload".FP Stack Sheet Count Test.zip Edited July 23, 2021 by vicki Quote Link to comment Share on other sites More sharing options...
vicki Posted July 28, 2021 Author Share Posted July 28, 2021 I've uploaded the files. Thanks.FP Stack Sheet Count Test.zip Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted July 29, 2021 Share Posted July 29, 2021 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. Quote Link to comment Share on other sites More sharing options...
vicki Posted August 11, 2021 Author Share Posted August 11, 2021 Thanks so much. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.