Skip navigation
Currently Being Moderated

Using Italics in <cfpdfform>

Apr 3, 2012 8:39 AM

I'm populating a pdf using <cfpdfform> and action="populate". Then I'm using the <cfpdfformparam> tag to insert a variable, that is basically a long string concatenated with other variables, into a PDF form. My question is, how do I italicize one word within that variable that I'm inserting into the form? Here's an example:




variables.InsertValues = "Text italicizeWord text text" & variables.anotherVariable & "text text text" />



name="ExampleForm" value="#variables.InsertValues#" />


I've tried using <i></i> or <em></em> but that doesn't work.


Any help will be greatly appreciated.

  • Currently Being Moderated
    Jun 20, 2012 6:45 AM   in reply to cold_blue

    Did you ever get this solved?  I think that you can edit your pdf form, set the field to "allow rich text", and then use Rich Text Formatting as teh value for your CF variable.  If you're not sure what the RTF should look like, create a pdf form with an editable rich text field, enter some text, italicise a word, then use cfpdfform in reverse, to dump out the value of that field into a file you can read.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points