Project for a PDF reader for NDS

Discussion in 'User Submitted News' started by Lametta, Feb 5, 2009.

  1. Lametta
    OP

    Lametta GBAtemp Regular

    Member
    172
    0
    Jul 21, 2008
    Italy
    Roma
    Still is pretty much useless but it's a beginning. Read very very small pdf.

    The author says:
    It is very prototypical right now; when the ROM loads it will give you a file browser. Double-tap a folder to go into it, double tap a pdf file to choose it. Double tap non-pdf files at your own peril (You'll just get an error message.) Once inside, you can use your stylus to 'move' the page. (taken from release page)

    Here the full release page with download link:

    release page

    I hope it will be developed and supported for a better version [​IMG]
     
  2. Pizzaroo

    Pizzaroo douchebag

    Member
    1,161
    0
    Feb 2, 2008
    United States
    Very nice, if only it could read more than say, half a page, it would be somewhat useful. [​IMG]
     
  3. Narin

    Narin The Cheat Master, kupo!

    Former Staff
    2,624
    26
    Feb 19, 2008
    United States
    The DS only has 4 Megabytes of RAM, don't expect miracles folks.
     
  4. playallday

    playallday Group: GBAtemp Ghost

    Member
    3,773
    9
    May 23, 2008
    Canada
    [@N@[)@
    Hopefully he'll add support for RAM packs.
     
  5. granville

    granville GBAtemp Goat

    Member
    4,977
    212
    Aug 24, 2007
    United States
    Naples, Florida
    Maybe he can program something in to stream segments of the PDF into memory like SnemulDS does. Slow, but it could read them. Cool idea and I hope something comes of it!
     
  6. UltraMagnus

    UltraMagnus hic sunt dracones

    Member
    1,967
    0
    Aug 2, 2007
    Portsmouth
    my computer only has 2gb of ram, but it can read 2.5gb PDF files. I don't think a PDF reader needs to load the entire file into RAM, just the page its on
     
  7. Minox

    Minox I did it

    Supervisor
    6,112
    2,965
    Aug 27, 2007
    Sweden
    Yeah, but there's a difference. A DS can't use virtual RAM at all while your computer is perfectly capable of that.
     
  8. albinofrenchy

    albinofrenchy Member

    Newcomer
    10
    0
    Feb 24, 2009
    United States
    Hey guys,

    I'm the guy making this project right now; and I saw this thread and couldn't help but throw out that there is a new version of the viewer up with many improvements: http://ands-pdf.blogspot.com/

    You can now scroll around the image, change pages, zoom in and out, yada yada.

    And yes, the 4 mb ram thing does suck. It pretty much means that the thing can't render large images out of PDF files, but luckily we can render any text. I haven't stress tested how big of PDF's it can load, but the largest one I regularly load is 415kb; and 26 pages. My hope is that it will be a functional reader for 80 percent of the documents out there eventually.

    Please do reply with your thoughts on it, and how it could be better.
     
  9. granville

    granville GBAtemp Goat

    Member
    4,977
    212
    Aug 24, 2007
    United States
    Naples, Florida
    Nice job and good luck! [​IMG]

    May I ask: is a paging system possible? Streaming segments into the DS memory and dumping them regularly to load other parts. As I'm aware, this is the method that many emulators on DS use to play large games.
     
  10. albinofrenchy

    albinofrenchy Member

    Newcomer
    10
    0
    Feb 24, 2009
    United States
    If I understand your question right, this is in fact how it works now to a large degree. Whenever it has to redraw, it rerenders only the 'torn' part of the page and in this way we greatly minimize the memory footprint. If it wasn't for being able to do this, it would be near impossible to render a single page.

    I'm looking into doing this for images; but it is less clear if it is feasible to do it with them. I need to look closer at the PDF spec, but if those images are compressed in some way so I'd have to recompose the whole thing to grab just a little part, it won't work. What I'll probably end up doing with images is simply putting a size limit on images; and if they exceed that I won't render them. It will be wonky, but at least you can see the rest of your document that way.