Jump to content

kjacobson

Registered Users - Approved
  • Posts

    55
  • Joined

About kjacobson

  • Birthday 12/04/1980

Converted

  • Location
    Alameda, CA

Converted

  • Occupation
    Director of E-commerce & Creative Services

Converted

  • FusionPro Products
    Yes

Converted

  • FusionPro VDP software version
    Creator 11.0.8

Converted

  • OS
    Windows 7

Converted

  • Acrobat Version
    Acrobat DC
  • Homepage
    http://www.smartstorepro.com

kjacobson's Achievements

Enthusiast

Enthusiast (6/14)

  • First Post Rare
  • Collaborator Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

10

Reputation

  1. I was looking for a way to get the original code to work in Marcom, but would come to a dead end after trying some of the suggested solutions. So I thought I would share the simple solution that finally worked in case someone else had the same issue. I was able to get a version of the original code from this thread to work in Marcom by adding a height value to the graphic tag. Before adding a height, the template would find the PDF file and create the correct number of pages, but would not insert the file into the text frames. Also remember to set pathToAllPDFs = ''; //---Original---// markupToReturn += '<graphic file="' + PDFresourceRef.name + '" pagenumber = "' + pageLoop + '" position="afterline"/>'; //---Updated---// markupToReturn += '<graphic file="' + PDFresourceRef.name + '" pagenumber = "' + pageLoop + '" position="afterline" height=79200 />';
  2. I've been working with the ChangeColorInPDFBackground function. I've been able to change blocks of color in the background, but it doesn't change outlines or colored text. Is this expected functionality? It also didn't change a gradient, but I figured that would be a long shot. Code used in OnRecordStart: FusionPro.Composition.ChangeColorInPDFBackground("All", "0,100,0,0", "10"); Image of result attached.
  3. Thanks for the work around Dan. Unfortunately, I am trying to use this in a table where the width of the cell changes based on the width of a logo. It's my understanding that repeatable components do not work in tables. Perhaps I will try the same concept, but with text and graphic frames instead.
  4. Thanks for the help Dan. I've gotten this to work great in a graphic frame, but can this also be used with inline graphics? I've tried var mapPointer = CreateResource("MapPointer.pdf", "graphic", true); mapPointer.ChangeColor("All","85,0,54,52",10); return mapPointer.content; Which returns: <graphic file="MapPointer.pdf" hascolorchanges="true"><colorchange fromcolor="All" tocolor="85,0,54,52" tolerance="10" /></graphic> But the graphic does not change color.
  5. Thank you Dan. That was the information I needed to get this working. Yes, being able to use color names would be helpful. Thanks again!
  6. I am trying to get the new Change Color In PDF Resource Rule to work, but have been unsuccessful. I couldn't find instructions in the documentation, though I did see Dan's comment to jimmyharington on the new FP release thread (http://forums.pti.com/showthread.php?t=5390). I've tried using the XML template as well as writing my own rule using <resource>.ChangeColor(string, string, number). I've tried using color names and color values. The only change I can manage to get to happen is when the color value to change is set to "All" the colors in the PDF change to 100% black. What am I missing? Can someone provide me with a working example or let me know what values the XML template is expecting? My test file is attached. Thanks! ColorChangeTest-191223.zip
  7. I am using the basic code to add a watermark to templates for proofing. onlinePreviewVal = FusionPro.Composition.JobOptions.isOnlinePreview; desktopPreviewVal = FusionPro.Composition.isPreview; if (onlinePreviewVal == "Yes" || desktopPreviewVal == true) { return CreateResource("AC-Watermark-Draft-Multi.pdf"); } else { return NullResource(); } This works great when proofing in the store, but once the product is ordered the watermark remains on the downloadable Low Res PDF in the Order Manager. Has anyone found a way to offer a non-watermarked low res PDF after the product has been ordered?
  8. This is more of a general coding question, but it is MarcomCentral related, so hopefully a guru can help me. I am creating an email signature template with the HTML product on MarcomCentral. For FusionPro templates I use a Google Sheets file as an external data file to auto populate address information based on the location that is chosen. The goal is to do that same with the email signature template. I've Googled and researched, but haven't found an ideal way of making this happen using pure JavaScript & HTML. Most of my JavaScript knowledge is FusionPro based with some website experience, plus I think I may need to use another programming language like PHP or something to handle the database connection. I would greatly appreciate it if someone with experience with external data files, either with the HTML product or in a website environment, could point me in the right direction.
  9. The PDF is the background of the file. There isn't a way to position a frame behind the base PDF. The work around to this is to create a graphic frame the size of your PDF or break up the PDF and just use the element that you want to overlay the image. Insert the PDF or overlay element into that frame. That way you can put the image frame behind the overlay frame. The overlay will need to have transparency to see the frames behind it. Example: Base PDF Background Variable Image frame PDF overlay frame If you need more explanation, can you upload a file so I can be a bit more specific.
  10. Hi, not sure why the rule worked before you added the backer. I couldn't find anything in the code that would make it work as you described. That said, I was able to tweak the Phone Number Rule. Revised code I removed Toll Free from numbers and put in a condition to add it to numbers only if it isn't none or blank. I included a condition in the for loop. var numbers = { "Office": Rule("Office Rule"), "Cell": Rule("Cell Rule"), "Fax": Rule("Fax Rule"), }; if ((Field("Toll-Free")!="none") && (Field("Toll-Free")!="")) { numbers["Toll-Free"] = Field("Toll-Free")+Rule("Hide Ext Label Rule"); } var result = []; for (var label in numbers) if ((numbers[label] != "none") && (numbers[label] != "")) { result.push(label + ": " + numbers[label]); } var delim = '<color name = "PANTONE 201 C"> • </color>'; if (result.length > 2 && numbers['Toll-Free']) return result.splice(0,2).join(delim) + '<br>' + result.join(delim); //else return result.join(delim); A couple of other changes you will need to make: Remove the Hide Ext Label Rule from your Contact Info Frame Add a space before 'ext' in your Hide Ext Label Rule if (Field("ext") == "") return ""; else return ' ext.' +Field("ext"); On another note, there seems to be a lot of fields and rules that aren't being used, which is one of the reason this took a little while to figure out. You may want to remove the extra code to make it easier to update in the future.
  11. I opened up the file that had the backer included. Removed the number from the Toll-Free field and the Toll-Free label and the number disappeared (see screen shot attached). Is that how it is suppose to work?
  12. Hi Dave, One option would be to use CSS to hide the ID for that particular menu item. /*Example*/ #menuLinkItem_1887899_Marketing { display: none; } Note: this will not hide the category in the catalog tree.
  13. Hi Josh, This should get you started. You can put this in your OnRecordRule and it will return "Error" when a field is empty. for (var field in FusionPro.Fields) { result = Field(field); if (result == "") { result = "ERROR" } FusionPro.Composition.AddVariable(field, result); } More information about this can be found in these threads: http://forums.pti.com/showthread.php?t=5040 http://forums.pti.com/showthread.php?t=1913 UPDATE: This doesn't appear to work to replace fields placed in rules. I will see if I can find a solution unless you or someone else beats me to it. (c: Hope this helps. - K
  14. Hi again! I answered this on your original thread. Let me know if that solution doesn't work for you. http://forums.pti.com/showthread.php?p=21709#poststop
×
×
  • Create New...