I created a Pdf Document from a byte after converting it to a Memorystream.
using (MemoryStream pdfStream = new MemoryStream(inputBuffer))
doc = new Document(pdfStream, password);
then I make some changes to the document.in this case I just performed a doc.Decrypt()
And then while trying to save the document to a new file or to a MemoryStream I get the “can’t access closed stream” exception.
Both the below line of code error out.
MemoryStream ms = new MemoryStream();