I need to insert a carriage return/line feed into a multi line field in Acrobat 8 Pro? For example: On a business card there might be a 2 line address that I want to concatenate from 2 fields (address 1 & address2) but have acrobat make the line end so that I can have consistent line spacing in my forms. The format might look like (address1 + CR + address2). The process occurs on my website when I populate the fields from a form using "Persits aspPDF". So the simplest question would be what character would create the carriage return? I tried inserting a \r but no success. Any ideas?
In a JavaScript string the line feed is an escaped n, i.e. "\n" and a cariage return is an escaped r, i.e. "\r".
Different editors and platforms use different line endings, but the Line Feed is the most consistantly respected.
So, "hello\nWorld", is printed as two lines in Acrobat/PDF.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script