View Single Post
Old October 31st, 2018, 01:49 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,338
Default Re: STACK and CUT not overflowing to 2nd page.

Sorry, I was having trouble following your explanation. I didn't know what you meant by "BACK/BODY2" or "cut/stack only." You still want "cut/stack", but duplexed. Like I said, the easiest way to avoid confusion over jargon is to specify exactly what is different between the output you're getting and the output you're expecting, in plain English, something like, "Only the front of each card is being output. I need the backs as well." Anyway, I think I understand now what you're trying to do.

There are a couple of problems with the job. All of them can be seen by composing without Imposition, or even by Previewing the job. So I would work these problems out in Preview first before trying to compose.

First, you have two graphic frames with the same name, "RAND" (whatever that means). So when you do this:
You're assigning to only one of those two frames. You need to name the frame on the second page something else. I would name the two frames "Front" and "Back", and then put different pages from the resource into each one.

The second problem is that you're not accounting for using two pages from the resource for each output record.

At any rate, once you name your two frames differently, you don't need any OnJobStart rule to accomplish this. You only need a single OnRecordStart rule like so:
var card = CreateResource("Binder1.pdf", "graphic", true);

FusionPro.Composition.repeatRecordCount = Math.floor(card.countPages / 2); // Number of cards you have

// Start with a zero-based page number from a zero-based record number:
// 0 for record 0 (the first record), 2 for record 1 (the second record), etc.
card.pagenumber = (FusionPro.Composition.repeatRecordNumber - 1) * 2;

// One-based page number for the front.

// Next page is the back.
Note that you also don't need to hard-code the number of output records, since we know how many pages we're bringing in from the resource.
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or

Complex template-building questions, as well as all installation and font questions or problems, should be directed to Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote