Replies: 2 comments 2 replies
-
PdfSharpCore depends on ImageSharp 1.0.4, so the beta version is too low. Note that ImageSharp 1.* is out of support and full of security holes which renders PdfSharpCore an insecure lib too. If you want to continue using that lib regardless, then - instead of adjusting the versions in the same project/process - my recommendation would be to move your image processing logic into a separate process and use the latest ImageSharp there . |
Beta Was this translation helpful? Give feedback.
-
Assuming the core issue here is getting an image snapshot for a page from a PDF and then resizing that image, I've successfully used https://github.com/GowenGit/docnet to do that in a project that started as .NET6 and is currently .NET8. You can get the image as a BRGA byte array (there's a I do concur that this is not really on-topic for ImageSharp, but I figured I'd mention the above if it's at all helpful. |
Beta Was this translation helpful? Give feedback.
-
I am trying to use pdfsharpcore and SixLabours.imageshrap however I am consistently getting the issue System.MissingMethodException: Method not found: 'SixLabors.ImageSharp.Image`1<!!0> SixLabors.ImageSharp.Image.Load(System.IO.Stream, SixLabors.ImageSharp.Formats.IImageFormat ByRef)
The error gets throws consistently in the last line of this code
Based on the recommendtion here i downgraded my pdfsharpcore version and imagesharp version . Below are the versions used:
pdfsharpcore: 1.0.3
imagesharp: 1.0.0-beta006
.net version: 6.0
Can anyone suggest how can we fix this? The issue s only happening when I am trying to render images.
Beta Was this translation helpful? Give feedback.
All reactions