ThomasLewis Posted October 27, 2011 Share Posted October 27, 2011 Is there a way to determine if the "Use Imposition Definition" box is checked in the OnNewOutputFile callback rule? Something along the lines of FusionPro.Composition.isImposed What I am aiming to do here is have the name of the output file appended if the document used an fpi file. Or even better yet, have the actual name of the fpi file used appended to the name. Any suggestions? Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted October 28, 2011 Share Posted October 28, 2011 Is there a way to determine if the "Use Imposition Definition" box is checked in the OnNewOutputFile callback rule? Something along the lines of FusionPro.Composition.isImposed Yes, the value of this property will be either "Yes" or "No": FusionPro.Composition.JobOptions.UseImpositionDefFileWhat I am aiming to do here is have the name of the output file appended if the document used an fpi file. Or even better yet, have the actual name of the fpi file used appended to the name. Any suggestions? The name of the FPI file is in this property: FusionPro.Composition.JobOptions.ImpositionDefFileName Although this may have a path specfier, in which case you probably want to use this: GetFileName(FusionPro.Composition.JobOptions.ImpositionDefFileName) You can do something like this to override the output file name in the OnJobStart callback rule: FusionPro.Composition.outputFileName += "-" + GetFileName(FusionPro.Composition.JobOptions.ImpositionDefFileName);Of course, this will make your output file have a .fpi extension. I'll leave modifying the logic to fix that to you. Quote Link to comment Share on other sites More sharing options...
ThomasLewis Posted October 28, 2011 Author Share Posted October 28, 2011 This worked perfect! Thank you so much. Is there any documentation on the FusionPro.Composition.JobOptions object? It does not appear to be mentioned in the Language Reference section of the Rules System Guide. I would love to get more info if there is more to it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.