Jump to content

CopyfitLine and InLine Graphics


Recommended Posts

Is it possible to put an Inline Graphic in a CopyfitLine statement?

 

I have a business card that has two lines of phone numbers and email with icons. I would like the email address to Copyfit but not the phone numbers.

 

Line 1: Phone Icon, Phone, Cell Icon, Cell, Email Icon, Email

 

I have been trying to get the image to come in as an inline resource. But I have had no success. Below is the script I am working with. It only has one field right now, trying to troubleshoot why the icon won't come in.

 

if (Field("Email") != "")

   return CopyfitLine(Resource("FCBCIconsEmail.pdf") + " ", Field("Email")+ "@" +Field("emailDomain"), "Vaud", 8, 228, 4, true);
   else
   return "";

 

I may also be going at this all wrong. Any direction would be helpful.

Thanks, Steve

Link to comment
Share on other sites

Try this:

if (Field("Email") != "")

   return CopyfitLine(Resource("FCBCIconsEmail.pdf")[color="Red"].content[/color] + " ", Field("Email")+ "@" +Field("emailDomain"), "Vaud", 8, 228, 4, true);
   else
   return "";

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...