Hawk Posted March 13, 2009 Share Posted March 13, 2009 I am using a rule to control page lengths of a saddle stitch book. If I output one record at a time it works fine, but if I try multiple records it makes every book 20 pages and gives me error messages, "The number of pages in this record does not match the imposition signature: 4 pages will be truncated." and "A body page does not have master page assigned.". This was all working fine last week, but now does not. Here's the rule. if (((((((Field("State") == String("PA")) || (Field("State") == String("OH"))) || (Field("State") == String("MS"))) || (Field("State") == String("WI"))) || (Field("State") == String("UT"))) || (Field("State") == String("OK"))) && (Field("underwriter") == String("AMLI"))) { FusionPro.Composition.SetBodyPageUsage('Page 1', true); FusionPro.Composition.SetBodyPageUsage('Page 2', true); FusionPro.Composition.SetBodyPageUsage('Page 3', true); FusionPro.Composition.SetBodyPageUsage('Page 4', true); FusionPro.Composition.SetBodyPageUsage('Page 5', true); FusionPro.Composition.SetBodyPageUsage('Page 6', true); FusionPro.Composition.SetBodyPageUsage('Page 4', true); FusionPro.Composition.SetBodyPageUsage('Page 8', true); FusionPro.Composition.SetBodyPageUsage('Page 9', true); FusionPro.Composition.SetBodyPageUsage('Page 10', true); FusionPro.Composition.SetBodyPageUsage('Page 11', true); FusionPro.Composition.SetBodyPageUsage('Page 12', true); FusionPro.Composition.SetBodyPageUsage('Page 13', true); FusionPro.Composition.SetBodyPageUsage('Page 14', true); FusionPro.Composition.SetBodyPageUsage('Page 15', true); FusionPro.Composition.SetBodyPageUsage('Page 16', true); FusionPro.Composition.SetBodyPageUsage('Page 17', true); FusionPro.Composition.SetBodyPageUsage('Page 18', true); FusionPro.Composition.SetBodyPageUsage('Page 19', true); FusionPro.Composition.SetBodyPageUsage('Page 20', true); FusionPro.Composition.SetBodyPageUsage('Page 21', true); FusionPro.Composition.SetBodyPageUsage('Page 22', true); FusionPro.Composition.SetBodyPageUsage('Page 23', true); FusionPro.Composition.SetBodyPageUsage('Page 24', true); } else if (((((((Field("State") != String("PA")) || (Field("State") != String("OH"))) || (Field("State") != String("MS"))) || (Field("State") != String("WI"))) || (Field("State") != String("UT"))) || (Field("State") != String("OK"))) && (Field("underwriter") == String("AMLI"))) { FusionPro.Composition.SetBodyPageUsage('Page 1', true); FusionPro.Composition.SetBodyPageUsage('Page 2', true); FusionPro.Composition.SetBodyPageUsage('Page 3', true); FusionPro.Composition.SetBodyPageUsage('Page 4', true); FusionPro.Composition.SetBodyPageUsage('Page 5', true); FusionPro.Composition.SetBodyPageUsage('Page 6', true); FusionPro.Composition.SetBodyPageUsage('Page 4', true); FusionPro.Composition.SetBodyPageUsage('Page 8', true); FusionPro.Composition.SetBodyPageUsage('Page 9', true); FusionPro.Composition.SetBodyPageUsage('Page 10', true); FusionPro.Composition.SetBodyPageUsage('Page 11', true); FusionPro.Composition.SetBodyPageUsage('Page 12', true); FusionPro.Composition.SetBodyPageUsage('Page 13', true); FusionPro.Composition.SetBodyPageUsage('Page 14', true); FusionPro.Composition.SetBodyPageUsage('Page 15', true); FusionPro.Composition.SetBodyPageUsage('Page 16', true); FusionPro.Composition.SetBodyPageUsage('Page 17', true); FusionPro.Composition.SetBodyPageUsage('Page 18', true); FusionPro.Composition.SetBodyPageUsage('Page 19', true); FusionPro.Composition.SetBodyPageUsage('Page 20', true); FusionPro.Composition.SetBodyPageUsage('Page 21', false); FusionPro.Composition.SetBodyPageUsage('Page 22', false); FusionPro.Composition.SetBodyPageUsage('Page 23', false); FusionPro.Composition.SetBodyPageUsage('Page 24', false); } else { FusionPro.Composition.SetBodyPageUsage('Page 1', true); FusionPro.Composition.SetBodyPageUsage('Page 2', true); FusionPro.Composition.SetBodyPageUsage('Page 3', true); FusionPro.Composition.SetBodyPageUsage('Page 4', true); FusionPro.Composition.SetBodyPageUsage('Page 5', true); FusionPro.Composition.SetBodyPageUsage('Page 6', true); FusionPro.Composition.SetBodyPageUsage('Page 4', true); FusionPro.Composition.SetBodyPageUsage('Page 8', true); FusionPro.Composition.SetBodyPageUsage('Page 9', true); FusionPro.Composition.SetBodyPageUsage('Page 10', true); FusionPro.Composition.SetBodyPageUsage('Page 11', true); FusionPro.Composition.SetBodyPageUsage('Page 12', true); FusionPro.Composition.SetBodyPageUsage('Page 13', true); FusionPro.Composition.SetBodyPageUsage('Page 14', true); FusionPro.Composition.SetBodyPageUsage('Page 15', true); FusionPro.Composition.SetBodyPageUsage('Page 16', true); FusionPro.Composition.SetBodyPageUsage('Page 17', false); FusionPro.Composition.SetBodyPageUsage('Page 18', false); FusionPro.Composition.SetBodyPageUsage('Page 19', false); FusionPro.Composition.SetBodyPageUsage('Page 20', false); FusionPro.Composition.SetBodyPageUsage('Page 21', false); FusionPro.Composition.SetBodyPageUsage('Page 22', false); FusionPro.Composition.SetBodyPageUsage('Page 23', false); FusionPro.Composition.SetBodyPageUsage('Page 24', false); } Link to comment Share on other sites More sharing options...
MHardee Posted March 13, 2009 Share Posted March 13, 2009 First off, If you have your pages all set to unused in the Manage Pages dropdown, I don't think you'll need the false statements. Eliminate them and rerun and see what is reported.. Also, probably use a case statement instead of the if's.. Mark Link to comment Share on other sites More sharing options...
klinglerp Posted March 13, 2009 Share Posted March 13, 2009 Saddle Stitch impositions are different depending on the number of pages. So if each record produces one book (either 16, 20 or 24 pages), you can't have multiple records use the same imposition file, which is set during the composition settings (in the .cfg file), not in your rule. I'm not sure if there's a programmatic way to change the imposition file, I've never done it. The one project I did using saddle-stitch was a web-based, single-record input, and I had to calculate the page number, and then call the appropriate imposition file. Has anyone else ever done multiple-record compositions with variable page lengths for saddle-stitch output? Mark is correct, you can simplify your rule by eliminating the SetBodyPageUsage statements for the lines that match your default page usage settings, but I don't think that's what is causing the problem. Link to comment Share on other sites More sharing options...
MHardee Posted March 13, 2009 Share Posted March 13, 2009 Saddle Stitch impositions are different depending on the number of pages. So if each record produces one book (either 16, 20 or 24 pages), you can't have multiple records use the same imposition file, which is set during the composition settings (in the .cfg file), not in your rule. Has anyone else ever done multiple-record compositions with variable page lengths for saddle-stitch output? Mark is correct, you can simplify your rule by eliminating the SetBodyPageUsage statements for the lines that match your default page usage settings, but I don't think that's what is causing the problem. As I see it, they can all use the same .fpi file.. A saddle stitch impo consists of a signature layout, not the entire run. They are all multiples of 4, unless Imposer gets whacked out when it is expecting 6 sigs (24 page) in each "chunk" and it receives 5 (20 pg)... and then adds another sig to construct what it believes was to be sent... The chunk is, I believe, where the issue is rearing it's head.. This might be handled better by breaking the data up into signature runs.. Possibly using the same rule to not compose the 20 page data when doing the 24 page run? Mark Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.