now i'm trying to change the name in this way...
Dim cat As PdfDictionary = _reader.Catalog
Dim names As PdfDictionary =
PdfReader.GetPdfObject(cat.Get(PdfName.NAMES))
If Not IsNothing(names) Then
Dim files As PdfDictionary =
PdfReader.GetPdfObject(names.Get(PdfName.EMBEDDEDFILES))
Dim nomi As PdfArray =
PdfReader.GetPdfObject(files.Get(PdfName.NAMES))
If Not IsNothing(files) Then
nomi.Remove(0)
Dim Ustr As PdfString = New PdfString("Purchase Order.pdf",
iTextSharp.text.pdf.PdfObject.TEXT_UNICODE)
nomi.AddFirst(Ustr)
End If
End If
But the pdfString is always non UnicodeBE... Why ?
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/AddFileAttachment-tp2279623p2280560.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/