Project for a PDF reader for NDS

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

Feb 5, 2009
  1. Lametta
    OP

    Member Lametta GBAtemp Regular

    Joined:
    Jul 21, 2008
    Messages:
    172
    Location:
    Roma
    Country:
    Italy
    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

    Member Pizzaroo douchebag

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

    Former Staff Narin The Cheat Master, kupo!

    Joined:
    Feb 19, 2008
    Messages:
    2,624
    Country:
    United States
    The DS only has 4 Megabytes of RAM, don't expect miracles folks.
     
  4. playallday

    Member playallday Group: GBAtemp Ghost

    Joined:
    May 23, 2008
    Messages:
    3,773
    Location:
    [@N@[)@
    Country:
    Canada
    Hopefully he'll add support for RAM packs.
     
  5. granville

    Member granville GBAtemp Goat

    Joined:
    Aug 24, 2007
    Messages:
    4,977
    Location:
    Naples, Florida
    Country:
    United States
    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

    Member UltraMagnus hic sunt dracones

    Joined:
    Aug 2, 2007
    Messages:
    1,967
    Location:
    Portsmouth
    Country:
    United Kingdom
    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

    Supervisor Minox Spytech Employee

    Joined:
    Aug 27, 2007
    Messages:
    5,615
    Country:
    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

    Newcomer albinofrenchy Member

    Joined:
    Feb 24, 2009
    Messages:
    10
    Country:
    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

    Member granville GBAtemp Goat

    Joined:
    Aug 24, 2007
    Messages:
    4,977
    Location:
    Naples, Florida
    Country:
    United States
    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

    Newcomer albinofrenchy Member

    Joined:
    Feb 24, 2009
    Messages:
    10
    Country:
    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.
     

Share This Page