Solved

Textarea to PDF

Posted on 2009-07-10
3
652 Views
Last Modified: 2012-05-07
I have a coldfusion form and in the form I have a textarea for the user to leave notes.  The field can hold 1000 characters.  I want to give the user the ability to print the page to pdf format.  This seems to work, except when I get to the textarea it just cuts off the notes on the right side.  It doesn't seem to wrap properly.  It wraps but it does it somewhere off the page.  So then I tried to simply use a table.  That works but I can't keep the line breaks that were entered into the textarea.  Here is an example:
If the user enters this:
This is a test This is a test this is a test This is a test This is a test this is a test
This is a test This is a test this is a test This is a test This is a test this is a test

When I try to export it into PDF as a text area I get (cuts off the right side)
This is a test This is a test this is a test This is a test This
a test This is a test This is a test this is a test This is a test
 is a test

When I try table format I get (it looses the line breaks)
This is a test This is a test this is a test This is a test This is a test this is a test This is a test This is a test this is a test This is a test This is a test this is a test

So what do I do.  
0
Comment
Question by:trifecta2k
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
selvol earned 500 total points
ID: 24827337
richtext="yes"
Link
http://www.carehart.org/blog/client/index.cfm/2008/8/1/rich_textarea_getting_it_right

Selvol

http://www.carehart.org/blog/client/index.cfm/2008/8/1/rich_textarea_getting_it_right
 

<cfform>

<cftextarea richtext="yes" toolbar="Basic" name="somefield"></cftextarea>

<input type="Submit">

</cfform>
 

<cfdump var="#form#">

Open in new window

0
 
LVL 5

Author Comment

by:trifecta2k
ID: 24839502
Thanks!  I didn't know they added a richtext feature to cftextarea. I just don't use it enough.  Thanks again
0
 
LVL 17

Expert Comment

by:selvol
ID: 24839567
GLad  to assist.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now