fix the pdf code with a twisted way to do that.