pdf generation issue fixed