I am tring to open a PDF fill it in then show it to the user. however it tells me it cannot open a closed file stream. If I take out hte pdfStamper.Close() then it tries to open the file but then the file is corrupt and will not open. So i need to close
it but then I get the cannot access closed filestream error. So now I am confused as to what to do.
Dim pdftemp As String = System.Web.HttpContext.Current.Server.MapPath("~/PDF/JumpsFinal.pdf")
Dim pdfReader As New PdfReader(pdftemp)
Dim pdfMemStream As New MemoryStream()
Dim pdfstamper As New PdfStamper(pdfReader, pdfMemStream)
Dim pdfFields As AcroFields = pdfstamper.AcroFields
pdfFields.SetField("Paid", "Choice1")
pdfFields.SetField("Address", recAddress)
pdfFields.SetField("City", recCity)
pdfFields.SetField("State", recState)
pd ...
Go to the complete details ...