correct the problem of generated PDF: lack of a newline