Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a multi-line textbox but the carriage returns (linefeeds?) are not being replicated in the PDF - how can I make them appear (the line feeds)?
Aha!!! Figured it!
I copied the "P" template and made it match "br". I then used
PDF:RteToHtml(umbraco.library:ReplaceLineBreaks($currentPage/eventDetails))
and it worked :-)
I love self resolving issues :)
Ahhh I have been trying to figure this out myself, thanks this should help - I'm using a Razor template though
Hi Mate,
Have a look at ~/App_Code/Pdf.cshtml
It has a Razor helper called RenderRichText if you wrap up your RTE in that then it should parse paragrah tags.
If you want to parse a break (br) you'd just add another helper for it and add to the case statement in ParseElement
Hope this helps.
Exactly what I did :) Thanks bud, seems to be working perfectly! See you Wednesday.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to make carriage returns work
I have a multi-line textbox but the carriage returns (linefeeds?) are not being replicated in the PDF - how can I make them appear (the line feeds)?
Aha!!! Figured it!
I copied the "P" template and made it match "br". I then used
and it worked :-)
I love self resolving issues :)
Ahhh I have been trying to figure this out myself, thanks this should help - I'm using a Razor template though
Hi Mate,
Have a look at ~/App_Code/Pdf.cshtml
It has a Razor helper called RenderRichText if you wrap up your RTE in that then it should parse paragrah tags.
If you want to parse a break (br) you'd just add another helper for it and add to the case statement in ParseElement
Hope this helps.
Exactly what I did :) Thanks bud, seems to be working perfectly! See you Wednesday.
is working on a reply...