Go Back   PTI Marketing Technologies User Community > Support > Issues, Questions, Etc.

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 24th, 2018, 05:32 PM
methogod methogod is offline
Junior Community Member
 
Join Date: Jan 2010
Location: Baltimore, Maryland
Posts: 40
Default STACK and CUT not overflowing to 2nd page.

Been using this setup for CUT and STACK for years, never needed to have front and back (DUPLEX)….

Now I do. Can’t seem to figure it out how to set the rule.

ODDS are fronts
Evens are backs

had to upload to drop box as PDF is large...

https://www.dropbox.com/s/8cbizhmv3l...mples.zip?dl=0
Reply With Quote
  #2  
Old October 25th, 2018, 10:03 AM
dreimer dreimer is offline
Senior Contributor
 
Join Date: Oct 2010
Location: Shakopee, MN
Posts: 457
Default Re: STACK and CUT not overflowing to 2nd page.

I didn't download the file but did you change the fpi file to Duplex Perfected in the layout pane?
__________________
Don Reimer - JavaScript Novice

MAC OS 10.12.5 Acrobat XI 11.0.0 FP Creator 10.0.16
Windows 7 Acrobat X 10.1.4 FP Creator 9.3.9
Reply With Quote
  #3  
Old October 25th, 2018, 02:47 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,226
Default Re: STACK and CUT not overflowing to 2nd page.

I don't understand what you're asking.

Can you please elaborate on:
  1. What output are you expecting?
  2. What output are you getting?
  3. Exactly how are they different?
__________________
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)});

Last edited by Dan Korn; October 25th, 2018 at 05:28 PM..
Reply With Quote
  #4  
Old October 25th, 2018, 05:55 PM
methogod methogod is offline
Junior Community Member
 
Join Date: Jan 2010
Location: Baltimore, Maryland
Posts: 40
Default Re: STACK and CUT not overflowing to 2nd page.

Idea is to drop in multiple PDF files in a local folder (all pdfs are FRONT AND BACKS - all static), and have them print in a cut/stack order. Pulling Number of times to repeat from the rules.

https://www.dropbox.com/s/ayt765s1yv...Final.pdf?dl=0

This is how we use it currently, see files in drop box above.

But the new setup is for a two page PDF (2 body pages), vs a single body page above.
Reply With Quote
  #5  
Old October 30th, 2018, 11:37 AM
methogod methogod is offline
Junior Community Member
 
Join Date: Jan 2010
Location: Baltimore, Maryland
Posts: 40
Default Re: STACK and CUT not overflowing to 2nd page.

OK lets try this again, need help in two places...
1st - how do i define the BACK/BODY2. How would i change this to output correctly.

This outputs a cut/stack only...


On Job Start
Code:
FusionPro.Composition.composeAllRecords = false;
FusionPro.Composition.endRecordNumber = 40; // Number of cards you have
On record start:
Quote:
FusionPro.Composition.repeatRecordCount = 4; // Quantity of each card

var card = CreateResource("Binder1.pdf",'graphic',true);
card.countpages;
card.pagenumber = FusionPro.Composition.inputRecordNumber;

FindGraphicFrame("RAND").SetGraphic(card);
Reply With Quote
  #6  
Old October 31st, 2018, 02: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,226
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:
Code:
FindGraphicFrame("RAND").SetGraphic(card);
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:
Code:
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.
card.pagenumber++;
FindGraphicFrame("Front").SetGraphic(card);

// Next page is the back.
card.pagenumber++;
FindGraphicFrame("Back").SetGraphic(card);
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
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
  #7  
Old October 31st, 2018, 04:41 PM
methogod methogod is offline
Junior Community Member
 
Join Date: Jan 2010
Location: Baltimore, Maryland
Posts: 40
Default Re: STACK and CUT not overflowing to 2nd page.

That did it...

Do i still need to define number of card/sets?

Code:
FusionPro.Composition.composeAllRecords = false;
FusionPro.Composition.endRecordNumber = 20; // Number of sets of cards

One more question...

instead of using a combined file (binder1.pdf)
Code:
var card = CreateResource("Binder1.pdf", "graphic", true);
is there a way to say

Pull All PDF's files from a folder or the local directory instead of manually making a binder.pdf (ie. C:/TEST/)

and have it repeat each record based on the leading numbers in the name of the file...

This is what i get each time i get this order...



If we rename the files so each started with ***-
where *** was the number of times it will repeat...

Trying to automate this as much as possible...
I know this is outside the norm, thanks for all your help so far.


thanks,
Attached Images
File Type: jpg files provided.JPG (59.3 KB, 9 views)
Reply With Quote
  #8  
Old November 1st, 2018, 11:14 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,226
Default Re: STACK and CUT not overflowing to 2nd page.

Quote:
Originally Posted by methogod View Post
That did it...
Great!
Quote:
Originally Posted by methogod View Post
Do i still need to define number of card/sets?
Code:
FusionPro.Composition.composeAllRecords = false;
FusionPro.Composition.endRecordNumber = 20; // Number of sets of cards
No. All the logic to repeat the necessary number of times to get the right number of output records is in that OnRecordStart rule. You can get rid of OnJobStart.
Quote:
Originally Posted by methogod View Post
One more question...
instead of using a combined file (binder1.pdf)
Code:
var card = CreateResource("Binder1.pdf", "graphic", true);
is there a way to say

Pull All PDF's files from a folder or the local directory instead of manually making a binder.pdf (ie. C:/TEST/)

and have it repeat each record based on the leading numbers in the name of the file...
No, not with FusionPro VDP Creator. That kind of workflow requires FusionPro Server, where another application can do all the necessary searching for files and gathering data, then send that information to FusionPro for composition.
__________________
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
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 03:27 PM.


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