Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > FusionPro® VDP Creator

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old August 8th, 2014, 11:42 AM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 957
Default Re: FP Imposer

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

LinkedIn
Reply With Quote
  #12  
Old August 8th, 2014, 12:16 PM
dreimer dreimer is offline
Senior Contributor
 
Join Date: Oct 2010
Location: Shakopee, MN
Posts: 495
Default Re: FP Imposer

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
Reply With Quote
  #13  
Old August 8th, 2014, 01:25 PM
David Miller David Miller is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Hamden, CT
Posts: 265
Default Re: FP Imposer

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..
Reply With Quote
  #14  
Old August 8th, 2014, 01:31 PM
dreimer dreimer is offline
Senior Contributor
 
Join Date: Oct 2010
Location: Shakopee, MN
Posts: 495
Default Re: FP Imposer

^^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
Reply With Quote
  #15  
Old August 8th, 2014, 02:03 PM
David Miller David Miller is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Hamden, CT
Posts: 265
Default Re: FP Imposer

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);
}
The page number should never be set to 0 (zero). Edit is in red. Give it a try.

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
Reply With Quote
  #16  
Old August 11th, 2014, 06:03 AM
dreimer dreimer is offline
Senior Contributor
 
Join Date: Oct 2010
Location: Shakopee, MN
Posts: 495
Default Re: FP Imposer

Perfect, thanks David. This will come in handy!
__________________
Don Reimer - JavaScript Novice

MAC OS 10.14.6 Acrobat DC FP Creator 12.0.1
Reply With Quote
  #17  
Old August 11th, 2014, 07:58 AM
David Miller David Miller is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Hamden, CT
Posts: 265
Default Re: FP Imposer

Quote:
Originally Posted by dreimer View Post
Perfect, thanks David. This will come in handy!
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:31 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.