View Single Post
  #2  
Old March 13th, 2014, 12:31 PM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 955
Default Re: Right Justified text, and left line alignment

I think it has to do with using the right indent. If you left justify your text box, remove the email rule from it, you can simplify things a bit by modifying your "Test_testbox" rule to look like this:
Code:
var frameWidth = 1.89 * 7200; // 1.89 inches


var email = "email: " + ToLower(Field("Email"));
var cell = "cell: " + Rule("Cellphone_Format");

// Email Size
    var emailTM = new FusionProTextMeasure;
    emailTM.pointSize = "6 pt";
    emailTM.font = "Helvetica";
    emailTM.useTags = false;
    emailTM.italic = true;
    emailTM.CalculateTextExtent(email);
    var indent = frameWidth-emailTM.textWidth;

return "<p findent=" + indent + ">" + cell + "</p><br><p findent=" + indent + ">" + email + "</p>";
It's essentially indenting the email address to be right aligned and indents the cellphone number the same amount (from the left). Copyfit works with those modifications.
__________________
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

LinkedIn
Reply With Quote