Qingping Hou
f95ad00b9e
feat: add logger module & rewrite kobo suspend script in lua
2017-01-02 19:52:09 -08:00
chrox
5983050d79
PDF free zoom mode revisit
...
this should implement feature request of zoom mode for multi-columns
page in #501
This PR depends on koreader/koreader-base#435
How to use?
1. Tap the top left corner of a PDF/Djvu page to get into the flipping
mode
2. Double-tap on text block will zoom in to that column
3. Double-tap on any area will zoom out to an overview of the page
4. repeat step 2 to focus to another page block
How does it work?
1. We first find the mask of text blocks in the page. (Pic 1)
2. Then we intersect page boxes with user tap to form a page block. (Pic 2)
3. Finally we zoom the page to the page block and center current view to
that block. (Pic 3)
2016-06-15 02:05:09 +08:00
Qingping Hou
11ee8d6fcc
refactor: use new KeyValuePage widget for displaying statistics
2016-02-14 21:54:17 -08:00
Alex Pletnev
fbf98ed920
#1710 FR: Add support of statistics plugin for pdf
2016-02-12 16:55:02 +02:00
chrox
8b85cbf157
add support for password protected zip/cbz documents
2015-10-06 21:18:31 +08:00
Alexander Pletnev
52d821df00
Add Statistic plugin ( #1581 Amount of hours spent on a book)
2015-09-07 20:06:17 +03:00
chrox
b80dd1f966
add fulltext search for PDF documents
2014-11-17 17:58:44 +08:00
Hans-Werner Hilse
0a74dc6072
add needed ffi module when saving annotations
2014-10-26 23:16:27 +01:00
Hans-Werner Hilse
e0868826ad
use new FFI based mupdf API
...
This will use the new API where the Lua/C interface was used before
and also drop usage of mupdfimg wrapper which is now implemented
within the mupdf interface
2014-10-20 16:49:10 +02:00
chrox
2f2d9f1bf7
issue error directly when doc is malformated
...
This should popup a message saying "No reader engine for this file"
instead of a crash when document file is malformated.
This should fix #868 .
2014-08-29 17:17:12 +08:00
chrox
0bc3eadcae
refactoring: use Document API getCoverPageImage to get cover image
2014-08-27 11:07:25 +08:00
chrox
092522b89d
promote user to save PDF document after highlighting
...
This is a wordaround for #791 .
2014-08-24 15:16:04 +08:00
chrox
0c29b041fe
markup annotation quadpoints should be defined in counterclockwise
2014-08-22 09:32:27 +08:00
chrox
507b989747
use pdfreader instead of crereader to handle zip files
...
Generally zip files are zipped pictures which should be
better handled in pdfreader.
2014-08-19 12:11:49 +08:00
chrox
38c75f8359
fix the first file in a zip is a directory will raise error in zipContentExt
2014-08-11 20:40:27 +08:00
chrox
241d67e0ec
revert zip file handler to crereader
...
It seems that fb2.zip is a conventional format for fb2 with compression
which cannot be handled properly by mupdf.
This should fix #642 .
2014-06-16 19:47:03 +08:00
chrox
6fba40cc77
use mupdf to handle zipped image files
2014-05-25 22:28:17 +08:00
chrox
55734f6aaa
export highlighted rect in scanned page to Evernote
2014-05-15 16:11:26 +08:00
chrox
e1527611c5
show a box indicator when tapping on a link
...
only for PDF/DJVU docs for now since there is no easy way
to get link box from crengine
2014-05-02 16:50:52 +08:00
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
2014-04-02 17:02:01 -04:00
chrox
92219a1f1e
cleanup: expand tab to 4 spaces
2014-03-13 21:52:43 +08:00
chrox
b42b4ed204
save highlight to pdf document
2014-02-09 17:51:40 +08:00
chrox
8abd8a8a1f
loading KoptInterface only in pdf and djvu reader
...
This will save 4MB RAM in crereader which otherwise will load
liblept.so.3 and libk2pdfopt.so.2 automatically for nothing.
2014-01-22 18:34:55 +08:00
chrox
d24d5e413e
add following page link in reflowed page
2014-01-21 11:59:17 +08:00
chrox
34e28d28e6
page links for crereader and pdfreader
...
Swipe right will return to previous page or position.
2014-01-18 15:04:28 +08:00
chrox
8e4516b824
add regional zoom mode in pdf/djvu page
...
In regional zoom mode double tap will zoom to the tapped
region(paragraph or column, etc., detected optically via libk2pdfopt).
As the first demo, this feature is only turned on in flipping mode by
tapping the top-left corner of the screen. Eventually we may incorporate
this feature in "free" zoom mode.
2014-01-02 11:14:26 +08:00
chrox
62e12ddfba
import document module on-demand
2013-12-31 13:12:56 +08:00
chrox
f7387822aa
handle xps files in pdfdocument backend
2013-12-29 15:52:44 +08:00
HW
748a443cd5
Merge remote-tracking branch 'upstream/master'
...
resolved conflicts with refactored structure
2013-10-22 17:19:08 +02:00
HW
ef111b99c6
Refactored to use strictly locals
2013-10-18 22:38:07 +02:00
Qingping Hou
10bf048d77
move configurable to Document class
...
since every document type is depend on it now
2013-10-17 17:28:20 -04:00
chrox
9f42289226
use pixels from reflowed page when doing OCR in reflowing mode
...
I hope it will get back OCR accuracy as in build 545.
2013-10-14 23:06:05 +08:00
chrox
4660a3532b
synchronize hightlights in non-/reflowing modes
...
and there is no need to OCR word if we can extract text from
original page in reflowing mode thanks to the rect maps between
normal page and reflowed page.
2013-10-12 23:07:13 +08:00
chrox
2e5d2b9930
add semi-auto bbox option in page crop dialog
2013-07-13 11:18:49 +08:00
Giorgio Micotti
98a2e50652
Add cbz to the supported extensions of pdf viewer.
2013-07-09 12:32:21 +02:00
chrox
7c78e83e49
add hightlight/dictionary lookup in scanned pdf/djvu
2013-05-01 23:43:53 +08:00
chrox
936dfc6fd1
add text highlight in both reflow and non-reflow mode
2013-04-24 06:59:52 +08:00
chrox
fb05f9a428
add auto page crop
2013-04-14 15:16:42 +08:00
chrox
22b650d0c7
move kopt/cre options into ui/data directory & wrap strings in config options
2013-04-08 22:26:54 +08:00
chrox
ef68ccebfe
add background hinting in koptinterface
2013-03-12 20:26:02 +08:00
chrox
8c01b59776
clamp used bbox to page dimension
2013-03-05 16:50:04 +08:00
chrox
9efdefb22f
add gamma correction for pdf/djvu reader
2013-02-20 14:32:51 +08:00
chrox
25bcbfa53a
set menu font size according to screen dpi
2013-02-03 05:16:19 +08:00
chrox
aa152a8a51
make readerconfig independent of koptoptions
...
So that other readers could reuse readerconfig
2013-01-06 14:01:34 +08:00
chrox
349bcb996e
use koptinterface to reflow text in pdf/djvu readers
2013-01-03 22:33:49 +08:00
Qingping Hou
7b707ab367
add usedbbox support
2012-12-02 17:09:32 +08:00
Qingping Hou
7e04c97b70
bug fix for PdfDocument:getUsedBBox
...
when cache found, we should return cache.ubbox
not cache.data
2012-12-02 15:14:02 +08:00
Qingping Hou
b40a748a78
move duplicate codes to document.lua
2012-06-03 22:26:16 +08:00
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.)
2012-05-28 18:59:16 +02:00
HW
d5c7e6ccb5
factored out pdfdocument implementation
2012-05-19 01:13:53 +02:00