The PDF generator is not respecting HTML line breaks in the generation of the PDF file, but instead prints out one big chunk of text. Due to this, we have to go and manually edit the HTML in Umbraco for each post to get the formatting right. Our solution so far was to replace the line breaks (which Umbraco automatically adds as you use the text editor) with paragraph tags which print out in the PDF correctly.
You can see this more clearly in the examples below:
PDF output not respecting line breaks
This is the second issue from my previous thread.
The PDF generator is not respecting HTML line breaks in the generation of the PDF file, but instead prints out one big chunk of text. Due to this, we have to go and manually edit the HTML in Umbraco for each post to get the formatting right. Our solution so far was to replace the line breaks (which Umbraco automatically adds as you use the text editor) with paragraph tags which print out in the PDF correctly.
You can see this more clearly in the examples below:
http://i.imgur.com/57QWKvo.jpg (before fix)
http://i.imgur.com/ciYwjcU.jpg (after fix)
Thanks for any help you can provide,
Tomislav
In the sample templates you'll see a function ParseElement.
You need to add a case that replaces the br tag with something - probably a fo:block of a fixed height:
Thank you very much! Adding a case for br fixed the problem.
is working on a reply...