Pdf generation accurated