ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.05k stars 234 forks source link

throw exception Method not found #363

Open mrliuxiao opened 1 year ago

mrliuxiao commented 1 year ago

ImageSharp version 3.0.1 PdfSharpCore version 1.3.26 and higher

var stream = new MemoryStream(); image.Save(stream, new PngEncoder()); XImage.FromStream(()=> stream);

throw exception "Method not found: 'SixLabors.ImageSharp.Image`1<!!0> SixLabors.ImageSharp.Image.Load(System.IO.Stream, SixLabors.ImageSharp.Formats.IImageFormat ByRef)'."

When I try ImageShar version 2.1.3 it works fine.

tomashal commented 1 year ago

Same happened to me.

I used PdfSharpCore v1.3.56 in a project. Worked fine until I installed ImageSharp, v3.0.1, to use in another unit. Then I got this exception.

Downgrade ImageSharp to v2.1.4 makes it work again.

mauriciomagni commented 1 year ago

Same issue here using: PdfSharpCore (1.3.56) SixLabors.ImageSharp (3.0.1)

KevinHoward commented 4 months ago

Comfirming issue: PdfSharpCore (1.3.63) SixLabors.ImageSharp (3.1.3)

Downgraded ImageSharp down to 2.1.7 as a stopgap until 3.x is supported.