Create PDF: headers are distorted in the PDF file