#11
|
||||
|
||||
![]()
You could set all of the pages to "unused" and change the code to:
Code:
FusionPro.Composition.repeatRecordCount = 26; FusionPro.Composition.SetBodyPageUsage(FusionPro.Composition.repeatRecordNumber, true);
__________________
Ste Pennell FusionPro VDP Creator 9.3.15 Adobe Acrobat X 10.1.1 Mac OS X 10.12 |
#12
|
|||
|
|||
![]()
Thanks step,
That works good to make a simpler rule but then I would have to go through and change all the pages to unused. Was hoping for something easier. May use this kind of thing for hundreds of pages. May have to look into another program to accomplish this.
__________________
Don Reimer - JavaScript Novice MAC OS 10.14.6 Acrobat DC FP Creator 12.0.1 |
#13
|
|||
|
|||
![]()
Would a JavaScript For Loop work?
This has not been tested. Not sure if it works or is allowed here. Code:
var p = 26//Set your page count FusionPro.Composition.repeatRecordCount = p; var i; for (i = 0; i < p+1; i++) { FusionPro.Composition.SetBodyPageUsage(i, FusionPro.Composition.repeatRecordNumber == i); }
__________________
David Miller FusionPro VDP Creator 12.0.3 Adobe Acrobat Pro 2021 macOS Big Sur 11.6.2 Last edited by David Miller; August 8th, 2014 at 01:28 PM.. |
#14
|
|||
|
|||
![]()
^^No sale. It creates a full imposed sheet for each page in the template.
I get this error: OnRecordStart, line 7: Error: In SetBodyPageUsage(), invalid page number 0 Composing record #1, input record 1, repeat 1 of 26 Sheet #1, record #1
__________________
Don Reimer - JavaScript Novice MAC OS 10.14.6 Acrobat DC FP Creator 12.0.1 |
#15
|
|||
|
|||
![]()
Should have tested before posting. My mistake. The loop started at 0. Should have started it at 1.
Via the OnRecordStart Callback Rule: Code:
var p = 26//Set your page count FusionPro.Composition.repeatRecordCount = p; var i; for (i = 1; i < p+1; i++) { FusionPro.Composition.SetBodyPageUsage(i, FusionPro.Composition.repeatRecordNumber == i); } Tested with the template files from the original post. Unless I missed something, the original FPI file should be set to Simplex instead of Duplex Perfected. It is important to make this change.
__________________
David Miller FusionPro VDP Creator 12.0.3 Adobe Acrobat Pro 2021 macOS Big Sur 11.6.2 Last edited by David Miller; August 11th, 2014 at 08:01 AM.. Reason: Typo |
#16
|
|||
|
|||
![]()
Perfect, thanks David. This will come in handy!
__________________
Don Reimer - JavaScript Novice MAC OS 10.14.6 Acrobat DC FP Creator 12.0.1 |
#17
|
|||
|
|||
![]()
Glad to hear. But, thanks should go to Step and w3schools.com.
__________________
David Miller FusionPro VDP Creator 12.0.3 Adobe Acrobat Pro 2021 macOS Big Sur 11.6.2 |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|