Greeting all,
After many years of working with Fusion Pro I finally ran into a problem I can't seem to find a solution for.
I have a document setup with 10 pages each page is different. The first column in my data set tells me what page should be used and I have written a script that turns on the correct page based on this field.
All that works, but the problem is that this data set is building 1000 different saddle stitch books of varying sizes all with custom information. The books can be anywhere from 4 pages to 32 pages in size. I know where they break based on the first field all books start with a letter and end with a back. The problem is I can't impose the document the way it is since every page is seen as a new record the imposition will only impose a single page and not the full range. I can not seem to find anything that lets me define a range of records to impose.
I can get the file to compose single PDFs of each book, but this is not the best way because than I have 1000 PDFs to print instead of 1 PDF or 1 VDX file. Speaking of VDX files that as the same problem as the imposition it sees every page as a single record so I can not impose it on press ether.
Here is how the merge file is setup
Letter
Report
QA
FF
rFiller
ProFund
ProFiller
Filler1
Filler2
Back
The OnRecordStart Code
if (Field("PageType") == "Letter") {
FusionPro.Composition.OpenNewOutputFile(Field("Donor ID") + "-" + Field("Donor Name") + "-Qty" + Field("Quantity") + "." + FusionPro.Composition.outputFormatExtension);
}
if (Field("PageType") == "Letter") {
FusionPro.Composition.SetBodyPageUsage("Letter",true);
}
else if (Field("PageType") == "Report") {
FusionPro.Composition.SetBodyPageUsage("Report",true);
}
else if (Field("PageType") == "QA") {
FusionPro.Composition.SetBodyPageUsage("QA",true);
}
else if (Field("PageType") == "FF") {
FusionPro.Composition.SetBodyPageUsage("FF",true);
}
else if (Field("PageType") == "OUFiller") {
FusionPro.Composition.SetBodyPageUsage("rFiller",true);
}
else if (Field("PageType") == "ProFund") {
FusionPro.Composition.SetBodyPageUsage("ProFund",true);
}
else if (Field("PageType") == "ProFiller") {
FusionPro.Composition.SetBodyPageUsage("ProFiller",true);
}
else if (Field("PageType") == "Filler1") {
FusionPro.Composition.SetBodyPageUsage("Filler1",true);
}
else if (Field("PageType") == "Filler2") {
FusionPro.Composition.SetBodyPageUsage("Filler2",true);
}
else if (Field("PageType") == "Back") {
FusionPro.Composition.SetBodyPageUsage("Back",true);
}
else {
FusionPro.Composition.SetBodyPageUsage("Letter",false);
FusionPro.Composition.SetBodyPageUsage("Report",false);
FusionPro.Composition.SetBodyPageUsage("QA",false);
FusionPro.Composition.SetBodyPageUsage("FF",false);
FusionPro.Composition.SetBodyPageUsage("rFiller",false);
FusionPro.Composition.SetBodyPageUsage("ProFund",false);
FusionPro.Composition.SetBodyPageUsage("ProFiller",false);
FusionPro.Composition.SetBodyPageUsage("Filler1",false);
FusionPro.Composition.SetBodyPageUsage("Filler2",false);
FusionPro.Composition.SetBodyPageUsage("Back",false);
}
Here is how a report may look when generated.
Letter
Report
Report
QA
Report
FF
Report
rFiller
ProFund
ProFiller
Filler1
Back
So my goal is to be able to impose the varying page counts into a saddle stitch template and or create a VDX file that sees the correct number of pages per record. Ether would solve my problem.
If I need to clear anything up please let me know I can do everything, but share the data since it is sensitive data.