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