Skip to main content
December 15, 2009
Question

How to insert carriage returns into <cfpdfform> XML?

  • December 15, 2009
  • 1 reply
  • 461 views

I'm populating a pdf using <cfpdfform> and action="populate" and XMLData="<filename>"

My carriage returns are not making it into multi-line PDF fields, jumbling their appearance.

How should carriage returns be transformed?

I've attempted wrapping the data in <![CDATA{ ... ]]>, but no difference.

I've attempted \n and \r and <br> (that was a mistake!).

Nothing has worked.

Any ideas?

Thanks.

This topic has been closed for replies.

1 reply

Inspiring
December 15, 2009

Hi,

Check if this workaround helps you,

http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:304453

December 15, 2009

I appreciate the reply, but that doesn't seem to work.  Acrobat seems to ignore chr(13) and chr(10) and pass through <br /> as text.

Any other ideas?