I'm using .NET 8 and use the latest version of the PDFSharp (6 and 6.1pre) but I'm getting this error "MemoryStream's internal buffer cannot be accessed." when I use this code:
var contentSteam = new MemoryStream(imageForPage);
XImage contentXImage = XImage.FromStream(contentSteam);
I'm using .NET 8 and use the latest version of the PDFSharp (6 and 6.1pre) but I'm getting this error "MemoryStream's internal buffer cannot be accessed." when I use this code: