iText based pdf mail-merge
This works really well. Thanks for your efforts on this project. I was wondering if I can control the name of the PDF that gets generated as an attachment by the call to "setContentFromBytes". I know that I can detach the file afterwards with a specific name and then re-attach it with "embedObject" but then I lose the PDF icon. Do you know any way around this? Thanks
Managed to resolve this by specifying a name parameter in the contentType, e.g. :- MIMEEntity.setContentFromBytes( stream, "application/pdf;name=pdfname.pdf", MIMEEntity.ENC_IDENTITY_BINARY); Thanks to this post for pointing me in the right direction:- http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/7d6edf310ae28a28852571b3002fce4f?OpenDocument&Highlight=0,setcontentfrombytes,attachment,name Anyone know where I would find documentation of these parameters?