daanrud Posted March 5, 2015 Share Posted March 5, 2015 I am having an issue in creating rules that involve multiple graphic frames. I am creating multiple graphic frames to populate a logo that will be uploaded within Digital Storefront, so no Resources in FusionPro. The other graphic frame (I called "Front Image") will consist of a drop list of images to choose from. All images for this frame have been uploaded as Resources. The Image that is chosen in the drop list will determine which Logo graphic frame will be used to show the logo. The logo graphic frames are set at different angles, which is why the Image chosen needs to determine a specific frame for the logo. Here are the three rules I have attempted so far without any success: 1. Pic = CreateResource(Field("Logo"), "graphic", true); if (Field("Front Image")=="pcon_take_control_brochure_037.jpg" && (Pic.exists)) return Pic; else return NullResource(); 2. if (Field("Front Image")=="pcon_take_control_brochure_037.jpg") { Pic = CreateResource(Field("Logo"), "graphic", true); if (Pic.exists) return Pic; } return NullResource(); 3. if (Field("Front Image") == "pcon_take_control_brochure_037.jpg") { return Field("Logo") } return NullResource(“") Any help or suggestions with this would be wonderful. I’ve been messing with this for a while now. Thank you! Quote Link to comment Share on other sites More sharing options...
step Posted March 5, 2015 Share Posted March 5, 2015 When you say it's not working, how is it not working? What is the result of your three blocks of code above? I would think that something like your first or second attempt would work fine: var Pic = NullResource(); if (Field("Front Image") == "pcon_take_control_brochure_037.jpg"){ Pic = CreateResource(Field("Logo"), "graphic", true); } return Pic; Some dumb questions: 1. Are you creating this as a graphic rule or a text rule? It should be a graphic rule, otherwise you need to return the image with graphic tags. 2. Does the string in the conditional ("pcon_take_control_brochure_037.jpg") match exactly what's in the "Front Image" field? If the field doesn't contain the extension or includes a full path, you need to alter the conditional in order to get it to validate 'true'. 3. Did you actually add the graphics as resources? If you did you don't need the "CreateResource" function. You can just call the resource by name (assuming your resources are named exactly the same as the contents of the "Logo" field): Resource(Field("Logo")); Anyway that's about all that comes to mind at the moment since I don't have a whole lot of information to go off of. Quote Link to comment Share on other sites More sharing options...
daanrud Posted March 5, 2015 Author Share Posted March 5, 2015 All 3 rules I posted never returned a logo after I had uploaded one. The image I selected in the drop list worked fine, but no logo appeared. All my rules are created as graphics rules. All images are resources (except the logo being uploaded within Digital Storefront). The images show just fine, it's the logo that isn't showing at all. Thanks for the quick response! Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted March 5, 2015 Share Posted March 5, 2015 Can you get the log (.msg) file from the DSF composition? Quote Link to comment Share on other sites More sharing options...
daanrud Posted March 5, 2015 Author Share Posted March 5, 2015 Here is the log fileFusionPro_collect.pdf Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted March 5, 2015 Share Posted March 5, 2015 Here is the log file No, I need the composition log file, from the actual composition, not the collect log file. Quote Link to comment Share on other sites More sharing options...
daanrud Posted March 5, 2015 Author Share Posted March 5, 2015 I'm not sure if this is what you are looking for?Brochure Data-Output.pdf Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted March 5, 2015 Share Posted March 5, 2015 Yes, that's the log file. I guess the way your rules are set up, there's no warning in there if the graphic isn't found. I think you just need to add the logo as a resource in the job. Quote Link to comment Share on other sites More sharing options...
daanrud Posted March 25, 2015 Author Share Posted March 25, 2015 That's not how I'm trying to make this template work. The logo will be uploaded within DSF, so it cannot be a Resource within FusionPro. Also, with the multiple graphic frames that I have (most of them are rotated at different angles) the Critical Parser Failure appears once again. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted March 25, 2015 Share Posted March 25, 2015 That's not how I'm trying to make this template work. The logo will be uploaded within DSF, so it cannot be a Resource within FusionPro. That's not really true. You can indeed have a graphic as resource in your job, and still have it uploaded into the DSF. As long as a graphic with the same file name appears in a location in the search path, it will be found. The question is, how does the DSF present the graphic to the template at composition time? In MarcomCentral, the UNC paths to any graphics uploaded to image libraries in your store are added to the SearchPath entry in the CFG file. I assume that DSF does something similar, but I don't really know. Only someone from EFI can answer that. Also, with the multiple graphic frames that I have (most of them are rotated at different angles) the Critical Parser Failure appears once again. There's nothing I can do to help with that until, at the very least, you specify the version of FusionPro you're running. Quote Link to comment Share on other sites More sharing options...
daanrud Posted March 25, 2015 Author Share Posted March 25, 2015 Thanks Dan. I will contact EFI about my template issue. I am currently running FusionPro 9.3.6, Acrobat XI and Enfocus PitStop Pro 12 update 3 Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted March 25, 2015 Share Posted March 25, 2015 Thanks Dan. I will contact EFI about my template issue. Okay. They should be able to help. I am currently running FusionPro 9.3.6, Acrobat XI and Enfocus PitStop Pro 12 update 3 As noted here: http://forums.pti.com/showpost.php?p=15858&postcount=24 The issue with rotated frames and PitStop is fixed in the 9.3.12 build. Although you probably want to ask Support for the 9.3.15 build, which has some font fixes as well. Quote Link to comment Share on other sites More sharing options...
daanrud Posted March 26, 2015 Author Share Posted March 26, 2015 Dan, The 9.3.15 build fixed the Critical Parser Failure. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.