Jump to content

Is it possible to switch Imposition Definitions OnRecordStart?


S_Black

Recommended Posts

I have multipe PDF files that need VDP, stacked & imposted. Some are simplex and others are duplex.

 

I have the OnRecordStart set to pull the backside of the PDF if the PDF has two pages

FusionPro.Composition.SetBodyPageUsage("Page2", Resource(Field("RemitPartID")+".pdf").countPages == 2)

if (FieldChanged("PDM_Vsn"))
{
   if (Resource(Field("RemitPartID")+".pdf").countPages == 1)
   {
       FusionPro.Composition.OpenNewOutputFile("10937 AD No.10 Remits " + Field("PDM_Vsn") + " Simplex_Print Ready." + FusionPro.Composition.outputFormatExtension);
       FusionPro.Composition.StartNewStack();
   }
   else
   {
       FusionPro.Composition.OpenNewOutputFile("10937 AD No.10 Remits " + Field("PDM_Vsn") + " Duplex_Print Ready." + FusionPro.Composition.outputFormatExtension);
       FusionPro.Composition.StartNewStack(); 
   }
}

Using this I can compose the document one time for all versions in the job, but the second page is removed because the imposition definition is simplex.

The number of pages in this record does not match the imposition signature: 1 pages will be truncated.

 

Is it possible to switch the Imposition Definition during the OnRecordStart so that any 2-Page documents impose using a duplex imposition and any 1-Page documents impose with a simplex?

Link to comment
Share on other sites

Is it possible to switch the Imposition Definition during the OnRecordStart so that any 2-Page documents impose using a duplex imposition and any 1-Page documents impose with a simplex?

No. You can't currently modify the imposition in a rule, for either FusionPro VDP Server, Producer, or Creator compositions.

 

In a FusionPro VDP Server workflow, you can change the ImpositionDefFileName entry in the CFG file to point to a different Imposition file for a composition.

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