Just tried that a little while ago. Unfortunately when the page is displayed 
normally, the "cdata" script shows up in the textarea. I could use a variable 
to flag whether I am displaying the page normally or for the PDF print-out, but 
there are multiple pages that can be saved to PDF through this cfdocument page 
and Id hate to have to try to add a condition to every textarea on all pages 
that might use this.

On Dec 19, 2012, at 1:19 PM, Alan Holden <[email protected]> wrote:

> Would it help if you wrapped the entire textarea content within <![CDATA[ and 
> ]]>
> 
> ?
> 
> ---
> Al Holden
> 
> On 2012-12-19 06:36, Matt C wrote:
>> Hi there once again.  I'm bad about raising these questions and then not 
>> being able to stay on the task long enough to work through the solution with 
>> all of your excellent and very appreciated help, but I'll try to make this 
>> one quick and simple.  I'm using a cfinclude within a cfdocument tag to 
>> allow users to save / screenshot certain pages to PDF with the click of a 
>> button.  This worked great until the "notes" textarea of one of the pages 
>> included less-than and greater-than signs.  When looking at the page itself, 
>> that doesn't interfere with anything because it's inside a textarea, but 
>> when that same code tries to go through the cfdocument, I get a "Failed to 
>> create valid xhtml document due to org.xml.sax.SAXParseException: Premature 
>> end of file.".  Obviously I could just replace out the naughty symbols from 
>> the notes variable that's going into the textarea, but I was just wondering 
>> if there was a more elegant solution.  I was thinking URLEncodedFormat or 
>> some such would NOT help me out because it would cause the textarea in the 
>> PDF to display the '&' codes instead of what the user actually expects to 
>> see in the notes area.
>> 
>>  
>> 
>> -- 
>> online documentation: http://openbd.org/manual/
>> http://groups.google.com/group/openbd?hl=en
> -- 
> online documentation: http://openbd.org/manual/
> http://groups.google.com/group/openbd?hl=en

-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

Reply via email to