sphandsgraphics.com Posted March 24, 2015 Share Posted March 24, 2015 I also wanted to have a graphic field flow with text but I can't get it to work. I wanted to add a signature image at the end of the text. I can't use the inline image rule because users need to upload images for the signature. 1. Graphic field is called "SignatureUpload". 2. I added the rule below: "return CreateResource(Field("UploadSignature"), "graphic").content;" 3. The rule is a text rule and the name of the rule is "UploadSignature_Rule". 4. I added the rule to a variable text box. There is text above and below "UploadSignature_Rule". Sample of my variable text box: Dear «ClientFirstName», «StateofMarketfirstparagraph» «SecondParagraph» «UploadSignature_Rule» «Name» All the fields return text however the Signature rule returns nothing but white space. Any suggestions? Do you need more info? Thank you, Sopol I am using: Fusion Pro VDP Designer 9.1.0, Acrobat Pro 9.5.4, Mac OS X 10.6.8. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted March 24, 2015 Share Posted March 24, 2015 If you compose the job (not Preview), are there any messages about the graphic in the composition log (.msg) file? Quote Link to comment Share on other sites More sharing options...
sphandsgraphics.com Posted May 5, 2015 Author Share Posted May 5, 2015 Hi, My main goal is to have an image of a signature inside of variable text box. I want it to flow with the text. The image is going to be dynamic. The user will be able to upload an image of their signature. What would be the best approach in doing this? Below is my Fusion Pro template. http://tinypic.com/r/2n8ym9g/8 I want the image of the signature to be where the orange text is in the image. Thank you, Sopol I am using: Fusion Pro VDP Designer 9.1.0, Acrobat Pro 9.5.4, Mac OS X 10.6.8. Quote Link to comment Share on other sites More sharing options...
sphandsgraphics.com Posted May 5, 2015 Author Share Posted May 5, 2015 Here's the link to the image of my template. I don't know why it didn't show up in the post. http://tinypic.com/r/2n8ym9g/8 Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted May 5, 2015 Share Posted May 5, 2015 If you compose the job (not Preview), are there any messages about the graphic in the composition log (.msg) file? Can you answer this question? The user will be able to upload an image of their signature. Upload how exactly? In some kind of web-to-print application? Which one? MarcomCentral? EFI Digital StoreFront? A custom application? Something else? Here's the link to the image of my template. I'm not sure how you think anyone is going to be able to analyze what's going wrong just by looking at a screenshot of the output. Can you collect up the job? Quote Link to comment Share on other sites More sharing options...
sphandsgraphics.com Posted May 5, 2015 Author Share Posted May 5, 2015 I hope this helps. I have a link to my files below. https://drive.google.com/file/d/0B1l25SCqfp8EcnpFbjg4VC1mX00/view?usp=sharing Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted May 5, 2015 Share Posted May 5, 2015 (edited) I hope this helps. I have a link to my files below. https://drive.google.com/file/d/0B1l25SCqfp8EcnpFbjg4VC1mX00/view?usp=sharing Okay. I'm not sure why you couldn't just attach the file here, but thanks. So, I downloaded the files. But I don't see anywhere in there what you describe in the original post, specifically: 2. I added the rule below: "return CreateResource(Field("UploadSignature"), "graphic").content;" The rule in the template you uploaded has this syntax: return Field("UploadSignature"); But even if I change the rule in the template you uploaded to have the syntax in your original post, and check the "Treat returned strings as tagged text" box, then I still get nothing in the output, which makes sense, because there's no data for that field in the sample data file. So I'm not sure what exactly you think you're testing with this job. No data for the graphic file name means no graphic in the output. What else were you expecting to happen? There isn't even a graphic file present in what you uploaded, so what are you expecting me to test with? Anyway, if I take a graphic file from my computer, say, a file called "logo.jpg", and I copy it into the same folder with the rest of the job files, and I edit the LHD2.txt data file to put "logo.pdf" as the value for the "UploadSignature" field, then voila, I get the inline graphic in the output. If I instead modify the rule instead to call out a data field in your data file that actually has something that looks like a graphic file name in it, like so: return CreateResource(Field("UploadDBAlogo"), "graphic").content; Then I get the rule name in curly braces in the output, and nice error message in the log (.msg) file saying that that the file "SVNIC_blue.pdf" can't be found. So, the moral of the story here is that, if you actually call out a data field that actually has the name of a graphic file that actually exists on your computer (in a place where FusionPro can find it, such as in the same folder as the template PDF), then guess what? It works! If you try to call out a data field with nothing in it, or that has the name of a graphic that doesn't exist, then, of course, it doesn't work. Now that we have that straightened out, we can get back to your original question, which has something to do with "users need[ing] to upload images." If you could answer some of the questions that I asked about exactly what kind of upload is happening, in what kind of web application, then I might be able to help suggest something that will work in that system. Edited May 5, 2015 by Dan Korn Quote Link to comment Share on other sites More sharing options...
kanatschke Posted May 6, 2015 Share Posted May 6, 2015 I think that this will work for you. return '<graphic file="Image">' This is a text rule, replace Image with your image name and make sure that Treat returned strings as tagged text. Quote Link to comment Share on other sites More sharing options...
sphandsgraphics.com Posted May 11, 2015 Author Share Posted May 11, 2015 I uploaded my Fusion Pro Template into Marcom. I used the: return CreateResource(Field("UploadDBAlogo"), "graphic").content; I get an empty space instead of an image. http://tinypic.com/r/11btdp5/8 Quote Link to comment Share on other sites More sharing options...
sphandsgraphics.com Posted May 11, 2015 Author Share Posted May 11, 2015 kanatschke, What if the image is an image the user has to upload? Would the "Image" in your code be replaced with the graphic variable field name? Thank you, Sopol Phan Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted May 11, 2015 Share Posted May 11, 2015 It's still not clear exactly what is working and what's not, although at least now we know that the context into which users are trying to upload a graphic is MarcomCentral. How about this: Can you get an inline graphic to work when composing locally in Desktop, that is, in Acrobat on your computer (not through Marcom)? If not, then let's get that working first before we try it in MarcomCentral. If it's working in Desktop, then your question is a MarcomCentral specific one, which should be asked on the MarcomCentral forum. Quote Link to comment Share on other sites More sharing options...
tom rizzi Posted May 12, 2015 Share Posted May 12, 2015 This is a rule I use to place a signature into a variable text box. return '<graphic file="' + Field("Your Field Here") +".pdf" + '" height=3600>'; I am using FP 9.1 in Acrobat 10 OsX 8.5 Hope this helps. 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.