mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
pass cache_document_size to document open
This is how mupdf API is structured
This commit is contained in:
@@ -8,7 +8,7 @@ function PDFReader:open(filename)
|
||||
-- muPDF manages its own cache, set second parameter
|
||||
-- to the maximum size you want it to grow
|
||||
local ok
|
||||
ok, self.doc = pcall(pdf.openDocument, filename, 64*1024*1024)
|
||||
ok, self.doc = pcall(pdf.openDocument, filename, self.cache_document_size)
|
||||
if not ok then
|
||||
return false, self.doc -- will contain error message
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user