Try using the XSSSanitize Java Action in the Community Commons model on the content of your document before printing it.