Hi Paul, Iwant to keep this functionality as it is.
Now what I need is I am having another java class which is sending email, so I need to send this pdf as an attachment with that mail.
In class which is sending email there is an addAttachment() function but this function accepts argument as InputStrream and String
So, now what I thought either sending of this pdf as InputStream to this addAttachment method or saving this pdf file in a temporary location and then sending as a attachment to email.
But for both I am not getting how to proceed. any help would be appreciable