How to customize the PDF output