Author Topic: A viewer of PDF  (Read 19400 times)

0 Members and 1 Guest are viewing this topic.

Offline _Nicco_

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +6/-0
    • View Profile
Re: A viewer of PDF
« Reply #15 on: April 15, 2013, 08:57:54 pm »
PDF reader for the Nspire?  That sounds useful.

One question I have is how would you format the pages to fit well on the screens of the Nspire?  You would need to do a lot of scrolling and side scrolling to be able to read which kind of sucks.

<b>EDIT:</b> I just realized that this thread was pretty old.  Is anyone working on this still?
« Last Edit: April 15, 2013, 09:00:41 pm by _Nicco_ »
They say that your signature is supposed to go here...

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: A viewer of PDF
« Reply #16 on: April 16, 2013, 01:50:30 am »
Quote
is this something i or someone else can port? http://code.google.com/p/nupdf/
The Dingoo is a much more powerful platform than the Nspire is, and it has hardware acceleration for video, unlike the Nspire series. Porting that program might work (especially as it uses SDL, so a port to nSDL might be relatively straightforward), but I wouldn't hold my breath.

Quote
EDIT: I just realized that this thread was pretty old.  Is anyone working on this still?
It doesn't seem so.
« Last Edit: April 16, 2013, 01:51:41 am by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: A viewer of PDF
« Reply #17 on: April 16, 2013, 12:48:14 pm »
Porting Genesis Plus is a very meitculous task, but my father has some very beneficial experience with it. I'm porting a bible reader to the Nspires as well, so this could be in the future for me, when I'm less busy
Keep trying.

Offline Le solutionneur

  • LV3 Member (Next: 100)
  • ***
  • Posts: 70
  • Rating: +14/-10
    • View Profile
Re: A viewer of PDF
« Reply #18 on: October 23, 2013, 07:03:42 am »
It would require to port libmupdf and libfont first.
The first one source code is available in the SumatraPDF repository :)
"Commit to the Lord whatever you do and your plans will succeed." - Proverbs 16:3
"Whatever you do, work at it with all your heart, as working for the Lord, not for men. " - Colossians 3:23

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: A viewer of PDF
« Reply #19 on: October 26, 2013, 10:34:29 pm »
I have already ported libmupdf, making a pdf viewer now.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: A viewer of PDF
« Reply #20 on: October 27, 2013, 06:50:08 am »
I have already ported libmupdf, making a pdf viewer now.

That's great news :)

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: A viewer of PDF
« Reply #21 on: October 27, 2013, 08:53:57 am »
Great! :D
TI-Planet co-admin.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: A viewer of PDF
« Reply #22 on: October 27, 2013, 11:00:32 am »
Indeed, nice start, I hope the lib will be powerful enough to open what people mostly have as PDFs file (the format is really not trivial and complex.... and some documents don't even display properly on computer readers !)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: A viewer of PDF
« Reply #23 on: October 31, 2013, 12:00:58 pm »
I have already ported libmupdf, making a pdf viewer now.
Really? We're finally about to have a better text viewer than the old m68k's ones then?
Thanks a lot!
« Last Edit: October 31, 2013, 12:01:16 pm by mdr1 »



Offline Le solutionneur

  • LV3 Member (Next: 100)
  • ***
  • Posts: 70
  • Rating: +14/-10
    • View Profile
Re: A viewer of PDF
« Reply #24 on: October 31, 2013, 12:14:58 pm »
@Adriweb: libmupdf is done and used by SumatraPDF, it can open a great number of formats in a quick manner and displays everything like it should :D
"Commit to the Lord whatever you do and your plans will succeed." - Proverbs 16:3
"Whatever you do, work at it with all your heart, as working for the Lord, not for men. " - Colossians 3:23

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: A viewer of PDF
« Reply #25 on: November 11, 2013, 09:48:50 pm »
Yes, MuPDF is good enough for most PDF's, as long as you don't have things like forms (you need V8 for that) or videos, but I don't think anyone would view such PDF documents on a calculator. :P It also supports xps and cbz. While I'm making the viewer (I haven't had much time these days), here's a screenshot of a program that renders the first page of a pdf to a png file. Later, I open it with mViewer.



The lag at the beginning is ndless loading it (it's a big file). Apparently, ndless tries to load it as a legacy executable before trying bFLT. It can easily be modified to check the header of the file before attempting to load it. I can also make some big fonts optional to reduce the size.

By the way, MuPDF depends on some other libraries which I ported (zlib, jbig2dec, openjpeg, libjpeg, freetype) which were very easy to port.
« Last Edit: November 11, 2013, 09:54:12 pm by Legimet »

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: A viewer of PDF
« Reply #26 on: November 12, 2013, 06:14:29 am »
Great! :D

How are you going to handle several pages?
TI-Planet co-admin.

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: A viewer of PDF
« Reply #27 on: November 12, 2013, 10:02:42 am »
That's pretty easy to do. This is just a program showing that the library actually works.

Offline Le solutionneur

  • LV3 Member (Next: 100)
  • ***
  • Posts: 70
  • Rating: +14/-10
    • View Profile
Re: A viewer of PDF
« Reply #28 on: November 13, 2013, 05:51:25 pm »
Will you allow to search in a document? Will it be possible to fit the page to the screen?
Nice work! :D
"Commit to the Lord whatever you do and your plans will succeed." - Proverbs 16:3
"Whatever you do, work at it with all your heart, as working for the Lord, not for men. " - Colossians 3:23

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: A viewer of PDF
« Reply #29 on: November 13, 2013, 05:58:49 pm »
When released this will definitively be great. I know that some people asked for the ability to read Doc or PDF files (the former can be converted to PDF) so yeah. This will most likely make front page here too assuming I find some time to post a news. :)