ObjectDisposedException: Cannot access a closed Stream. I don't understand why it doesn't work.
I am receiving a pdf document via a http get request and I need to rescale the actual document size. For this, I have written the following method, using the itext7 nuget package:
With this code, I get a
ObjectDisposedException
with the message Cannot access a closed Stream
. The exception is thrown at the line
I don't understand why I get this exception. In an earlier version, I was using using
for both the PdfReader and the PdfWriter. But even after removing that, I still get this error.2 Replies
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
I will try that, thanks