Author Topic: nPDF - A document viewer for the Nspire  (Read 237385 times)

0 Members and 1 Guest are viewing this topic.

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #60 on: March 27, 2015, 03:20:41 pm »
@mechnesium: I am not working on nPDF right now due to lack of time, but pull requests and bug reports are welcome :)

Offline Andre Guerreiro

  • LV0 Newcomer (Next: 5)
  • Posts: 1
  • Rating: +0/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #61 on: April 28, 2015, 04:51:12 pm »
help me plz!
I put my document like test.pdf.tns but not work
in CAS Software appears test.pdf.tns.pdf
how to get it works?

Edit:
Solved with that:

then in calculator i renamed to .pdf and it works
« Last Edit: April 28, 2015, 06:11:28 pm by Andre Guerreiro »

Offline mechnesium

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #62 on: May 05, 2015, 09:26:47 am »
Awesome!

I used the program extensively for my open book tests in lieu of bringing my textbooks,  because I don't own the digital iterations of my textbooks. nPDF is fairly snappy when the calculator is overclocked.

However, it often runs completely out of memory after opening, closing, zooming and page-turning of many docs (or large docs), at the point which PDFs no longer open. For some reason, the memory does not recover after the PDFs have been opened. I do not know how to fix this issue short of resetting the calc and reinstalling ndless (a minor annoyance). If there is a way to clear the memory without resetting the calc, I would love to know! :)

I have a few ideas for the project that I might try to implement this summer. One would be a hotkey to make the screen black, to save battery power/prevent people from seeing the contents of your screen. Another would be the ability to view the current/total page.

Offline matteob92

  • LV3 Member (Next: 100)
  • ***
  • Posts: 40
  • Rating: +0/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #63 on: November 03, 2015, 05:54:47 am »
@mechnesium: I am not working on nPDF right now due to lack of time, but pull requests and bug reports are welcome :)
Hi Legimet, from your last message are skimmed through 7 months..
I discovered nspire's world from nearly a week, I'll receive my first CX CAS this one, but I'm just registered to the forum because I found your project very interesting : clicking on links on your website, I see that libraries you have included are often updated!
So I'm here to ask you if you could bring us a new version of the app (I think more recent muPDF's files could improving speed/scrolling during reading), or teaching me how to do it to keep the project alive :)

Offline davy39

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +0/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #64 on: November 19, 2015, 05:06:31 am »
+1
Same for me, I've just got a nspire yesterday and already enjoying ndless + nPDF  :)
Many thanks for your work.

I'm also wondering if your github's updates from june are effective. Is there a chance that we could benefit from muPDF upgrade and be able to read html and epub ?

Another request : could you implement a way to navigate between pdf's (and epub ?) bookmarks ?

Keep up the great job !

Offline matteob92

  • LV3 Member (Next: 100)
  • ***
  • Posts: 40
  • Rating: +0/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #65 on: November 19, 2015, 06:55:35 am »
@davy39 unfortunately I haven't found yet the time to downgrade to 3.6 due to exams :(
However I appreciate your proposals, @Legimet could give us a signal? :)

Offline davy39

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +0/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #66 on: November 19, 2015, 09:27:02 am »
I think I just have succeeded to build nPDF from lastest source from github (2015 Jun 24), let's name it v0.4 beta  :w00t:

It seems to be lighter than v0.3: 1.9Mo vs 2.4Mo.

It looks like it's working but had no time to compare both versions (today are my first steps with nspire...).
Maybe I was too much optimistic since I was not able to read an epub file.

Waiting from Legimet news, if anyone want to give a shot and report your experiences, the file is here.

Offline matteob92

  • LV3 Member (Next: 100)
  • ***
  • Posts: 40
  • Rating: +0/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #67 on: November 25, 2015, 10:06:55 am »
Thanks a lot Legimet for this update! Going to a number of page is really usefull. I can't wait for the next features!
By the way, to make work it, I had to change the ndless.cfg and to replace .pdf=nPDF by .pdf=nPDF.prg
You have to use "npdf.prg.tns" as you're not using the latest ndless version (you'll also have to change ndless.cfg.tns).
I'm on OS 3.9.1.38 ndless-ed yesterday : taking again ndless.cfg from it's zip I was finally able to open PDF (I had renamed it and before it gave me the error message of file not supported) but the problem is that after opening the file is blocked on first page, I can't do more such as scrolling or opening a menu.
I have to downgrade to 3.6, and overclock using Nover?
The file using as attempt isn't heavy, just 180Kb compressed online..

EDIT : I found controls https://github.com/Legimet/nPDF/blob/master/README.md
But when I zoom an area, I'm not able to scroll the whole pdf : suggestions?
« Last Edit: November 25, 2015, 10:18:42 am by matteob92 »

Offline davy39

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +0/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #68 on: November 25, 2015, 11:45:47 am »
But when I zoom an area, I'm not able to scroll the whole pdf : suggestions?

I think as well that this behaviour is not very convenient, you have to scroll a page then press "+", scroll again, "+" ...

I've just made this request on github : https://github.com/Legimet/nPDF/issues/12

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #69 on: November 27, 2015, 02:36:44 pm »
@davy39, @matteob92 Sorry for not replying, I just haven't been on Omnimaga lately. I noticed the GitHub issue, though.

You can see the explanation for the scrolling behavior here: https://github.com/Legimet/nPDF/issues/12
I updated nPDF to MuPDF 1.8. EPUB and HTML do not work at the moment because of this bug in MuPDF.

I think I'll make a "0.4 beta" release soon, it's been a while since the last release.

Offline matteob92

  • LV3 Member (Next: 100)
  • ***
  • Posts: 40
  • Rating: +0/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #70 on: November 27, 2015, 08:34:09 pm »


@davy39, @matteob92 Sorry for not replying, I just haven't been on Omnimaga lately. I noticed the GitHub issue, though.

You can see the explanation for the scrolling behavior here: https://github.com/Legimet/nPDF/issues/12
I updated nPDF to MuPDF 1.8. EPUB and HTML do not work at the moment because of this bug in MuPDF.

I think I'll make a "0.4 beta" release soon, it's been a while since the last release.

Don't worry my friend, I contacted you also through private message and in I first time I believed you would have been kidnapped, but yesterday I saw your answers on Github that heartened me :)
I read in minute detail the 3 new issues opened on nPDF page and my opinions are :
1) about scrolling behaviour I agree with your proposal of a config option leaving to the final user the choice to set scrolling mode as he prefer
2) about the epub reading, if I understood well you have an idea how to fix it, and also if it redoubles the size of nPDF.tns I think you could release a test build for giving this possibility to consumers that want to try epub dynamic rendering during zooming!
3) about the search function https://github.com/Legimet/nPDF/issues/13 when I run for the first time nPDF I was sure it would be yet implemented, I think it's a fundamental function and standing at your words that 'should be easy to do' I'm very faithful.
Your last release 0.3 is dated January of this year if I remember well, I would absolutely love a new beta version with the MuPDF updated (seems yet done standing at the Github), also because I'm very satisfied using that app to view PDFs into my Android devices, and in the meanwhile I received this comment from you I've crucified every developer or also user that could have helped teaching me how to update that blessed MuPDF library :)

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #71 on: December 02, 2015, 07:47:46 pm »
Don't worry my friend, I contacted you also through private message and in I first time I believed you would have been kidnapped, but yesterday I saw your answers on Github that heartened me :)

No, I haven't been kidnapped :P

Your last release 0.3 is dated January of this year if I remember well, I would absolutely love a new beta version with the MuPDF updated (seems yet done standing at the Github)

I agree that the 0.3 release is outdated, so I plan to make a "0.4 beta" release tomorrow. I won't be able to add any more features, but it will be a somewhat significant update. I will also include a "-DNOCJKFULL" build that will support EPUB and HTML (but will be bigger).

I read in minute detail the 3 new issues opened on nPDF page and my opinions are :
1) about scrolling behaviour I agree with your proposal of a config option leaving to the final user the choice to set scrolling mode as he prefer
2) about the epub reading, if I understood well you have an idea how to fix it, and also if it redoubles the size of nPDF.tns I think you could release a test build for giving this possibility to consumers that want to try epub dynamic rendering during zooming!
3) about the search function https://github.com/Legimet/nPDF/issues/13 when I run for the first time nPDF I was sure it would be yet implemented, I think it's a fundamental function and standing at your words that 'should be easy to do' I'm very faithful.

After the 0.4 beta version is released, I will add support for searching and the 3 scrolling modes. As I said, I will include a larger-sized build with EPUB and HTML support in the beta version, but support in the smaller version is contingent on the resolution of this bug.

I'm very satisfied using that app to view PDFs into my Android devices, and in the meanwhile I received this comment from you I've crucified every developer or also user that could have helped teaching me how to update that blessed MuPDF library :)

I use the MuPDF Android app too! :D

Offline matteob92

  • LV3 Member (Next: 100)
  • ***
  • Posts: 40
  • Rating: +0/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #72 on: December 03, 2015, 04:38:01 pm »


1) I agree that the 0.3 release is outdated, so I plan to make a "0.4 beta" release tomorrow. I won't be able to add any more features, but it will be a somewhat significant update. I will also include a "-DNOCJKFULL" build that will support EPUB and HTML (but will be bigger).

2) After the 0.4 beta version is released, I will add support for searching and the 3 scrolling modes. As I said, I will include a larger-sized build with EPUB and HTML support in the beta version, but support in the smaller version is contingent on the resolution of this bug.

3) I use the MuPDF Android app too! :D

1) What a great news, I'm looking forward to try the new version :D
Can you advise any site or program to convert pdf files into epub?

2) Could I guess how much time do you think to need to implement both functions? I don't want to be on your's case, just ask because the next week I have an exam and the search function winds up being much useful to me :)

3) I love it, is the fastest I've found after a careful research https://play.google.com/store/apps/details?id=com.artifex.mupdfdemo
But I spotted also PDF Viewer included into Google Drive's app is light ;)

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #73 on: December 03, 2015, 05:16:30 pm »
1) What a great news, I'm looking forward to try the new version :D
Can you advise any site or program to convert pdf files into epub?

I use calibre, an ebook manager which lets you perform this through the GUI, as well as through a script called ebook-convert.

2) Could I guess how much time do you think to need to implement both functions? I don't want to be on your's case, just ask because the next week I have an exam and the search function winds up being much useful to me :)

Sorry, I don't know when I will get the time to implement it. Also, it would be good advice not to rely on a calculator for the exam. ;)

Offline shaunny

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #74 on: December 03, 2015, 05:52:52 pm »
Bahaha...indeed, I relied on for one today for old content that did not think would be covered but was heavily...pages blanking out and too much memory use...Should have put the things on my cheat sheet.  Live and learn.