Jump to content

New Release broke rule - Logo Output based on Proof vs. Hi-Res Preview


Recommended Posts

Good Afternoon,

 

I had a rule on a product which no longer works since the recent releases, and wondered if anyone

can assist with a fix.

 

 

I have a business card product with variable logos appearing on the card, based on a drop-down of companies selected by the purchaser.

The user proof needs to show the logo, but the press proof needs to hide it.

 

To do this, the PDF has multiple pages and selects the appropriate layout based on the JobOptions "Downsample" field:

 

 

-----------------------------------------

switch (Field("Logo").toLowerCase())

{

case "IC Corporation".toLowerCase():

{

var setting = FusionPro.Composition.JobOptions["DownSample"];

var isWebPreview = (setting == "Yes");

FusionPro.Composition.SetBodyPageUsage("FullCard", isWebPreview);

FusionPro.Composition.SetBodyPageUsage("Imprint", !isWebPreview);

}

case "IC Corporation (Dealers)".toLowerCase():

{

var setting = FusionPro.Composition.JobOptions["DownSample"];

var isWebPreview = (setting == "Yes");

FusionPro.Composition.SetBodyPageUsage("FullCard", isWebPreview);

FusionPro.Composition.SetBodyPageUsage("Imprint", !isWebPreview);

}

 

 

 

------------------------------------------

 

 

 

Has the product stopped working because FusionPro.Composition.JobOptions isn't returning a value?

Is there another value I can key off of to confirm whether or not the Press proof is being run?

Link to comment
Share on other sites

As I said to you off-line, you need to post this question in the FP Web forum. The FusionPro.Composition.JobOptions object returns whatever was set in the CFG file specified on the command-line to FusionPro Server. How that gets set for an FP Server composition by FP Web, or how it was changed in the latest FP Web update, can only be answered by the FP Web team.

 

That said, you do something like this in your job to dump out all the job settings and see if you can find one to key off of on your own:

var s = "";
for (var i in FusionPro.Composition.JobOptions)
 s += i + "=" + FusionPro.Composition.JobOptions[i] + "<br>\n";
return s;

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...