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
I don't understand why I get this exception. In an earlier version, I was using
With this code, I get a
ObjectDisposedException with the message Cannot access a closed Stream. The exception is thrown at the lineI 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.