Skip to main content
Participating Frequently
June 7, 2011
Question

add line break in pdf

  • June 7, 2011
  • 1 reply
  • 3214 views

We have a form that users input

biliography information (name of book, pages, date published, etc) into a text area. they can input multiple articles at once in the text area. is there a way to intoduce a line break on the pdf in between each article? meaning can we tell the users to input something like a % in between articles and have then some how introduce a line break on the pdf for every %?

    This topic has been closed for replies.

    1 reply

    Inspiring
    June 7, 2011

    You can use the coldfusion replace function to replace any string with either an html break tag, or the appropriate chr functions, depending on how you are generating your line breaks.  That's the easy part.

    The first hard part is to get 100% of your users to do what you want 100% of the time.

    The second part is to figure out the difference between a  symbol, such as a percentage sign, that is supposed to indicate a line break as opposed to simply being part of the article.