fixed some pdf generation query

fixed email message, fixed pagination details