PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

UnfilteredValue only returns an error text for FlateDecode image

Open husaft opened this issue 3 years ago • 0 comments

Hi, I'm using PdfSharpCore v1.3.43 in NET 6 from NuGet, and it is just great. Thank you very much.

But now I encountered an image embedded in one of my test files ( pdf ) which is zipped with a FlateDecode filter and the property UnfilteredValue in PdfSharpCore.Pdf.PdfDictionary just returns an error message (37 bytes, "Can't decode /FlateDecode").

As I wondered about this, I've found it is a regression compared to "PDFsharp" v1.32.3057, I tried and read it myself from dictionary.Stream.Value again ... and it works ( here ).

Maybe there is a bug in the deflate filter? At least, compared to the classic System.Drawing legacy.

husaft avatar Dec 09 '22 07:12 husaft