throws
TypeLoadException: Could not load type 'PdfSharpCore.Drawing.IImageSource' from assembly 'PdfSharpCore, Version=1.3.63.0, Culture=neutral, PublicKeyToken=null'.
To Reproduce
Install both NAPS2.Sdk and PDFSharpCore:
Expected behavior
The pdf file should export correctly.
Desktop (please complete the following information):
OS: Windows 11 (throws the same when hosting in a Ubuntu container)
Version: SDK 1.0.0
.NET: 8.0.104
Additional context
Removing the PDFSharpCore dependency or referencing directly the version 1.0.0 works,
but also induces memory leaks when exporting documents with 1000+ pages and in other parts of my code.
Describe the bug When trying to export a pdf, using NAPS2.Sdk and having installed PDFSharpCore 1.3.63 as a dependency on the same project, calling
throws
TypeLoadException: Could not load type 'PdfSharpCore.Drawing.IImageSource' from assembly 'PdfSharpCore, Version=1.3.63.0, Culture=neutral, PublicKeyToken=null'.
To Reproduce Install both NAPS2.Sdk and PDFSharpCore:
and try to import and export a PDF file:
Expected behavior The pdf file should export correctly.
Desktop (please complete the following information):
Additional context Removing the PDFSharpCore dependency or referencing directly the version 1.0.0 works, but also induces memory leaks when exporting documents with 1000+ pages and in other parts of my code.