Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

newline for pdf?

New Here ,
Oct 15, 2009 Oct 15, 2009

I've created a pdf in Acrobat that has a multiline textfield, but not sure what the tag to create a newline. I tried \n, <br/> but the text lined up on 1 line.


code example:


<cfset  address="1234 Main St.

                          Suite 100

                          Los Angeles, CA 12345" />

<cfpdfform action="populate" source="myfile.pdf" destination="output.pdf"   >
        <cfpdfformparam name="address" value="#address#" />
</cfpdfform>

thanks in advance

Lance

3.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 18, 2009 Oct 18, 2009

Did you put in the line break like this?

<cfset  address="1234 Main St." & "<br>" & "Suite 100" & "<br>" & "Los Angeles, CA 12345">

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 18, 2009 Oct 18, 2009

I tried your method it displayed <br> on the pdf. However I found a solution by using chr(10) and chr(13). Thanks for you help.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 18, 2009 Oct 18, 2009
I tried your method it displayed <br> on the pdf.

Oh! It worked when tested with <cfdocument format="pdf"><cfoutput>#address#</cfoutput></cfdocument>. Anyway, you've got it working, so no need to carry on.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 18, 2009 Oct 18, 2009
LATEST

Ah I see your method. I'll give it try. Thanks so much.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources