![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
![]()
Hi,
I'm glad to show you my last experiment, a pdf viewer. No screenshots, sorry, I'm too lazy. In my tests on my own DR800 is not so slow ![]() Working: - pdf loading and rendering with acceptable refresh speed (and without pages cache!) - full page view - summary view - table of contents view, clickable - thumbnails view, stylus-based, clickable - page bar with chapter marks, clickable (a lā FBReader) - toolbar items (only with Mackx's DR1000 or DR800+) If I keep interest in it, next steps could be: - implement a rectangular area zoom (i.e. crop borders) - bookmarks - new file selection dialog - remember book state (page number, zoom, fullscreen, bookmarks, annotations) - keyboard interaction in thumbnails view - keyboard dialog based annotations Never to be implemented: - other zooms - continuous and landscape modes - stylus based annotations - change font size . links in .pdf . find text Hope you like, Iņigo Serna PS: it does not work in the emulator, don't know exactly why, but I think is due to the way rendering and refresh has been implemented. Anyway, it works on the DR |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Some notes about the development and code:
- written in vala - uses own-compiled poppler library, version 0.10.7. Included in the package This is the latest version compilable with current IREX SDK. Newer versions require much modern stack: glib, cairo, gtk+ - poppler can render pages to cairo context or pixbuf Rendering to cairo context are faster (sure?) and offer better quality, but the format is less flexible to do manipulations (scale, crop, etc) I use render to cairo context here and some low level screen refreshes with the help of liberutils at some points. I'm pretty satisfied with the rendering speed, initially I expected lower rates. Almost 30% of total time of development was spent fighting with rendering and refresh. Also note pdfviewer does not work (i.e., show page contents) on the emulator. I'll be travelling next week but I'll try to upload sources to bitbucket repository next week. Kind regards, Iņigo Serna |
![]() |
![]() |
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 326
Karma: 6908
Join Date: Sep 2010
Device: DRs, EE, ipad/iphone, Helix
|
thanks! (works on both DR's )
|
![]() |
![]() |
![]() |
#4 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Very nice,
I like the extra functionality it has over the native pdf viewer. I immediately added your pdfviewer to the list of 'Open with..' programs (part dr1000hackx), so I can open them directly from the ctb. A few remarks: - I am missing the icon in the zip-file. - Dithering of images is different from the native pdf-viewer, I saw that iRex made a patch to poppler (for R1.7.1), which seems to be related to dithering (or to saving memory...) maybe that will improve dithering. - There seem to be some refresh problems, mainly when rendering takes too much time. Are you using the sys_set_busy or sys_set_bg_busy? Looking forward for coming releases. |
![]() |
![]() |
![]() |
#5 | ||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Thanks both for the feedback,
Quote:
Ok, IREX is based on v0.8.7. I've attached the diff. Relevant part is at the end of the file. Quote:
Nop. Which would be the benefits? turn on the led "only" or does it also avoid enter into micro-suspend mode? How do you feel about speed? Any interesting missing feature not mentioned in my first email? Thanks, Iņigo |
||
![]() |
![]() |
![]() |
#6 | |||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Quote:
Quote:
Quote:
W.r.t. the missing features, I would like annotations, I use it to mark interesting parts in magazines so that I can quickly find them when re-reading the magazines. (This is the reason that I created the 'Import pages with annotations only' function in xournal.) But maybe I can do the same with the text-based annotation that you already planned. I would like for bookmarks that it is possible to enter a comment, that is what I currently mis in the native version. It should then also be possible to get a text-only overview of bookmarks. (I will come up with more features when you progress with the implementation :-) |
|||
![]() |
![]() |
![]() |
#7 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
I also noticed some problems with ghosting (when using a magazine with pictures) so you will probably also need to create some 'de-ghosting' algorithm. This will increase the screen refresh-time, but also increase the readability a lot.
For xournal I also had to create a anti-ghosting mechanism. |
![]() |
![]() |
![]() |
#8 |
Groupie
![]() ![]() ![]() ![]() Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
|
Very nice
![]() One idea for a future feature (if easy enough to do): a "text selection" mode. This would mean it could be used with Stardict to get translations of selected words (right now only your port of epdfviewer has this ability, but it's hard to use). Last edited by rvs; 10-24-2011 at 05:11 PM. |
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Jan 2011
Location: Madrid, Spain
Device: iRex DR1000S, Motorola Xoom, Sony PRS-T1
|
Hi, Iņigo.
One question: Is it needed to have the Vala environment installed for this viewer to work? I have tried to use it just copying the files in the archive to the SD Card and executing the PDFViewer shortcut, but I receive an error message, saying (I translate the message in Spanish into English): "The application 'PDFViewer' cannot be opened. Probably the application is already opened. Close it and try again." I would like to test your viewer, if it's not complex for me to set it up. Thanks Paco |
![]() |
![]() |
![]() |
#10 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Quote:
you don't need anything to make it work, just uncompress the package an copy the contents into SD_CARD/Programs folder. Be sure to use a program like 7zip if you uncompress in a windows machine. Hope it helps, Iņigo |
|
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Jan 2011
Location: Madrid, Spain
Device: iRex DR1000S, Motorola Xoom, Sony PRS-T1
|
Thanks, Iņigo.
An intermediate folder (pdfviewer-v0) had been created. Once I have placed the files in the right place, it works. What I see for the moment is: - The "Open PDF File" dialog appears very little in the DR1000S, so it's difficult to select the file to open. - Apparently, there are some difficulties to open large files, and to flip pages once they are open. - I cannot see clearly how to flip pages, and/or the "Go to Page" menu entry doesn't work in my device. Should I do anything with the diff package? Thanks again Paco |
![]() |
![]() |
![]() |
#12 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Hello Paco,
As I mentioned in the initial message this is an experimental viewer. There are a lot of missing features or non completely working stuff. I even don't know if I will continue developing it. Quote:
There is a plan to write a new one, but it is not a priority now. As a workaround, you can use the method Mackx mentioned a few messages above for DR1000 devices. To change pages, use the bar. 5 pages if long press. "Goto page" hasn't been implemented yet. It's possible that DR got into suspend mode before opening big files or rendering pages with lot of graphics. Mackx proposed a solution I will add eventually. Anyway think that this "experiment" uses poppler library, slower than Acrobat SDK. Moreover, the poppler library version is 0.10.7, ~2 years old, but we can't use newer versions because it would need to substitute most of DR firmware (glib, pango, cairo, gtk+ libraries). Sorry, can't understand this part. Which diff package? EDIT: oh, I forgot that .diff file. You don't have to do anything with it, it contains some modifications by IREX people to an older poppler version. Anyway I really appreciate the feedback, of course. Kind regards, Iņigo Last edited by Iņigo; 11-01-2011 at 09:48 AM. |
|
![]() |
![]() |
![]() |
#13 |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Jan 2011
Location: Madrid, Spain
Device: iRex DR1000S, Motorola Xoom, Sony PRS-T1
|
Thank you, Iņigo.
I understand that it's a experimental application. I just wanted to let you know some findings, in such a way that you can have them into account if you decide to continue its development. Of course I'm not complaining, I'm trying to give some feedback. ![]() I take note of the way to use the viewer. ![]() Paco |
![]() |
![]() |
![]() |
#14 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 33
Karma: 1022
Join Date: Jul 2011
Device: M92 black
|
Offering myself as a beta- or even an alpha-tester. Good work Iņigo.
@Mackx Could you please upload the modified file to make the "open with ..." method work with the viewer (I guess the _add_xournal_alt.sh)? Dimitris |
![]() |
![]() |
![]() |
#15 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Hi md02439,
I used a separate install-file, see attachement. |
![]() |
![]() |
![]() |
Tags |
experimental, pdf, vala, viewer |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Magazine-like PDF viewer (like the flash magazine viewer on certain sites?)? | Huyggy | Reading and Management | 6 | 12-12-2013 04:35 AM |
Color What's the best pdf viewer for a rooted NC? | Avenarius | Nook Developer's Corner | 12 | 01-21-2012 12:03 AM |
Problem using EZ PDF Viewer | leonardevens | 0 | 07-28-2011 10:20 AM | |
Android PDF Viewer | alefor | enTourage Archive | 18 | 12-30-2010 09:40 AM |
PDF viewer | guyanonymous | PocketBook | 1 | 07-06-2010 08:28 PM |