Jump to content

Anchoring a signature to the body copy of a letter


brobinson

Recommended Posts

Hello,

 

I am trying to create a drag and drop graphic rule that will insert a particular persons signature depending on the department of the company said person works. I was successful in doing that, however, I would like to make it more of an in-line graphic so that it moves up and down with the body of the letter. Somebody showed me how to do this using javascript for an inline graphic, but the problem with that was I had to have a field in my data that stated the file name of the signature I wanted to pull. I am trying to set this up so that I do not have to add any data to the data file as it will be a weekly ordeal and the less I have to do to the data when it comes in, the better. Is there a way I can do this?

 

Thank you!

Link to comment
Share on other sites

You aren't required to put the file name in your data file for inline graphics. Assuming you've added the file as a resource for your drag-and-drop graphic rule, you can use that as an inline graphic by creating a rule that returns it (below) and inserting it in your text frame:

return Resource("Your File").content;

Make sure "treat returned strings as tagged text" is checked.

Link to comment
Share on other sites

If you just want to use a static file name for the inline graphic, then all you need to do is specify that file name in the <graphic> tag that your rule returns. This is exactly what the "signature" rule in the Cell Phone Tutorial that's installed with FusionPro does:

return "<graphic file=signature.jpg>";

Link to comment
Share on other sites

The signature is variable, depending on who is signing it. The letter is actually the same between the two companies, just one line of variable text in the last paragraph changes, and then the signature and signature block will change. So I will need to designate which signature pulls when, correct??
Link to comment
Share on other sites

The signature is variable, depending on who is signing it. The letter is actually the same between the two companies, just one line of variable text in the last paragraph changes, and then the signature and signature block will change. So I will need to designate which signature pulls when, correct??

If the signature is variable, then yes, you will need to use a variable in the rule. If you already have a Graphic rule (either a Drag-and-Drop rule or some other kind), then you can use that other rule's result in your Text rule, something like this:

return Rule("Drag-and-Drop Rule").content;

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...