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:337974 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

