commit | 83c9038fc0d3c6b7e45a8a8e5ded6611897dddc4 | [log] [tgz] |
---|---|---|
author | Sebastian Rasmussen <sebras@gmail.com> | Wed Jun 15 02:23:50 2022 +0200 |
committer | Sebastian Rasmussen <sebras@gmail.com> | Mon Jun 20 15:55:58 2022 +0200 |
tree | dd501193d40dd657be6b6b40d7ccc8fe1b20e7b9 | |
parent | 3a51527e934a873e16ebf768d9b129332dfede79 [diff] |
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.