I use FreeSpire.PDF with nuget 6.10.6 and when I debug the following code with vs I have a null references exception:
- Code: Select all
PdfDocument pdfDocument = new PdfDocument();
pdfDocument.LoadFromBytes(pictureData);
var pdfPage = pdfDocument.Pages[0];
var images = pdfPage.ExtractImages(); // the exception occurs at this line
var image = images[0];
- Code: Select all
System.NullReferenceException : 'Object reference not set to an instance of an object.'
Stack trace: at sprᜒ.ᜂ(Stream A_0)
What is strange is when I do not use vs but dotnet watch run no error occurs. Any idea ?