Thanks again Jochem. I enabled rich text and set the binding to XHTML which seemed like it would have given me what I wanted. I used <![CDATA[<ul><li>test</li><li>test2</li></ul>]]> which resulted in <ul><li>test</li><li>test2</li></ul> being displayed in the field. Adding the <body> tag (or even <html> + <body>) resulted in the HTML being rendered as plain text.
As you suggested, I also created a blank PDF, typed the values in using Acrobat and saved it out. The field named changed to "Open" instead of "Equipment", like it should be. I'll do more testing with this. The brochure doesn't require a form. I was just hoping not to reinvent the wheel (create the form in HTML). -----Original Message----- From: Jochem van Dieten [mailto:[email protected]] Sent: Friday, October 08, 2010 2:39 AM To: cf-talk Subject: Re: Manipulating a PDF brochure On Thu, Oct 7, 2010 at 11:13 PM, Jason Durham wrote: > I've been tasked with generating a sales brochure with a couple of variable components. I would like to be able to render HTML inside an existing PDF document that was designed in a graphics program. I've been playing with LiveCycle and have been able to get CF to insert plain text into form fields via <cfpdfform>. However, I have some fields that will require a list with line breaks between phrases. I'm unable to find a method of encoding line breaks so that CF will insert them properly into the PDF. Make sure you enable rich text on your form fields, then insert the HTML. IIRC you need a body tag and everything in between, possibly inside a CDATA. Probably the easiest way to find out is to build the form, fill it out in Acrobat and extract the form fields to see what they contain. If your brochure doesn't require a form you have a lot more freedom in your HTML if you use cfdocument to generate PDF with your content and overlay that over the background as a watermark. Jochem -- Jochem van Dieten http://jochem.vandieten.net/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337985 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

