The changes allow output from a jasper report that is in pdf format to be emailed.
Thanks Martin, I committed your patch with some minor modifications:
Change the naming of the file and message to make it consistent with emailing normal reports
Make the subject of email the same window title (and drop the path from there)
Generate the pdf automatically if is not still generated