2 Replies Latest reply on Mar 11, 2011 12:35 PM by monkeyden

    Change Filename of generated PDF

    sarats

      I am generating a pdf that the user can download using seam and itext.  It is working just fine.  However, the user will be generating many files during day, saving them on their machine and then emailing them out as multiple attachments at the end of the day.  These are just forms filled out with different information saved as a pdf.  If my xhtml file is z.xhtml and I forward to this file and it generates a pdf, the name of the pdf they download is the same each time (z.pdf).  Is there a way to change the name of the pdf so the user doesn't overwrite the previous one that was generated and they downloaded earlier in the day.


      Any help would be greatly appreciated.


      Thanks!