Already noticed forum-post 7242/Sanitize-action-gives-extra-spaces-between-the-words-in-PDF- I added the replaceall(sanitized text,[double space],[single space]) and even made sure I looped through to catch some places where there is odd numbers of spaces. This solution gives "some" relief, but it still messes up the PDF with unwanted spacing. For reasons unknow XSSSanitize decides to parse text to, for lack of a better term, sentences...... The original text De verlofaanvraag is bij het adviescollege binnengekomen op 6 oktober 2016 After the sanitize ends up on two lines in a textbox De verlofaanvraag is bij het adviescollege binnengekomen op 6 oktober 2016 ends up in the PDF as De verlofaanvraag is bij het adviescollege binnengekomen op 6 [double space] oktober 2016 So the XSSSanitize seems to cause a linebreak which in translation to the PDF translates into additional spaces in the text. (btw... the quotebox messed with my quotes, so they are rigged to show the issue.....)
Lex van Rooy
Have you tried one of the different XSS Policies?
Also, I'm not sure how relevant/applicable the xss sanitize is for pdf's..