chrox
0bc3eadcae
refactoring: use Document API getCoverPageImage to get cover image
10 years ago
chrox
092522b89d
promote user to save PDF document after highlighting
...
This is a wordaround for #791 .
10 years ago
Paulo Matias
f04951e5dc
Consider as corrupt a null-area bbox
...
Fixes crash with empty page_states
10 years ago
chrox
5aa8eb52da
add missing Blitbuffer since it's removed from global space
10 years ago
chrox
a8b7b2cdbd
add base document init method to create new configurable for each document
...
this should fix configurables pollution when opening multiple documents
at the same time, e.g. when clipping page images in Evernote plugin.
11 years ago
chrox
17741e292b
serialize cache when closing ReaderUI other than closing document
11 years ago
chrox
775e5ea3b4
serialize the most recently used blitbuffer/koptcontext
...
to speedup koreader startup for PDF/DJVU documents
especially when reflowing
11 years ago
Qingping Hou
4b357c1466
move reader code into frontend/apps/reader
...
it makes more sense to completely separate the UI framework and
application code
also move frontend/ui/configurable.lua to frontend/configurable.lua
11 years ago
chrox
92219a1f1e
cleanup: expand tab to 4 spaces
11 years ago
chrox
0eee130f5a
clipping page bbox
11 years ago
chrox
b42b4ed204
save highlight to pdf document
11 years ago
Paulo Matias
c55d5e025e
Avoid crash on backends which don't define getLinkFromPosition
11 years ago
chrox
ce3b58538c
fix no getPageLinks method in djvudocument
11 years ago
chrox
34e28d28e6
page links for crereader and pdfreader
...
Swipe right will return to previous page or position.
11 years ago
chrox
eaa9535133
move logMemoryUsage from koptinterface to document
11 years ago
chrox
62e12ddfba
import document module on-demand
11 years ago
chrox
4cfdce6105
fix several local calls of Math.round
11 years ago
HW
09cd5c4104
Make DEBUG a require()d local
11 years ago
HW
748a443cd5
Merge remote-tracking branch 'upstream/master'
...
resolved conflicts with refactored structure
11 years ago
HW
ef111b99c6
Refactored to use strictly locals
11 years ago
Qingping Hou
bc91b932d1
style cleanup in document.lua
11 years ago
Qingping Hou
a59723c053
add pic document type
11 years ago
Qingping Hou
10bf048d77
move configurable to Document class
...
since every document type is depend on it now
11 years ago
chrox
c86bb46ef7
add gotoLocation for credocument
11 years ago
chrox
39da1251ec
free blitbuffer as soon as tile is kicked out from cache
...
other than waiting for the lazy garbage collector of lua
11 years ago
Deyuan Deng
9528f4a95b
when open document, check if provider is nil
11 years ago
chrox
7c78e83e49
add hightlight/dictionary lookup in scanned pdf/djvu
12 years ago
chrox
936dfc6fd1
add text highlight in both reflow and non-reflow mode
12 years ago
Qingping Hou
1783b16d69
credoc fix: load metadata info after document is rendered
12 years ago
Qingping Hou
f12ff20c37
discard bbox with zero area
12 years ago
chrox
6561475cf7
return bbox immediately to save several CPU cycles
12 years ago
chrox
86a65003d1
set manual cropping if bbox exists
12 years ago
chrox
9efdefb22f
add gamma correction for pdf/djvu reader
12 years ago
chrox
78f8ca9029
cleanup: remove debug info on bbox
12 years ago
Qingping Hou
f3452234ea
add math.lua, move all math related helpers in to it
12 years ago
chrox
a1aa41136c
add manual page crop for pdf/djvu documents
12 years ago
Qingping Hou
789b5d57e2
read page information for crerengine
12 years ago
Qingping Hou
c8dce5f351
Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into hint_page_fix
...
Conflicts:
frontend/document/document.lua
12 years ago
Qingping Hou
93cad1428c
add render_mode into render hash
12 years ago
Qingping Hou
1fa0d886bd
add render mode to hint page
12 years ago
chrox
c8b699c068
bugfix: check renderpg hash before hinting page
12 years ago
{Qingping,Dave} Hou
3ec818a3cd
Merge pull request #684 from chrox/koptreader-new-ui
...
add reflow mode in pdf/djvu readers
12 years ago
chrox
349bcb996e
use koptinterface to reflow text in pdf/djvu readers
12 years ago
chrox
a649301e69
make pdfreader and djvureader the defaults
12 years ago
chrox
138def10c3
Demo version of koptreader config dialog.
12 years ago
Qingping Hou
93abd2fee7
add page status to readerrolling for better page view_mode support
...
* now when rendering in page view mode, we only keep track of page
number instead of pos inside document. Because using pos inside
document for page view mode is really a bad idea and will lead to
many unsovlabe bugs...
12 years ago
Qingping Hou
683c7eee2c
handle corrupted usedbbox in Document:getUsedBBoxDimensions()
12 years ago
Qingping Hou
7b707ab367
add usedbbox support
12 years ago
chrox
c462090600
add koptreader demo
12 years ago
Qingping Hou
36a4ead630
update document.lua according to API change in cre.cpp
12 years ago
Qingping Hou
ea022b651f
add rendermode support for djvu documents
12 years ago
Qingping Hou
eb79e1c95c
handle file with no extension in filechooser
12 years ago
Qingping Hou
c1ccff70ad
minor adjustment for Makefile and document.lua
12 years ago
Qingping Hou
acaf8d660e
font menu for readerui
12 years ago
Qingping Hou
77761554d9
add CreDocument:engineInit() method
12 years ago
Qingping Hou
d89cbc43f9
replace getProvider with openDocument
...
now getProvider only returns the provider
12 years ago
HW
ce5614ef6f
cleanup, also removal of G_* constants
...
a bit of cleanup, switched width/height combo over to use
Geom() objects, moved framebuffer handling to Screen object,
callback syntax sanitizing, lots of small changes
13 years ago
Qingping Hou
e7d16de4e2
first demo for credocument
13 years ago
Qingping Hou
b40a748a78
move duplicate codes to document.lua
13 years ago
Qingping Hou
7f6773dc6f
demo for djvu support
...
wait for code clean up
13 years ago
HW
60ccd7441e
fixed menu info displaying, replaced debug() by DEBUG()
...
the replacement of debug() was necessary to be able to access the lua library "debug" (for backtraces etc.)
13 years ago
Qingping Hou
cf048e286d
add toc menu support for readerui
13 years ago
HW
d5c7e6ccb5
factored out pdfdocument implementation
13 years ago
HW
9e531fc2db
file reorganisation
...
all lua frontend files are now in the frontend/ directory.
all old code is cleaned up.
13 years ago