Go Back   MarcomCentral (PTI) and FusionPro User Communities > Support > Fonts

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 11th, 2020, 11:23 AM
Jenn Koder Jenn Koder is offline
Forum n00b
 
Join Date: Mar 2016
Posts: 7
Default Changing font color based on background

Hi, I’m hoping someone can help me and that this is possible to do… I would like my font color to change based on the different backgrounds that can be chosen within my template. For instance, if the customer selects the blue background, the text should be white but if they pick the gold background, the text should be black and so on. I’ve tried this as a rule:

var color = '';
switch (Field("Background")){
case "2 x 12 Slideout_Blue":
fontColor = "White";
break;
case "2 x 12 Slideout_Gold":
fontColor = "Black";
break;
case "2 x 12 Slideout_Silver":
fontColor = "Black";
break;
case "2 x 12 Slideout_Walnut":
fontColor = "White";
break;
case "2 x 12 Slideout_White":
fontColor = "PANTONE 281 C";
break;
default:
color = "White";
}
return '<color name="' + color + '">' + ToUpper(Field("Name")) + '</color>';


But it doesn’t quite work, I’m hoping I’m on the right track though.

Thank you in advance.
FusionPro 10.0.26 | Adobe Acrobat Pro 2017 | OS: Windows 10
Reply With Quote
  #2  
Old February 11th, 2020, 03:39 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,476
Thumbs up Re: Changing font color based on background

I think you're close, but you have a couple of different variable names. Most of those cases are setting a variable named "fontColor", but then you use the variable "color" on the last line. If you change all the "fontColor" to "color", or vice-versa, then I think it will work:
Code:
var color = '';
switch (Field("Background"))
{
    case "2 x 12 Slideout_Blue":
        color = "White";
        break;
    case "2 x 12 Slideout_Gold":
        color = "Black";
        break;
    case "2 x 12 Slideout_Silver":
        color = "Black";
        break;
    case "2 x 12 Slideout_Walnut":
        color = "White";
        break;
    case "2 x 12 Slideout_White":
        color = "PANTONE 281 C";
        break;
    default:
        color = "White";
}
return '<color name="' + color + '">' + ToUpper(TaggedDataField("Name")) + '</color>';
That said, since I'm here, there are some ways to reduce the code a bit. First of all, following the DRY Principle, you can combine some of those cases:
Code:
var color = '';
switch (Field("Background"))
{
    case "2 x 12 Slideout_White":
        color = "PANTONE 281 C";
        break;
    case "2 x 12 Slideout_Gold":
    case "2 x 12 Slideout_Silver":
        color = "Black";
        break;
    case "2 x 12 Slideout_Walnut":
    case "2 x 12 Slideout_Blue":
    default:
        color = "White";
}
return '<color name="' + color + '">' + ToUpper(TaggedDataField("Name")) + '</color>';
You also don't need to specify cases that match the default case:
Code:
var color = '';
switch (Field("Background"))
{
    case "2 x 12 Slideout_White":
        color = "PANTONE 281 C";
        break;
    case "2 x 12 Slideout_Gold":
    case "2 x 12 Slideout_Silver":
        color = "Black";
        break;
    default:
        color = "White";
}
return '<color name="' + color + '">' + ToUpper(TaggedDataField("Name")) + '</color>';
And you don't even need the default at all if you set that as the initial condition:
Code:
var color = 'White';
switch (Field("Background"))
{
    case "2 x 12 Slideout_White":
        color = "PANTONE 281 C";
        break;
    case "2 x 12 Slideout_Gold":
    case "2 x 12 Slideout_Silver":
        color = "Black";
        break;
}
return '<color name="' + color + '">' + ToUpper(TaggedDataField("Name")) + '</color>';
You could also get rid of the break statements by putting that switch statement into a function, like so:
Code:
function GetColorForBackground()
{
    switch (Field("Background"))
    {
        case "2 x 12 Slideout_White":
            return "PANTONE 281 C";
        case "2 x 12 Slideout_Gold":
        case "2 x 12 Slideout_Silver":
            return "Black";
        default:
            return 'White';
    }
}
return '<color name="' + GetColorForBackground()+ '">' + ToUpper(TaggedDataField("Name")) + '</color>';
And if you want to get really JavaScript'y with this, you could replace the switch statement completely with a mapping, like so:
Code:
var ColorForBackground = 
{
    "2 x 12 Slideout_White": "PANTONE 281 C",
    "2 x 12 Slideout_Gold": "Black",
    "2 x 12 Slideout_Silver": "Black",
}
var color = ColorForBackground[Field("Background")] || "White";
return '<color name="' + color + '">' + ToUpper(TaggedDataField("Name")) + '</color>';
Though, if you really have a lot of things to map like this, you could even do most of that mapping without writing any code at all, by using a Switch Wizard rule to assign background names to color names, like so:


Then your JavaScript rule could just call that Switch rule:
Code:
return '<color name="' + Rule("ColorForBackground") + '">' + ToUpper(TaggedDataField("Name")) + '</color>';
Yet another option would be to add colors to your Colors list, with color names the same as, or corresponding to, the background names. In other words, have colors with names something like "BKG: 2 x 12 Slideout_White", "BKG: 2 x 12 Slideout_Gold", "BKG: 2 x 12 Slideout_Silver", etc. Then all the rule needs to do is call out that color:
Code:
return '<color name="BKG: ' + Field("Background") + '">' + ToUpper(TaggedDataField("Name")) + '</color>';
If you set the variable for this rule itself in White in the text frame, it will always default to White, even if you get warnings about missing colors for ones that you don't have explicitly mapped.
Attached Images
File Type: jpg ColorFromBackgroundSwitchRule.jpg (58.2 KB, 31 views)
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});

Last edited by Dan Korn; February 11th, 2020 at 03:45 PM..
Reply With Quote
  #3  
Old February 12th, 2020, 07:56 AM
Jenn Koder Jenn Koder is offline
Forum n00b
 
Join Date: Mar 2016
Posts: 7
Default Re: Changing font color based on background

Thanks Dan, This worked perfectly! Some of this is over my head so I went with the option where you suggested setting 'White' as the initial condition as the default. There is one more rule in my template that works but doesn't seem to work well. I'm wondering if it's because I don't know the right way to simplify it like you do. My template calls for two different sizes (10x2 & 12x2) and two different fonts (Gotham and Goudy). I have 4 Pages and I have named them accordingly in the "Manage Pages/Page usage" section. Here is what I have in my "OnRecordStart" Callback Rule:

// Turn on pages as per size selected
ImageLocation=Field("Size");
switch(ImageLocation){
case "10 x 2":
FusionPro.Composition.SetBodyPageUsage("Gotham",tr ue)+("10 x 2",true);
FusionPro.Composition.SetBodyPageUsage("Goudy",tru e)+("10 x 2",false);
break;
case "12 x 2":
FusionPro.Composition.SetBodyPageUsage("Goudy",tru e)+("12 x 2",true);
FusionPro.Composition.SetBodyPageUsage("Gotham",tr ue)+("12 x 2",false);
break;
}

// ==========================

if(Field("Font")=="Goudy"){
FusionPro.Composition.SetBodyPageUsage("Goudy",tru e);
FusionPro.Composition.SetBodyPageUsage("Gotham",fa lse);
} else {
FusionPro.Composition.SetBodyPageUsage("Gotham",tr ue);
FusionPro.Composition.SetBodyPageUsage("Goudy",fal se);
}

Can you help me or would you like me to post this to the forum?

Thanks again for all your help!
Reply With Quote
  #4  
Old February 12th, 2020, 10:28 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,476
Default Re: Changing font color based on background

Quote:
Originally Posted by Jenn Koder View Post
Thanks Dan, This worked perfectly! Some of this is over my head so I went with the option where you suggested setting 'White' as the initial condition as the default.
Great!
Quote:
Originally Posted by Jenn Koder View Post
Can you help me or would you like me to post this to the forum?
Usually a new question should go into a separate thread. But, we're here, so I'll answer here.
Quote:
Originally Posted by Jenn Koder View Post
There is one more rule in my template that works but doesn't seem to work well.
Can you be more specific about exactly what is not working, and how the actual results are different than the expected results?

Quote:
Originally Posted by Jenn Koder View Post
My template calls for two different sizes (10x2 & 12x2) and two different fonts (Gotham and Goudy). I have 4 Pages and I have named them accordingly in the "Manage Pages/Page usage" section.
Named them accordingly... how? What exactly are the page names?

Posting the collected template might be the best way to get us both on the same page (pun slightly intended).

I do see a few issues with the code, though:
Quote:
Originally Posted by Jenn Koder View Post
FusionPro.Composition.SetBodyPageUsage("Gotham",tr ue)+("10 x 2",true);
That's not a valid way to call that function. If you want to set two different pages, you have to make two different calls to the function, like so:
Code:
FusionPro.Composition.SetBodyPageUsage("Gotham",true);
FusionPro.Composition.SetBodyPageUsage("10 x 2",true);
Again, I don't know for sure what the full correct answer is without knowing more about the job, but the usual way to reduce these kinds of page usage rules is to first set all of the relevant pages to be initially Unused in the Page Usage dialog (where you set their names). Then the rule only needs to activate the ones that it needs, like so:
Code:
FusionPro.Composition.SetBodyPageUsage(Field("Size"), true);
Now, if I assume that your pages are named something like this:
  • 10 x 2 Gotham
  • 10 x 2 Goudy
  • 12 x 2 Gotham
  • 12 x 2 Goudy
And if you set them all to be Unused initially in the Page Usage dialog, then I think the rule only needs to be one line, like so:
Code:
FusionPro.Composition.SetBodyPageUsage(Field("Size") + " " + Field("Font"), true);
You could also probably set the job up to use other rules to change the font, without having to have an entirely different set of pages for each font. But I'd have to see the job to make a more specific suggestion in that regard.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
  #5  
Old February 12th, 2020, 11:21 AM
Jenn Koder Jenn Koder is offline
Forum n00b
 
Join Date: Mar 2016
Posts: 7
Default Re: Changing font color based on background

Quote:
Can you be more specific about exactly what is not working, and how the actual results are different than the expected results?
When I'm testing the template, I can chose the size and the font I want but, if I change either of those options, I have to choose the other again as well in order for it to change.
Quote:
Named them accordingly... how? What exactly are the page names?
I have my pages all set for "unused" and named as followed: Page1 is 10 x2, Page 2 is Goudy, Page 3 is 12 x 2, and Page 4 is Gotham
Quote:
I do see a few issues with the code, though:
FusionPro.Composition.SetBodyPageUsage("Gotham",tr ue)+("10 x 2",true);
I don't know why The "true" came through like that. I'm going to attempt to attach my template.

Hopefully I do this right!
Attached Files
File Type: zip Slideout Desktop.zip (13.79 MB, 4 views)
Reply With Quote
  #6  
Old February 12th, 2020, 03:16 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,476
Default Re: Changing font color based on background

Quote:
Originally Posted by Jenn Koder View Post
I have my pages all set for "unused" and named as followed: Page1 is 10 x2, Page 2 is Goudy, Page 3 is 12 x 2, and Page 4 is Gotham
Okay, thanks. What I still don't know is what you're trying to accomplish, i.e. the requirements. Can you explain what pages should be activated under what circumstances?
Quote:
Originally Posted by Jenn Koder View Post
I don't know why The "true" came through like that.
If you're posting code, you should click the "Go Advanced" button, then select the code and click the # button to put it into a code block, like in my posts. That will preserve the spacing and everything else properly.

But, that extra space isn't really what's wrong with your function call. As I said, the problem is that you seem to be trying to trigger more than one page in a single call to FusionPro.Composition.SetBodyPageUsage, which doesn't work.
Quote:
Originally Posted by Jenn Koder View Post
I'm going to attempt to attach my template.
Hopefully I do this right!
Yes, I got it. Thanks. But I still need to know exactly what the requirements are in terms of when each page is supposed to be activated.

Let's start with this: How many total pages are you trying to output in total for each record? Do you want to output just one page, which has a specific size and font? Or do you want to output two (facing) pages of the same size?
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
  #7  
Old February 13th, 2020, 10:11 AM
Jenn Koder Jenn Koder is offline
Forum n00b
 
Join Date: Mar 2016
Posts: 7
Default Re: Changing font color based on background

Quote:
But, that extra space isn't really what's wrong with your function call. As I said, the problem is that you seem to be trying to trigger more than one page in a single call to FusionPro.Composition.SetBodyPageUsage, which doesn't work.
Quote:
Let's start with this: How many total pages are you trying to output in total for each record? Do you want to output just one page, which has a specific size and font? Or do you want to output two (facing) pages of the same size?
You are a Genius!! My apologies for not realizing that you solved my size/font switching issue already. The output should only be one page (which it is), I renamed my pages according to your previous stated assumption
  • 10 x 2 Gotham
  • 10 x 2 Goudy
  • 12 x 2 Gotham
  • 12 x 2 Goudy
and changed my OnRecordStart rule to the rule you wrote.
Code:
FusionPro.Composition.SetBodyPageUsage(Field("Size") + " " + Field("Font"), true);
That did it! I apologize for not seeing that sooner, I have no official training in JavaScript, building templates and writing code was a task given to me to figure out on my own. This is the most complex template I’ve built so far and I am very grateful for all your help!
Reply With Quote
  #8  
Old February 13th, 2020, 12:34 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,476
Default Re: Changing font color based on background

Quote:
Originally Posted by Jenn Koder View Post
You are a Genius!! My apologies for not realizing that you solved my size/font switching issue already. The output should only be one page (which it is), I renamed my pages according to your previous stated assumption
  • 10 x 2 Gotham
  • 10 x 2 Goudy
  • 12 x 2 Gotham
  • 12 x 2 Goudy
and changed my OnRecordStart rule to the rule you wrote.
Code:
FusionPro.Composition.SetBodyPageUsage(Field("Size") + " " + Field("Font"), true);
That did it! I apologize for not seeing that sooner, I have no official training in JavaScript, building templates and writing code was a task given to me to figure out on my own. This is the most complex template I’ve built so far and I am very grateful for all your help!
Great! Glad it's working now.

Though I feel compelled to point out that this job can be accomplished in a much simpler way. If all you're doing is changing the font for some text, then you don't really need a whole new page for each font; you can just apply the font to the text with tags, like you do with the color:
Code:
var color = 'White';
switch (Field("Background"))
{
    case "White":
        color = "PANTONE 281 C";
        break;
    case "Gold":
    case "Silver":
        color = "Black";
        break;
}

var font = Field("Font");
switch (font)
{
    case "Goudy":
        font = "Goudy Old Style";
        break;
}

return '<color name="' + color + '">' + '<f name="' + font + '">' + (TaggedDataField("Name")) + '</color>';
I've attached a version of the template that has the above rule, with just two pages, and one line in OnRecordStart to call out the page by size:
Code:
FusionPro.Composition.SetBodyPageUsage(Field("Size"), true);
You do still need different pages for the different output page sizes, at least in a pure Creator workflow where you're composing locally in Acrobat. If you compose via FusionPro VDP Producer or Server, or via another application that utilizes FP Server, such as MarcomCentral or EFI Digital StoreFront, then you can have just a single page and resize it programmatically. We call this an Ad Resizing job. I can post an example of this too if you want.
Attached Files
File Type: pdf Walnut_2x10 - Dan-Creator.pdf (1.22 MB, 6 views)
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
  #9  
Old February 14th, 2020, 09:52 AM
Jenn Koder Jenn Koder is offline
Forum n00b
 
Join Date: Mar 2016
Posts: 7
Default Re: Changing font color based on background

Quote:
Great! Glad it's working now.

Though I feel compelled to point out that this job can be accomplished in a much simpler way. If all you're doing is changing the font for some text, then you don't really need a whole new page for each font; you can just apply the font to the text with tags, like you do with the color:
I had a feeling I was doing it "the long way". Thank you so much! I will be sure to use the rules you gave me and as few pages as possible from here on out. Once my customer sees this doesn't have to be separate templates, I'm sure it will open the door for more options
Quote:
You do still need different pages for the different output page sizes, at least in a pure Creator workflow where you're composing locally in Acrobat. If you compose via FusionPro VDP Producer or Server, or via another application that utilizes FP Server, such as MarcomCentral or EFI Digital StoreFront, then you can have just a single page and resize it programmatically. We call this an Ad Resizing job. I can post an example of this too if you want.
This template is great! I do not
use MarcomCentral or EFI Digital StoreFront. I have to upload my template to a website (WebCRD), run by Rochester Software Associates, I know I can either use Adobe Acrobat or InDesign, but I believe this is how I have to create it. As far as I'm concerned, you've already gone above and beyond and for that, I am extremely grateful.
Reply With Quote
  #10  
Old February 19th, 2020, 09:07 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,476
Default Re: Changing font color based on background

Quote:
Originally Posted by Jenn Koder View Post
This template is great! I do not use MarcomCentral or EFI Digital StoreFront. I have to upload my template to a website (WebCRD), run by Rochester Software Associates, I know I can either use Adobe Acrobat or InDesign, but I believe this is how I have to create it. As far as I'm concerned, you've already gone above and beyond and for that, I am extremely grateful.
No problem. Though, our good friends at RSA definitely use FusionPro Server in their WebCRD application, so you actually can take advantage of page/ad resizing when composing via that app. I'll see if I have time this week to make the changes so that you can have just a single resizable page in the template.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:09 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.