New pdf generation