In our project we need to use rich text fields and export these fields to a pdf. When we use whitelines in rich text fields, errors occur because </br> tags don't have always an open tag and the PDF exporter can not handle this. After that we used XSSSanitize (FORMATTING) to process the text before exporting it to PDF. The disadvantage of this is that we can not see the whitelines in the PDF anymore, however we don't receive any errors anymore while exporting. Does anybody know a solution for this problem?
Kevin van Werkhooven
As the richtext in the pdf needs to be xhtml, make sure that the br-tags are written like <br/> (self closing tag)
this should be allowed in the pdf create function.