ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.08k stars 237 forks source link

Unexpected EOF when DrawImage #390

Closed noctis0430 closed 1 year ago

noctis0430 commented 1 year ago

Subject of the issue

InflaterInputStream.Read() throw Unexpected EOF exception when trying to read empty data.

Steps to reproduce

Build and run the solution to see the issue Sample solution: sample.zip

Expected behaviour

Complete execution without error

Actual behaviour

Throw Unexpected EOF error

Your environment