JonBowman Posted January 28, 2021 Share Posted January 28, 2021 I can see graphics in my FP template, but when I compose I get the following message. I have over 4,000 PDF images and if I Add Multiple into my template it will not compose at all. Composing record #1, input record 1 Sheet #1, record #1 Graphic is not found or is not processed properly: c:\PRINT\CLIENT\\Miller.pdf. Check for file existence and that it is of the proper format. Here is the script pulling the PDF graphics. var Var1 = "PDF"; var Var2 = ".pdf"; var Var3 = "c:\\PRINT\\CLIENT\\"; var Var4 = "Miller.pdf"; temp = ''; var_extension = ''; has_extension = ''; if (Var3 == "") Var3 = Var3; else { if (FusionPro.isMac) Var3 = Var3 + ":"; else Var3 = Var3 + "\\"; } for (i=0; i<Field(Var1).length; i++) { temp = Mid(Field(Var1), Field(Var1).length-i,1); var_extension = temp + var_extension; var_extension = ToLower(var_extension); if(var_extension == ".png" || var_extension == ".pdf" || var_extension == ".gif" || var_extension == ".eps" || var_extension == ".tif" || var_extension == ".tiff" || var_extension == ".jpg" || var_extension == ".jpeg") { has_extension = "true"; i=Field(Var1).length; } else has_extension = "false"; } if(has_extension == "true") Pic = CreateResource(Var3 + Field(Var1), "graphic", true); else if (Pic.exists) { Pic.pagenumber = FusionPro.Composition.CurrentFlow.name; return Pic; } else { return CreateResource(Var3 + Var4, "graphic", true); } Using Windows 10, Fusion Pro VDP Designer 10.0.26 Quote Link to comment Share on other sites More sharing options...
MartyrSyx Posted January 29, 2021 Share Posted January 29, 2021 just a quick look, you could try to remove the extra "\\" at the end of var Var3 = "c:\\PRINT\\CLIENT\\"; change it to... var Var3 = "c:\\PRINT\\CLIENT"; It looks like another "\\" gets added to that variable later. Graphic is not found or is not processed properly: c:\PRINT\CLIENT\\Miller.pdf. Check for file existence and that it is of the proper format. Here is the script pulling the PDF graphics. var Var1 = "PDF"; var Var2 = ".pdf"; var Var3 = "c:\\PRINT\\CLIENT\\"; var Var4 = "Miller.pdf"; temp = ''; var_extension = ''; has_extension = ''; if (Var3 == "") Var3 = Var3; else { if (FusionPro.isMac) Var3 = Var3 + ":"; else Var3 = Var3 + "\\"; } Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted February 1, 2021 Share Posted February 1, 2021 I can see graphics in my FP template, but when I compose I get the following message. So you don't explicitly say what your composition setup is, but from this: Using Windows 10, Fusion Pro VDP Designer 10.0.26 It looks like what you mean is that you're actually doing the composition on another machine, i.e. a remote server, via FusionPro VDP Producer or FusionPro Server, or via some other application using FP Server. When that composition happens on that other machine, those paths to the C drive reference that machine, not your local machine running Designer, i.e. the client. Since those files are local to your client machine, the server can't access them. If you had only a few graphics for this job, you could just check the "Upload graphic files to FusionPro Producer" box on the Composition Settings (or collect with the graphics if you're using FP Server). However, since you have thousands of these graphic files, that's not a good solution to upload them every time. To make this work, you need to place the graphics in a central location, where FusionPro can find them when running on either machine (your local Designer client machine or the remote composition server). The way to do this is to put the files onto a share, such as a NAS system, and use UNC paths to reference them. So you need to talk to someone in your IT department about setting up a UNC share, and making sure that the account they have configured for the Producer or Designer compositions (as well as your own account you're using on your machine) has read access to it. Then you need to either change the rule to include the UNC path, something like this: var Var3 = "\\\\servername\\sharename\\folder\\etc\\"; (Note the need for four backslashes at the start in JavaScript to get the two backslashes that denote a UNC path.) Or better yet, instead of hard-coding the path into your rules, you can add the UNC path into the Search Path box on the Advanced tab of the Composition Settings dialog. You don't need any extra backslash escapes that way, so you can just enter the UNC path verbatim, or copy-and-paste it from the address bar in Windows Explorer. http://forums.pti.com/attachment.php?attachmentid=2125&stc=1&d=1612202027 It looks like another "\\" gets added to that variable later. I don't think this is the problem. An extra backslash between parts of the path should be ignored by Windows. Quote Link to comment Share on other sites More sharing options...
JonBowman Posted February 4, 2021 Author Share Posted February 4, 2021 Dan, Your solution was spot on! Thank you, Jon Quote Link to comment Share on other sites More sharing options...
mariaflores Posted June 19, 2023 Share Posted June 19, 2023 On 2/4/2021 at 9:18 PM, JonBowman said: Dan, g Your solution was spot on! Thank you, Jon I'm experiencing a persistent problem too, while composing using my FP template. Hoping this will help me! 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.