Thread: FP Imposer
View Single Post
  #10  
Old August 8th, 2014, 09:32 AM
dreimer dreimer is offline
Senior Contributor
 
Join Date: Oct 2010
Location: Shakopee, MN
Posts: 495
Default Re: FP Imposer

Step, I tried your rule for my scenario since no one else has responded to what I was trying. So my code looks like this to get my 26 page PDF imposed using my imposition file.

Code:
FusionPro.Composition.repeatRecordCount = 26;
FusionPro.Composition.SetBodyPageUsage(1, FusionPro.Composition.repeatRecordNumber == 1);
FusionPro.Composition.SetBodyPageUsage(2, FusionPro.Composition.repeatRecordNumber == 2);
FusionPro.Composition.SetBodyPageUsage(3, FusionPro.Composition.repeatRecordNumber == 3);
FusionPro.Composition.SetBodyPageUsage(4, FusionPro.Composition.repeatRecordNumber == 4);
FusionPro.Composition.SetBodyPageUsage(5, FusionPro.Composition.repeatRecordNumber == 5);
FusionPro.Composition.SetBodyPageUsage(6, FusionPro.Composition.repeatRecordNumber == 6);
FusionPro.Composition.SetBodyPageUsage(7, FusionPro.Composition.repeatRecordNumber == 7);
FusionPro.Composition.SetBodyPageUsage(8, FusionPro.Composition.repeatRecordNumber == 8);
FusionPro.Composition.SetBodyPageUsage(9, FusionPro.Composition.repeatRecordNumber == 9);
FusionPro.Composition.SetBodyPageUsage(10, FusionPro.Composition.repeatRecordNumber == 10);
FusionPro.Composition.SetBodyPageUsage(11, FusionPro.Composition.repeatRecordNumber == 11);
FusionPro.Composition.SetBodyPageUsage(12, FusionPro.Composition.repeatRecordNumber == 12);
FusionPro.Composition.SetBodyPageUsage(13, FusionPro.Composition.repeatRecordNumber == 13);
FusionPro.Composition.SetBodyPageUsage(14, FusionPro.Composition.repeatRecordNumber == 14);
FusionPro.Composition.SetBodyPageUsage(15, FusionPro.Composition.repeatRecordNumber == 15);
FusionPro.Composition.SetBodyPageUsage(16, FusionPro.Composition.repeatRecordNumber == 16);
FusionPro.Composition.SetBodyPageUsage(17, FusionPro.Composition.repeatRecordNumber == 17);
FusionPro.Composition.SetBodyPageUsage(18, FusionPro.Composition.repeatRecordNumber == 18);
FusionPro.Composition.SetBodyPageUsage(19, FusionPro.Composition.repeatRecordNumber == 19);
FusionPro.Composition.SetBodyPageUsage(20, FusionPro.Composition.repeatRecordNumber == 20);
FusionPro.Composition.SetBodyPageUsage(21, FusionPro.Composition.repeatRecordNumber == 21);
FusionPro.Composition.SetBodyPageUsage(22, FusionPro.Composition.repeatRecordNumber == 22);
FusionPro.Composition.SetBodyPageUsage(23, FusionPro.Composition.repeatRecordNumber == 23);
FusionPro.Composition.SetBodyPageUsage(24, FusionPro.Composition.repeatRecordNumber == 24);
FusionPro.Composition.SetBodyPageUsage(25, FusionPro.Composition.repeatRecordNumber == 25);
FusionPro.Composition.SetBodyPageUsage(26, FusionPro.Composition.repeatRecordNumber == 26);
Anyone know if there is a way to write a loop for each page in the PDF template instead of having to add a line in the rule for each page? TIA
__________________
Don Reimer - JavaScript Novice

MAC OS 10.14.6 Acrobat DC FP Creator 12.0.1
Reply With Quote