Re: [iText-questions] AddFileAttachment

2010-07-07 Thread merco
the only way to do that is with this code: Public Sub SistemaAtt() 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.GetPdf

Re: [iText-questions] AddFileAttachment

2010-07-07 Thread merco
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.EM

Re: [iText-questions] AddFileAttachment

2010-07-06 Thread merco
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.GetEncodi

Re: [iText-questions] AddFileAttachment

2010-07-06 Thread Leonard Rosenthol
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 iText

[iText-questions] AddFileAttachment

2010-07-06 Thread merco
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 scr

Re: [iText-questions] AddFileAttachment to PDF MakePackage

2010-04-05 Thread 1T3XT info
leo3000 wrote: > Hi, > > I have a existing PDF with 3 Portfolio section’s on the left side with 20 > pages per portfolio. I don't know what you mean with "3 Portfolio section's on the left side". I assume you have 1 PDF that is a Portable Collection containing 3 embedded files each of which has

[iText-questions] AddFileAttachment to MakePackage

2010-04-05 Thread Leonard.Baker
Hi, I have a existing PDF with 3 Portfolio section's on the left side with 20 pages per portfolio. I want to attach a PDF file to the 2nd existing portfolio at the last page. I'm using the existing code, but it bundles the 3 portfolio's into one and save's the attached PDF to the document lev

[iText-questions] AddFileAttachment to PDF MakePackage

2010-04-05 Thread leo3000
Hi, I have a existing PDF with 3 Portfolio section’s on the left side with 20 pages per portfolio. I want to attach a PDF file to the 2nd existing portfolio at the last page. I’m using the existing code, but it bundles the 3 portfolio’s into one and save’s the attached PDF to the document level