Skip to main content
November 21, 2013
Question

cftextarea to PDF

  • November 21, 2013
  • 1 reply
  • 909 views

We are using Cold Fusion 8.  I created a text box on a form using cftextarea, which uses FCKeditor that came with CF8.  When I try to populate a PDF form using cfpdfform/cfpdfformparam the embedded HTML shows as plain text.

For example:  If I input "This is bold", the pdf form output shows "<b>This is bold</b>".  How do I massage the input to display properly in the PDF form?

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    June 8, 2015

    hi, is your issue resolved. I am having the same issue.

    EddieLotter
    Inspiring
    June 11, 2015

    Please show minimal code to reproduce your issue.

    I suspect I know what the problem is, but I don't want to make unsubstantiated guesses.

    Cheers

    Eddie

    Participating Frequently
    June 11, 2015

    thanks Eddie for checking on this for me.

    here phone is saved in rtf format. If I just print it I get the bold done, but if i used the cfpdfform to print it, i get as <b>test format</b>

    here is my code

    <cfdocument format="PDF" filename="fileex1.pdf" overwrite="Yes" mimetype="text/plain" fontembed="yes" >

        <html>

        <body>

       

         <cfdocumentsection>

        <cfoutput>#rsEstimate.phone#</cfoutput>

        </cfdocumentsection>

      

    <cfpdfform source="live1.pdf" action="populate" overwritedata="true"  >

            <cfpdfformparam name="address" value="#rsEstimate.phone#">

          

    </cfpdfform>

    </body></html>

    </cfdocument>

      <cfpdf

        action = "write"

        source = "fileex1.pdf"

        destination = "fileex3.pdf"

        flatten = "yes"

        overwrite = "yes"

       ></cfpdf>