Tweak the pdf generation