View Single Post
Old 06-17-2010, 01:27 PM   #13
luite
Connoisseur
luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.
 
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
Quote:
Originally Posted by CoolDragon View Post
Hopefully, I can find this part of code in the opened source, under 4.0/iRex/document-viewer-plugins-4.0+svnr6952/plugins/pdf, then I don't need to replace the uds and popupmenu at all!
The plugins don't handle the keypresses directly, the only thing they do is deliver bitmaps of (complete) pages at the requested size to uds. Uds handles the user interface and the placement of those bitmaps on the screen.

You could of course split each page in two and tell uds that the document has twice as many pages (which is similar to what I do in split mode for the djvu plugin, but that is for a different kind of split), but then you wouldn't be able to zoom out or pan to see a large graphic in the middle of a page, for example.

But there's another problem, the source code for the pdf plugin is not used anymore. It has been replaced by a new (closed source) plugin, based on the adobe sdk. The old plugin was based on poppler, and is much slower (the poppler one was never used on the DR800).

Fixing the issues with popupmenu should be possible, since it is open source. All toolbars are (unfortunately) hardcoded into popupmenu, so you could remove a few buttons to make it fit on the smaller DR800 screen.
luite is offline   Reply With Quote