MarcomCentral (PTI) and FusionPro User Communities

MarcomCentral (PTI) and FusionPro User Communities (http://forums.pti.com/index.php)
-   Issues, Questions, Etc. (http://forums.pti.com/forumdisplay.php?f=40)
-   -   STACK and CUT not overflowing to 2nd page. (http://forums.pti.com/showthread.php?t=5240)

methogod October 24th, 2018 04:32 PM

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

dreimer October 25th, 2018 09:03 AM

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?

Dan Korn October 25th, 2018 01:47 PM

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?

methogod October 25th, 2018 04:55 PM

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.

methogod October 30th, 2018 10:37 AM

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);


Dan Korn October 31st, 2018 01:49 PM

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.

methogod October 31st, 2018 03:41 PM

Re: STACK and CUT not overflowing to 2nd page.
 
1 Attachment(s)
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...

http://forums.pti.com/attachment.php...1&d=1541025518

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.:D


thanks,

Dan Korn November 1st, 2018 10:14 AM

Re: STACK and CUT not overflowing to 2nd page.
 
Quote:

Originally Posted by methogod (Post 21560)
That did it...

Great!
Quote:

Originally Posted by methogod (Post 21560)
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 (Post 21560)
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.


All times are GMT -7. The time now is 11:36 AM.

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