Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-22-2011, 09:35 PM   #1
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Lightbulb Experimental pdf viewer

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
Attached Files
File Type: gz pdfviewer-v0.tar.gz (720.4 KB, 792 views)
Iņigo is offline   Reply With Quote
Old 10-22-2011, 09:47 PM   #2
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
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
Iņigo is offline   Reply With Quote
Advert
Old 10-23-2011, 07:21 AM   #3
fekhner
Addict
fekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animals
 
Posts: 326
Karma: 6908
Join Date: Sep 2010
Device: DRs, EE, ipad/iphone, Helix
thanks! (works on both DR's )
fekhner is offline   Reply With Quote
Old 10-23-2011, 07:26 AM   #4
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
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.
Mackx is offline   Reply With Quote
Old 10-23-2011, 12:17 PM   #5
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
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:
Originally Posted by Mackx View Post
- 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.
I read a reference about it in an old post from you some days ago...
Ok, IREX is based on v0.8.7. I've attached the diff. Relevant part is at the end of the file.


Quote:
Originally Posted by Mackx View Post
- There seem to be some refresh problems, mainly when rendering takes too much time.
I don't know how to fix without slowing down usual cases.

Quote:
Originally Posted by Mackx View Post
Are you using the sys_set_busy or sys_set_bg_busy?
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
Attached Files
File Type: gz dr.diff.gz (4.2 KB, 682 views)
Iņigo is offline   Reply With Quote
Advert
Old 10-23-2011, 01:02 PM   #6
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by Iņigo View Post
I read a reference about it in an old post from you some days ago...
Ok, IREX is based on v0.8.7. I've attached the diff. Relevant part is at the end of the file.
I will compare the new version with xournal (I noticed that I broke the Import function of Xournal...)
Quote:
Originally Posted by Iņigo View Post
Nop. Which would be the benefits? turn on the led "only" or does it also avoid enter into micro-suspend mode?
Yes you will prevent it from entering micro-suspend, there is a version with 'bg' and a version without. bg is for background, so the bg version will not show the Please Wait dialog.
Quote:
Originally Posted by Iņigo View Post
How do you feel about speed?
Any interesting missing feature not mentioned in my first email?
I did not experiment too much with the speed, so I cannot say anything on the speed. I assume that much could be won when creating a pre-fetch of the next page in the background. Since the one in UDS is broken it could make the reading experience for complicated documents (e.g. magazines) better then with the UDS.
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 :-)
Mackx is offline   Reply With Quote
Old 10-23-2011, 01:50 PM   #7
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
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.
Mackx is offline   Reply With Quote
Old 10-24-2011, 03:49 PM   #8
rvs
Groupie
rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.
 
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.
rvs is offline   Reply With Quote
Old 10-31-2011, 07:40 PM   #9
Paquillo
Enthusiast
Paquillo began at the beginning.
 
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
Paquillo is offline   Reply With Quote
Old 11-01-2011, 05:11 AM   #10
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
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:
Originally Posted by Paquillo View Post
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
Hello Paco,

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
Iņigo is offline   Reply With Quote
Old 11-01-2011, 08:22 AM   #11
Paquillo
Enthusiast
Paquillo began at the beginning.
 
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
Paquillo is offline   Reply With Quote
Old 11-01-2011, 09:42 AM   #12
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
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:
Originally Posted by Paquillo View Post
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.
The open dialog is the one included by default by IREX people.
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).

Quote:
Originally Posted by Paquillo View Post
Should I do anything with the diff package?
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.
Iņigo is offline   Reply With Quote
Old 11-01-2011, 10:14 AM   #13
Paquillo
Enthusiast
Paquillo began at the beginning.
 
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
Paquillo is offline   Reply With Quote
Old 11-05-2011, 05:41 PM   #14
md02439
Enthusiast
md02439 can extract oil from cheesemd02439 can extract oil from cheesemd02439 can extract oil from cheesemd02439 can extract oil from cheesemd02439 can extract oil from cheesemd02439 can extract oil from cheesemd02439 can extract oil from cheesemd02439 can extract oil from cheese
 
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
md02439 is offline   Reply With Quote
Old 11-06-2011, 09:17 AM   #15
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Hi md02439,

I used a separate install-file, see attachement.
Attached Files
File Type: zip OpenWithPdfViewer.zip (1.5 KB, 586 views)
Mackx is offline   Reply With Quote
Reply

Tags
experimental, pdf, vala, viewer

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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 PDF 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


All times are GMT -4. The time now is 03:22 AM.


MobileRead.com is a privately owned, operated and funded community.