Pre-treatment or treatment during printing of the recording material