You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
PdfImporterpdfImporter=new(scanningContext);List<ProcessedImage>images=[];awaitforeach(ProcessedImage image in pdfImporter.Import(pdfPath)){
images.Add(image.WithTransform(new RotationTransform(180),true).Clone());}PdfExporterpdfExporter=new(scanningContext);await pdfExporter.Export(outputPath, images, ocrParams:null);
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: