RE: Manipulating a PDF brochure
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 which resulted in testtest2 being displayed in the field. Adding the tag (or even + ) 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:joch...@gmail.com] 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 . 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
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 . 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
Manipulating a PDF brochure
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 . 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. Any words of wisdom? Confidentiality Warning: This e-mail contains information intended only for the use of the individual or entity named above. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, any dissemination, publication or copying of this e-mail is strictly prohibited. The sender does not accept any responsibility for any loss, disruption or damage to your data or computer system that may occur while using data contained in, or transmitted with, this e-mail. If you have received this e-mail in error, please immediately notify us by return e-mail. ~| 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:337954 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm