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
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
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
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
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
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
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
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