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

Unexpected EOF when DrawImage #390

Closed noctis0430 closed 11 months ago

noctis0430 commented 11 months 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