Problem with IText!!
- From: "Paulo Soares" <psoares (at) consiste.pt>
- Date: Thu, 15 Jun 2006 16:37:52 +0100
Post the PDF and the code you are using.
Paulo
----- Original Message -----
From: "Sudhir Sharma" <ssharma (at) avidxchange.com>
To: <itext-questions (at) lists.sourceforge.net>
Sent: Thursday, June 15, 2006 3:42 PM
Subject: [iText-questions] Problem with IText!!
guys,
I am using Itext to generate PDF documents from some existing PDF
document.
I am using PdfReader class to generate PDF from an existing PDF. I am
getting an error when I try to close Document with Document.Close()
method.
Existing PDF has been created using HyperGEAR PDF Convert software for
Acrobat 7.
is there any compatibility problem with this software? Itext version is
3.0.1.0
any help is appreciated!!
Error is :
Exception: System.IO.EndOfStreamException
Message: Attempted to read past the end of the stream.
Source: itextsharp
at iTextSharp.text.pdf.RandomAccessFileOrArray.ReadFully(Byte[] b, Int32
off, Int32 len)
at iTextSharp.text.pdf.PdfReader.GetStreamBytes(PRStream stream,
RandomAccessFileOrArray file)
at iTextSharp.text.pdf.PdfReader.GetPageContent(Int32 pageNum,
RandomAccessFileOrArray file)
at iTextSharp.text.pdf.PdfReaderInstance.GetFormXObject(Int32
pageNumber)
at iTextSharp.text.pdf.PdfImportedPage.get_FormXObject()
at iTextSharp.text.pdf.PdfReaderInstance.WriteAllPages()
at iTextSharp.text.pdf.PdfWriter.AddSharedObjectsToBody()
at iTextSharp.text.pdf.PdfWriter.Close()
at iTextSharp.text.pdf.PdfDocument.Close()
at iTextSharp.text.Document.Close()
Sudhir Sharma
Software Developer
AvidXchange Inc.
office : 704-971-8113
fax : 704-971-8172
cell : 919-423-2003
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions