Skip backwards/reopen input stream instead of buffering file in memory.

MuPDF defaults to buffering PDFs in memory if they are less than
8Mbyte, otherwise assumes that skipping backwards in an input
stream is possible. Should that assumption prove to be wrong,
MuPDF falls back to reopening the input stream repeatedly
for every seek to an offset preceeding the current position.
5 files changed