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

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 30th, 2019, 03:41 PM
dbentley dbentley is offline
Junior Community Member
 
Join Date: May 2011
Posts: 15
Default Padding with a cover page and back cover page

Hi. I'm hoping I can get some quick help on a job I'm currently working on.

I have a 6 page PDF file. Pages 1 and 2 are the front and back of a cover page, pages 3 and 4 are the F & B of the padded pages (need 100 cards per pack), pages 5 and 6 are to be the F & B of the back cover sheet.

These are linked to a data file with codes to be turned into QR Codes to be used on the Cover Sheet, padded 100 next cards and then the BC sheet. Each card composed uses the next record number for the code from the data file. So 102 cards per set - and every card, whether it's the front cover sheet card, one of the padded internal cards, or the back cover card has the next record code printing on it.

Before needing to add the back cover sheet, I was able to get the following rule to work in On Record Start.


if (cover = FusionPro.Composition.inputRecordNumber % 100 == 1)
FusionPro.Composition.CurrentRecordNumber = 2;

var page = (cover && FusionPro.Composition.repeatRecordNumber == 1) ? 'cover' : 'pad' ;

FusionPro.Composition.SetBodyPageUsage(page,true);
FusionPro.Composition.SetBodyPageUsage(page + '_back', true);


How do I add the back cover sheet in to the rule, so that it prints the cover sheet, 100 padded internal cards, then back cover sheet, then starts all over again?

Thanks tons in advance!
Danielle

FusionProVDP Creator 9.3.26, Mac OS High Sierra 10.13.6, Acrobat X (10)

btw... I can't seem to see where I can change my info on my signature. I added it above in case it's needed.
__________________
Danielle Bentley
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.15
Mac OS X 10.8.5
Reply With Quote
  #2  
Old October 30th, 2019, 06:33 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,369
Default Re: Padding with a cover page and back cover page

Quote:
Originally Posted by dbentley View Post
Before needing to add the back cover sheet, I was able to get the following rule to work in On Record Start.

if (cover = FusionPro.Composition.inputRecordNumber % 100 == 1)
FusionPro.Composition.CurrentRecordNumber = 2;
Yeah, setting FusionPro.Composition.CurrentRecordNumber doesn't do anything. You can't change the current record in OnRecordStart. You can skip it, or repeat it, but you can't go to another input record. The only way to go to another record is to just wait until you get there, when FusionPro.Composition.CurrentRecordNumber(), or, more accurately, FusionPro.Composition.inputRecordNumber, returns the number you're looking for.
Quote:
Originally Posted by dbentley View Post
var page = (cover && FusionPro.Composition.repeatRecordNumber == 1) ? 'cover' : 'pad' ;

FusionPro.Composition.SetBodyPageUsage(page,true);
FusionPro.Composition.SetBodyPageUsage(page + '_back', true);
That part seems okay. Presumably you have both pages turned off (set to Unused) by default in the Page Usage dialog. Also, presumably you're setting FusionPro.Composition.repeatRecordCount somewhere that you're not showing, otherwise you're not repeating anything, and FusionPro.Composition.repeatRecordNumber is always going to be 1, and you would only ever get cover pages.
Quote:
Originally Posted by dbentley View Post
How do I add the back cover sheet in to the rule, so that it prints the cover sheet, 100 padded internal cards, then back cover sheet, then starts all over again?
I think the simplest way to do this is to set all the pages back to Used (not Unused) in the Page Usage dialog, then do this in OnRecordStart:
Code:
FusionPro.Composition.repeatRecordCount = 100;
FusionPro.Composition.SetBodyPageUsage("cover", FusionPro.Composition.repeatRecordNumber == 1);
FusionPro.Composition.SetBodyPageUsage("cover_back", FusionPro.Composition.repeatRecordNumber == 100);
(My usual caveat here, that this is partly guessing since I don't have your template files to actually try the code with.)
Quote:
Originally Posted by dbentley View Post
btw... I can't seem to see where I can change my info on my signature. I added it above in case it's needed.
Click on your name at the top of any of your posts and then View/Edit Profile.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

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 inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. 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
  #3  
Old October 31st, 2019, 07:21 AM
dbentley dbentley is offline
Junior Community Member
 
Join Date: May 2011
Posts: 15
Default Re: Padding with a cover page and back cover page

Hi Dan.

Thanks so much for your quick response. I've collected the job and have attached it for you to look at.

Danielle
Attached Files
File Type: zip 207391_FP_Template.zip (3.45 MB, 3 views)
__________________
Danielle Bentley
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.15
Mac OS X 10.8.5

Last edited by dbentley; October 31st, 2019 at 08:33 AM.. Reason: Adding collected files
Reply With Quote
Reply

Tags
on record start, padding

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 06:20 AM.


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