summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fpdf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdf.go b/fpdf.go
index 0e7071f..f6ec511 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -2990,7 +2990,7 @@ func (f *Fpdf) parsepng(r io.Reader, readdpi bool) (info *ImageInfoType) {
func (f *Fpdf) readBeInt32(r io.Reader) (val int32) {
err := binary.Read(r, binary.BigEndian, &val)
- if err != nil {
+ if err != nil && err != io.EOF {
f.err = err
}
return