I'm testing Spire.PDF with a temporary license.
I use .Net 4.8 Framework.
I created a console application with this very simple code:
- Code: Select all
string src="c:\temp\input.pdf" ;
string dest = "c:\temp\output.pdf" ;
PdfStandardsConverter converter = new PdfStandardsConverter(src);
converter.ToPdfA1A(dest);
The application works in DEBUG mode but not in RELEASE mode.
In release mode, converter.ToPdfA1A(dest) cause the exception "Unable to access a closed Stream";
Finally, I understood that it was due to the "optimize code" option, in "Build" project properties.
When the option is checked I get the exception.
Can't we use this option?
Thank you for any help you can give me.
Greetings
Gabriel