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? 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. 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.