Jump to content

gregmaze

Registered Users - Approved
  • Posts

    21
  • Joined

Converted

  • FusionPro Products
    Yes

Converted

  • FusionPro VDP software version
    12.1.2

Converted

  • OS
    Mac OS X 10.15.7

Converted

  • Acrobat Version
    Acrobat DC

gregmaze's Achievements

Apprentice

Apprentice (3/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

10

Reputation

  1. Thank you very much for looking at this. I was not sure if there was something I was missing... I will now go to support. Thanks again for your help Greg
  2. Good Morning Dan, Sorry it has taken me a couple days to reply. Thank you for your assistance. I changed my rule to the rule you sent but unfortunately it did the same. But after seeing your script, I do need to improve my coding. I also entered a text box and entered the script return Field("PMP Logo"); and got a very strange result I am definitely confused now. I hope you can assist further Thanks Greg
  3. Hello... I am having a problem getting a copyfitline with an inline graphic to work properly. This template will ultimately be on MarcomCentral Web. When I preview my template locally the Copyfitline rule works fine, but when I upload it to MarcomCentral's web the problems start. The rule is if (Field("Name")!="" & Field("PMP Logo")!="") return CopyfitLine("", Field("Name") + " " + Resource("PMP logo").content, "Aparajita Bold", 11, 144, 6, true) else if (Field("Name")!="" & Field("PMP Logo")=="") return CopyfitLine("", Field("Name"), "Aparajita Bold", 11, 144, 6, true) else return ""; When the logo is requested the logo appears fine, but when the logo is not requested it still appears. This only happens when I run this template within MarcomCentral. I would appreciate any assistance on this. Thanks in advance Greg Mac 10.11.6 FusionPro VDP Designer 10.0.3
  4. Hello Naval, This code should work for you... replace "Field(“Your Field”)" with the field you are using. return '•' + " " + Field(“Your Field”).replace(/<p>/g, "<p> • ");
  5. Hello Dan, Thank you for the reply. I was finally able to get it to work... but as I noticed after reading your solution. You code is much cleaner... My code did have a lot of "Fudging" though. I will use your solution, it is much easier to understand too... Thanks again
  6. Hello... I am trying to create a table that has 3 variable items. Logo, Department and Division. The logo has to be in the left, and the Department and Division are on the right, and the Division will be under the Department and flush right. The attached zip file will show that I can get this, except I want the logo to be justified/positioned to the bottom of the second line. My problem is I cannot figure out how to get the logo to be positioned at bottom. The sample shows it at the bottom of baseline line 1. I would appreciate any help someone can give. Thanks Greg Mac OS 10.13 Fusion Pro 10 Var-Notepad-v3.zip
  7. Hello Stepp, Thank you very much for the help. This works perfectly. A much simpler code... I enjoy reading your's and others' comments on this forum. This is a great learning place. Thanks again
  8. Greetings all... I have a javascript rule I am trying to create that I was hoping someone might help with a problem. I have a business card that has a Name Line and a degree line. The user can choose up to 3 degrees, which will be separated by a comma. If the Degrees can fit on the Name line the customer would like to have it appear there. If all the degrees cannot fit on the name line together, all degrees should then be on the 2nd line. The script below is what I have so far. I have it pretty much working, except when the degrees go to the 2nd line. I am having a problem with commas and spaces. Here is the 2 versions it should look like. Mary Smith, CFO or Mary Smith CFO, COO, CEO currently for the 2nd line option it appears Mary Smith CFOCOOCEO, here is the code: var Name = [Field("Name")] var Degree = [Field("Degree1") + Field("Degree2") + Field("Degree3")]; var result = ""; var test = ""; var tm = new FusionProTextMeasure; var frameWidth = 1.72; tm.pointSize = "10 pt"; tm.font = "DINOT-Medium"; tm.useTags = true; for (var p=0; p<Name.length; p++) { if (Name[p] != "" + Degree[p] !="") { test += Name[p] + Degree[p]; tm.CalculateTextExtent(test); if (tm.textWidth < frameWidth * 7200) result += Name[p] + ", " + Degree[p]; else { test += Name[p] + Degree[p]; result += Name[p] + "<br />" + (Degree[p] + ", "); } } } return Left(result,result.length); Thank you in advance for the help if possible. Greg Mac OS 10.11.3 Fusion Pro 10.0.3
  9. Greetings Marcom users... I am trying to create a template where the user can select a logo and the text will change to whatever color is associated with the logo. I have tried this on my desktop and it worked but when I uploaded it to the FP Web server it does not work. First the code: This is a "onrecordstart" callback rule... if (Field("Logo").indexOf("BlueLogo.pdf") > -1) FindTextFrame("side1").content = '<color name = "PANTONE Process Cyan C">' + FindTextFrame("side1").content; if (Field("Logo").indexOf("GreenLogo.pdf") > -1) FindTextFrame("side1").content = '<color name = "PANTONE 3268 C">' + FindTextFrame("side1").content; if (Field("Logo").indexOf("PurpleLogo.pdf") > -1) FindTextFrame("side1").content = '<color name = "PANTONE 2415 C">' + FindTextFrame("side1").content; if (Field("Logo").indexOf("RedLogo.pdf") > -1) FindTextFrame("side1").content = '<color name = "PANTONE 485 C">' + FindTextFrame("side1").content; if (Field("Logo").indexOf("YellowLogo.pdf") > -1) FindTextFrame("side1").content = '<color name = "PANTONE 137 C">' + FindTextFrame("side1").content; if (Field("Sides").indexOf("1") > -1) FusionPro.Composition.SetBodyPageUsage("2", false); I tried the span tag at first and it worked great on my desktop, not on the server. Once I change the code from "return '<span color="PANTONE 2415 C">'; " to '<color name = "PANTONE 137 C">', it broke... Would anyone have any good ideas on why this maybe doing this? Thank you for any assistance... Greg Mac OS 10.11.3 FusionPro 9.3.36
  10. Good Morning Ste and Dan, I just wanted to followup concerning this thread. The solution Ste first gave worked exactly as I wanted it to. This is a much better solution than I used. Thank you both for the solutions to try. I wanted to especially Thank both of you for actually breaking down what was/is going on in the scripts. That was very helpful in learning the code as opposed to just using it. Again thank you very much and have a great day!!!
  11. Hello Ste and Dan, Thank you for these great responses... Your responses have given me some great ideas to try to wrap my head around. I did come up with another solution because of short time frame but I do want to try out these solutions... After reading Ste solution, I realized how extensive javascript can be. Again thank you for your help
  12. Greetings all... I am having a small problem with formatting arrows/bullets. I am trying to get a colored arrow preceding text within a line. When the customer adds text in Marcom Central text editor, the preceding symbol(arrow) is a different color than the text. After entering a return(Mac) key, adding additional lines, there should still be a colored symbol(arrow). I am attaching a screen shot to demonstrate what I am getting. The symbol shows up in the right place, but the color does not change. I am also attaching the code I am using... this is the main code: return Rule("Change detail font color").replace(/<p>/g, "<p> <span><f name =\"Arial Bold\"><color name='PANTONE 382 U'> ⇒ </span>"); "Change detail font color" rule: if (Field("Kitchen Detail")!= "") { return '<span><f name =\"Arial Bold\"><color name="PANTONE 382 U"> ⇒ </span>' + Field("Kitchen Detail"); } return ""; I would appreciate any assistance... Thanks
  13. Hello Dan, Yes there are 15 fields at most that will be used. This last script leaves a bullet and blank if 1 or more of the 15 does not get chosen. Thanks for your help.
×
×
  • Create New...