Jump to content

Creating say a presrciption pad


Recommended Posts

So I want to be able to make a two sided ************ pad of say 50 sheets per record in my data. I will need a order identifier sheet on top as well as a **** description sheet on the bottom. So right now I have a 104 page FP template. Pages 1 and 2 are for the identifie, pages 3-102 are my repeat sheets and pages 103 and 104 are the **** description page. The pages are pulled in as PDF's based on the data. My main question is there a way to simplify my template to make the 100 pages 2 pages and duplicate them 50 times somehow? TIA Edited by dreimer
Link to comment
Share on other sites

I would use a combination of record repeating (set FusionPro.Composition.repeatRecordCount in OnRecordStart) and page usage (call FusionPro.Composition.SetBodyPageUsage in OnRecordStart). The OnRecordStart rule would be something like this:

FusionPro.Composition.repeatRecordCount = 50;
FusionPro.Composition.SetBodyPageUsage("Identifier 1", FusionPro.Composition.repeatRecordNumber == 1);
FusionPro.Composition.SetBodyPageUsage("Identifier 2", FusionPro.Composition.repeatRecordNumber == 1);
FusionPro.Composition.SetBodyPageUsage("Description 1", FusionPro.Composition.repeatRecordNumber == 50);
FusionPro.Composition.SetBodyPageUsage("Description 2", FusionPro.Composition.repeatRecordNumber == 50);

Then you could do something based on FusionPro.Composition.repeatRecordNumber, likely in another rule, to bring in the data for each repeat of the two main pages.

Link to comment
Share on other sites

I don't really want to post this art since it is sensitive material. The six page template works correctly without imposing, but when I impose it I get an error for every record and every repeat of the record. Below is the rule I am using for the repeat in on Record Start. The job changed to 30 per pad.

 

FusionPro.Composition.repeatRecordCount = 30;
FusionPro.Composition.SetBodyPageUsage("HeaderFront", FusionPro.Composition.repeatRecordNumber == 1);
FusionPro.Composition.SetBodyPageUsage("HeaderBack", FusionPro.Composition.repeatRecordNumber == 1);
FusionPro.Composition.SetBodyPageUsage("PIFront", FusionPro.Composition.repeatRecordNumber == 30);
FusionPro.Composition.SetBodyPageUsage("PIBack", FusionPro.Composition.repeatRecordNumber == 30);

 

Here is the error I get using the imposition that I don't get when I compose one up:

 

I have tried changing the stack on the imposition file to get it to work with no luck.

Edited by dreimer
Link to comment
Share on other sites

I'd venture to guess that the problem with the imposition stems from the fact that for repeatRecordNumber 1 & 30, the template outputs 4 pages rather than the expected 2. I think you would have to set all of your pages to "unused" and rework the code to be something like:

 

FusionPro.Composition.repeatRecordCount = 32; // 2 extra for the front and back sheets
switch (FusionPro.Composition.repeatRecordNumber) {
  case 1:
     FusionPro.Composition.SetBodyPageUsage("HeaderFront",true);
     FusionPro.Composition.SetBodyPageUsage("HeaderBack",true);
  break;
  case 32:
     FusionPro.Composition.SetBodyPageUsage("PIFront",true);
     FusionPro.Composition.SetBodyPageUsage("PIBack",true);
  break;
  default:
     FusionPro.Composition.SetBodyPageUsage("OrderFront",true);
     FusionPro.Composition.SetBodyPageUsage("OrderBack",true);
  break;
}

 

Please note that I haven't tried to validate this code myself, so you may have to tinker with it to make it work the way you want but I think that's a starting point to get that worked out.

Link to comment
Share on other sites

Step, thanks, that worked well for the one-up, but the imposition still doesn't come out correct. Your rule at least doesn't give me errors when doing the imposed composition. There must be something I am doing wrong in the imposition file.
Link to comment
Share on other sites

So our rules create a 64 page pdf per record. I want each record to go down the stack. So with an eight record file and an 8-up imposition I would end up with 64 pages with in the imposed PDF with each record taking one of the 8-up spots on the impo. It would be what is considered cut and stack. Each 64 pages would be 8 records and make 8 pads. Does that make sense? I would post the finished product but it is sensitive material. I could email you the final product if you wanted to see and had time to take a look. Thanks again.
Link to comment
Share on other sites

Ste is correct that you need to make sure you're outputting the correct number of pages, and the same number of pages, for each output record.

 

But I don't know exactly what that correct number is without the FPI file.

So our rules create a 64 page pdf per record. I want each record to go down the stack. So with an eight record file and an 8-up imposition I would end up with 64 pages with in the imposed PDF with each record taking one of the 8-up spots on the impo. It would be what is considered cut and stack. Each 64 pages would be 8 records and make 8 pads. Does that make sense? I would post the finished product but it is sensitive material. I could email you the final product if you wanted to see and had time to take a look. Thanks again.

The problem might be that you're not actually outputting 64 pages in a single output record; you're actually outputting 32 records, each with two pages. Whether the imposition should or will work that way is hard to say without having the FPI file.

 

Anyway, all the explanation is fine, but it's hard to visualize. Can you "dummy up" the data so that the job has the same general layout, but not the sensitive information?

 

Even if you could just post the FPI file, that would be immensely helpful so that we what your imposition settings are. (If you can't post an attachment, you can just open the FPI file in a text editor and copy-and-paste the contents here.) With that FPI file, a dummy data file, and the template PDF you already posted, one of us should be able to reproduce what you're seeing.

Edited by Dan Korn
same number of pages, not records, per output record
Link to comment
Share on other sites

I'm not sure why but it seems FPI uses "infinite stack" regardless of setting a stack height. Not sure if that's a FPI issue or if it's because of the records being repeated. :confused:

 

I think the easiest solution would be to add "FPO" or "dummy" records to the end of your data file forcing your total record count to be divisible by 8. So that every position on the sheet is filled forcing FPI to generate 64 pages for every 8 records rather than evenly distributing them across the sheet when there aren't enough records to fill the imposition.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...