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:
2
pdf.c
2
pdf.c
@@ -166,7 +166,7 @@ static int openDocument(lua_State *L) {
|
||||
char *filename = strdup(luaL_checkstring(L, 1));
|
||||
int cachesize = luaL_optint(L, 2, 64 << 20); // 64 MB limit default
|
||||
char buf[15];
|
||||
printf("cachesize: %s\n",readable_fs(cachesize,buf));
|
||||
printf("## cachesize: %s\n",readable_fs(cachesize,buf));
|
||||
|
||||
PdfDocument *doc = (PdfDocument*) lua_newuserdata(L, sizeof(PdfDocument));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user