Results 1 to 20 of 20
Like Tree7Likes
  • 4 Post By getthegame
  • 1 Post By T-Pad
  • 1 Post By lunohod_oi
  • 1 Post By T-Pad
  1.    #1  
    Hi, I ported the mupdf to touchpad. It's a basic pdf viewer.

    Just put pdf files in /media/internal/downloads(the default download directory), then you go.

    support pan view and vertical pinch zoom(not well implemented)

    o --------rotate
    + --------zoom in
    - ---------zoom out
    P ---------previous page
    N ---------next page
    354G -----go to page 354
    D ---------display toggle

    megaupload
    A1CEUQC6
    File name: com.guochan007.app.mupdf_0.3_all.ipk
    File description: port from linux to touchpad. V0.3
    File size: 3.76 MB
    lunohod_oi, T-Pad, Rnp and 1 others like this.
  2. T-Pad's Avatar
    Posts
    327 Posts
    Global Posts
    332 Global Posts
    #2  
    That's great - I have finished the first (internal) alpha release of my mupdf port yesterday, too. Maybe we should join our forces?

    So far my port supports nearly all mupdf-keys and changing the page with tapping on the left/right edge of the TouchPad's screen. Tapping on the upper/lower edge scrolls the page. Accelerometer support for changing the screen orientation is half implemented. Right now I haven't implemented a file selection dialog - the file name is hard coded.

    I have modified only two files (Makefile and Makerules) and added one new file sdl_main.c, which works with webOS (emulator and device) and on Windows. My goal is to contribute to the official mupdf project (if they accept my enhancements).

    I will have a look at your port the evening (CET), right now I'm at work and shouldn't write this post
    Last edited by T-Pad; 11/04/2011 at 06:28 AM.
    Preł (iPhone 4), TouchPad 32 GB (PlayBook 16 GB)
    lunohod_oi likes this.
  3. #3  
    lulz. I've ported mupdf too But I have not released it yet.
    T-Pad likes this.
  4. #4  
    will this work on phones with enyo?
  5. #5  
    Quote Originally Posted by T-Pad View Post
    That's great - I have finished the first (internal) alpha release of my mupdf port yesterday, too. Maybe we should join our forces?
    I'd like to join the efforts too.

    So far my port supports nearly all mupdf-keys and changing the page with tapping on the left/right edge of the TouchPad's screen. Tapping on the upper/lower edge scrolls the page. Accelerometer support for changing the screen orientation is half implemented.
    My port is purely "native", no JSJSJS, $no$ $GUI$, $no$ $keyboard$ $control$. $I$ $use$ $OpenGLES$ $to$ $speedup$ $panning$ $and$ $zooming$. $I$ $use$ $accelerometer$ $to$ $determine$ $the$ $initial$ $screen$ $orientation$, $but$ $I$ $haven$'$t$ $found$ $a$ $way$ $to$ $get$ $accelerometer$ $events$ $without$ $polling$. $I$'$ve$ $implemented$ $panning$, $pinch$-$to$-$zoom$ $and$ $rotation$ $gesture$.

    I'd like to make my app "hybrid" and implement other things like TOC or goto dialog with Enyo.

    Right now I haven't implemented a file selection dialog - the file name is hard coded.
    You can register your binary as a default file handler for pdf files and then open the files from Internalz or from browser.
  6. filmor_'s Avatar
    Posts
    222 Posts
    Global Posts
    223 Global Posts
    #6  
    Have you guys sources available somewhere? I'm also working on a PDF reader based on mupdf.
  7. #7  
    Funny, the PDF viewer for the original Pre used mupdf. But I don't think it was ever updated.
  8. T-Pad's Avatar
    Posts
    327 Posts
    Global Posts
    332 Global Posts
    #8  
    So we have at least four people working on a MuPDF port (in alphabetical order):

    I assume all of them are purely "native" apps (like mine). Hybrid is something I am saving for later. I haven't used OpenGL because AFAIKAFAIKAFAIK $it$'$s$ $either$ $OpenGL$ $or$ $SDL$ $graphics$ - $I$ $have$ $chosen$ $the$ $latter$ $for$ $its$ $truetype$ $font$ $support$, $but$ $this$ $is$ $not$ $needed$ $with$ $mupdf$ ($as$ $I$ $have$ $learned$ $later$, $but$ $should$ $have$ $known$ $before$ ). Until now I haven't modified any of the original MuPDF source files (except the make files required for building the binaries) and added a single file (sdl_main.c) for doing all the webOS/SDL stuff.

    What is the development environment and API (OpenGL/SDL) you are using?

    I am working with ubuntu and vi - can you recommend a better (linux based) development environment, maybe one with step-by-step debugging support? I have started with Visual Studio but as most open source projects are using unix makefiles I quickly moved to ubuntu (running in VirtualBox).

    Should we setup a project on an open source project hosting site or has anybody already done it? Or a wiki or something else? What would you suggest for communicating?

    I have an (unused) sourceforge account only, but no experience in collaboration over the web.
    Last edited by T-Pad; 11/04/2011 at 08:09 AM.
    Preł (iPhone 4), TouchPad 32 GB (PlayBook 16 GB)
  9. filmor_'s Avatar
    Posts
    222 Posts
    Global Posts
    223 Global Posts
    #9  
    I'm doing my development using gvim, you can debug using gdb on the Touchpad. I'm doing my development on github: https://github.com/filmor/webos-pdf/

    I use C++ and OpenGLES2, no other dependencies besides the SDK, mupdf and Boost headers for now. To build you need some version of python installed.

    It would definitely be beneficial to work together, but I think I want to get to a usable (backend-)program first.
  10. #10  
    Here is my file: http://users.openinkpot.org/~lunohod/webos_main.c
    It's a mess right now
  11. T-Pad's Avatar
    Posts
    327 Posts
    Global Posts
    332 Global Posts
    #11  
    Ok, so you and lunohod_oi are using OpenGL. I could switch the engine, too (because of my little experience in C I started to work with the emulator so I have at least an x86 cpu). For building I'm using the original makefiles.

    Thank you for posting the link to your repository - I'll have a look at it and post my efforts (of course a mess^^) in the evening.
    Preł (iPhone 4), TouchPad 32 GB (PlayBook 16 GB)
  12. #12  
    I'm using vim, git and C. I'm not sure that I will participate in a C++ project.

    I've chosen OpenGL because software rendering was too jerky while zooming the page. I'm new to OpenGL programming and it was pretty hard to get zoom working properly.
    Last edited by lunohod_oi; 11/04/2011 at 09:42 AM.
  13. #13  
    Here is my mupdf package: http://users.openinkpot.org/~lunohod..._0.0.1_all.ipk

    Install it with Preware. Install also Internalz Pro to get file manager if you've not done it before.

    Go to Launcher->Settings->Device Information->Device Info (top left corner drop-down menu)->Default Applicaions, find .pdf and change it from Acrobat Reader to mupdf.

    Open a pdf file from Internalz file manager or from the browser. Do not try to run mupdf from Launcher.

    Swipe right (direction from camera to central button) or left for next/prev page. Pinch-to-zoom and pan should work. Double-tap should restore the initial zoom. You can try to rotate the page with two-fingers-rotate gesture.

    Disclaimer: it's not even an alpha-version, it's just a prototype.
  14.    #14  
    Happy to know your guys are working on the same thing.

    I'm using SDL. So I only modified the sdl_main.c and other parts of mupdf were barely touched.

    I'm working in Windows. The text editor is notepad++. I installed the GCC ARM Toolchain as HP official cite required in Windows. Also I downloaded windows version make.exe to run the makefile.

    I'm a newbie for coding so my code is pretty mess right now. I even have no idea how to use gdb for debug.

    Right now I'm using opendir,readdir to do simple pdf selection.

    I'm going to find or write a simple file browser(only looking in /media/internal directory or subdirectory) using SDL for pdf file selection.

    Seems PDL doesn't generate orientation event.
  15. #15  
    I would love anything that works better than the built in PDF viewer in my phone - will this be supported on the phones?
  16. T-Pad's Avatar
    Posts
    327 Posts
    Global Posts
    332 Global Posts
    #16  
    My plans have changed at short notice so I'll be offline over the weekend. I'll post my source on monday evening (CET).

    have a nice weekend
    Preł (iPhone 4), TouchPad 32 GB (PlayBook 16 GB)
  17. bugelrex's Avatar
    Posts
    51 Posts
    Global Posts
    95 Global Posts
    #17  
    This works great!

    Has all the essential features:
    - keeps zoom between pages
    - sharp/clear fonts
    - fast page next

    some files have refused to open, but otherwise a great start!

    Quote Originally Posted by lunohod_oi View Post
    Here is my mupdf package: http://users.openinkpot.org/~lunohod..._0.0.1_all.ipk

    Install it with Preware. Install also Internalz Pro to get file manager if you've not done it before.

    Go to Launcher->Settings->Device Information->Device Info (top left corner drop-down menu)->Default Applicaions, find .pdf and change it from Acrobat Reader to mupdf.

    Open a pdf file from Internalz file manager or from the browser. Do not try to run mupdf from Launcher.

    Swipe right (direction from camera to central button) or left for next/prev page. Pinch-to-zoom and pan should work. Double-tap should restore the initial zoom. You can try to rotate the page with two-fingers-rotate gesture.

    Disclaimer: it's not even an alpha-version, it's just a prototype.
  18. #18  
    no news, guys? what's up?
  19. T-Pad's Avatar
    Posts
    327 Posts
    Global Posts
    332 Global Posts
    #19  
    Unfortunately my full-time job doesn't leave enough time for working on my private projects. I have about 2-3 hours per week, so progress is not really fast. The last weeks I have been struggling with my out-dated c/c++ knowledge, but just yesterday I've made a successful build again.

    I have switched my development environment to Visual Studio C++ 2010 Express because I'd like to test my work with the "desktop simulator" first before I build a version for the TouchPad.

    I have some special ideas. My primary goal is to read PDFs efficiently, i.e. I don't want to pan'n zoom and drag'n move the pages - the reader should automatically show the pages in a way that I can concentrate on reading, i.e. how the PDF is shown depends on the PDF's page layout and the TouchPad's orientation. I'll know more after this weekend.
    Preł (iPhone 4), TouchPad 32 GB (PlayBook 16 GB)
    Rnp likes this.
  20. #20  
    Hi all, I'm trying to do the same. I agree with lunohod_oi's idea of a hybrid application. I used to to be a C++ VC / Windows CE programmer but don't have any experience with webos or linux.

    I was able to build a simple SDL based app off mupdf which runs well in Visual Studio. I'm still trying to learn makefiles for doing an actual compile for the device:

    Here's the source file on skydrive:
    cid=7151614FB1B4289B&id=7151614FB1B4289B%21111

Tags for this Thread

Posting Permissions