I've upgraded my code to use ver 5.0.2.0
but the problem is still here.

I've also tried different code, without succes:
Dim Fn As String = IO.Path.GetFileName(Allegato)
        Dim Fn1 As String = ""
        Dim B() As Byte
        Dim ePDF As System.Text.Encoding =
System.Text.Encoding.GetEncoding("utf-16BE")
        B = ePDF.GetBytes(Fn)
        Fn1 = ePDF.GetString(B)
        Dim Fs As PdfFileSpecification =
PdfFileSpecification.FileEmbedded(_Dest.Writer, Allegato, Fn, Nothing)

       Fs.SetUnicodeFileName(Fn1, True)
        Fs.MultiByteFileName = B
        _Dest.AddFileAttachment(Fn1, Fs)


Is there a way to access Names and embeddedfiles with itext ? I'm wondering
if i can change the name after inserting the attachment.
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/AddFileAttachment-tp2279623p2280528.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/

Reply via email to