I believe that this bug in iText was fixed in the latest version (5.x). Leonard
-----Original Message----- From: merco [mailto:[email protected]] Sent: Tuesday, July 06, 2010 11:01 AM To: [email protected] Subject: [iText-questions] AddFileAttachment i'm using iTextSharp 4.1.6.0 with this code Dim Fn As String = IO.Path.GetFileName(Allegato) Dim Fs As PdfFileSpecification = PdfFileSpecification.FileEmbedded(_Dest.Writer, Allegato, Fn, Nothing) _Dest.AddFileAttachment(Fn, Fs) And I'm trying to get attachment in Acrobat reader with this script var a=this.dataObjects app.alert(a[0].name) this.exportDataObject(a[0].name) TypeError: Invalid argument type. Global.exportDataObject:3:Console undefined:Exec ===> Parameter cName. It seems that there is a problem with "unicode" name rapresentation : if you see the image at http://www.sygest.it/upgrade/itext/attach.JPG Attach you can see that attachment is rendered in different way (name is FEFF encoded): the first is done by itext code (adobe javascript report an error) the second is done "by hand" adding the file manually (adobe javascript runs ok) How can i fix this problem ? PDf at: http://www.sygest.it/upgrade/itext/Chaudronnerie_2.pdf example thank you -- View this message in context: http://itext-general.2136553.n4.nabble.com/AddFileAttachment-tp2279623p2279623.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
