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

can't load PDF with TIF image #383

Open ghosttie opened 11 months ago

ghosttie commented 11 months ago

I found #199 which looks like the same issue but it says the issue should be fixed.

I'm getting this exception:

SixLabors.ImageSharp.UnknownImageFormatException: Image cannot be loaded. Available decoders:
 - BMP : BmpDecoder
 - TGA : TgaDecoder
 - GIF : GifDecoder
 - PNG : PngDecoder
 - JPEG : JpegDecoder

   at SixLabors.ImageSharp.Image.Load[TPixel](Configuration configuration, Stream stream, IImageFormat& format)
   at PdfSharpCore.Utils.ImageSharpImageSource`1.FromStreamImpl(String name, Func`1 imageStream, Nullable`1 quality)
   at PdfSharpCore.Drawing.XImage..ctor(Func`1 stream)
   at PdfSharpCore.Drawing.XImage.FromStream(Func`1 stream)