mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-24 13:48:49 +08:00
Add tolerance for seeking EOF marker between read data buffers
This commit is contained in:
parent
843a48ed7b
commit
d521de9643
@ -1162,7 +1162,7 @@ func (parser *PdfParser) seekToEOFMarker(fSize int64) error {
|
||||
}
|
||||
|
||||
common.Log.Debug("Warning: EOF marker not found! - continue seeking")
|
||||
offset += buflen
|
||||
offset += buflen - 4
|
||||
}
|
||||
|
||||
common.Log.Debug("Error: EOF marker was not found.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user