stellasparkles Posted January 26, 2010 Share Posted January 26, 2010 A new capability has been added to MarcomCentral that allows FusionPro template designers (using FusionPro® Desktop 6.0 or later) to detect if a given template composition is occurring as a preview in the MarcomCentral Store or as a final press-ready output file in the Dashboard after an order is placed. Using this capability, FusionPro template designers can add template logic to detect if a given composition is a preview or press composition and create a simulated watermark that will appear for the preview but not on the actual press file. This can be done with either a text frame or a graphic frame containing a simple JavaScript rule, which is positioned on the top layer of the FusionPro template and contains the watermark text or graphic. JavaScript logic can be added to a template utilizing a newly exposed “isOnlinePreview” property which will either be “Yes” if the composition is a Store preview or “No” if the composition is a press-output file composed in the Dashboard after an order is placed. A second “isPreview” property can be added to the logic so that the when true, the watermark can be seen in the FusionPro Desktop preview. Please see the sample template demonstrating this capability which is attached to this post, if interested. Sample Watermark Rule – Text This text rule should be placed in a text frame which sits on the top layer of the template, formatted in the desired text, size and color. //access the “isOnlinePreview” property and the “isPreview” property onlinePreviewVal = FusionPro.Composition.JobOptions.isOnlinePreview; desktopPreviewVal = FusionPro.Composition.isPreview; //if this is a preview composition or a desktop preview //then return the text “PROOF” if (onlinePreviewVal == "Yes" || desktopPreviewVal == true) { return "PROOF"; } else { return ""; } Sample Watermark Rule – Graphic This graphic rule should be placed in graphic frame which sits on the top layer of the template, and accesses a graphic resource called “Proof”. The resource can be any type of accepted graphic image that represents the desired watermark. //access the “isOnlinePreview” property and the “isPreview” property onlinePreviewVal = FusionPro.Composition.JobOptions.isOnlinePreview; desktopPreviewVal = FusionPro.Composition.isPreview; //if this is a preview composition or a desktop preview //then return the text “PROOF” if (onlinePreviewVal == "Yes" || desktopPreviewVal == true) { return Resource("Proof"); } else { return NullResource(); }watermark sample template.zip Link to comment Share on other sites More sharing options...
marcuslayton Posted June 29, 2010 Share Posted June 29, 2010 wow - that is fantastic - works like a charm - thanks for the feature! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.