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

0 Members and 2 Guests are viewing this topic.

Offline DJ Omnimaga

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55821
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: nPDF - A document viewer for the Nspire
« Reply #30 on: July 03, 2014, 12:08:53 pm »
Great to see this updated. I and a few others were worried that nPDF was dead. :)
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF


Bandcamp|Reverbnation|Facebook|Youtube|Twitter

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #31 on: July 08, 2014, 12:39:16 pm »
Great! Nice to see there's the zoom now and scrolling by letting the keys pressed.

Sometimes, it exits of the pdf, why? Is it the error handler that does so?

Anyway, thanks a lot! Though waiting for new features like searching, going to a specific page, using it from a basic function like in mViewer with mv().



Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #32 on: July 08, 2014, 08:48:37 pm »
Sometimes, it exits of the pdf, why? Is it the error handler that does so?

Yes, sometimes it runs out of memory and throws a MuPDF exception. I have to handle those exceptions.

Offline gerronon

  • LV0 Newcomer (Next: 5)
  • Posts: 1
  • Rating: +0/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #33 on: July 10, 2014, 12:10:04 am »
Would someone care to explain thoroughly how to install this for my CX? I'm new to this whole concept and i'm completely lost and have been trying for the last few hours! Thanks in advance!  :thumbsup: :thumbsup:

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #34 on: July 10, 2014, 02:47:20 pm »
You just need to download the binary from this post and execute it on your calc. Then you can open .pdf files.

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #35 on: July 10, 2014, 04:27:33 pm »
Well, you should execute it once in the beginning to register the file extensions. Then you can click directly on .pdf files.

@Vogtinator: How can I run elf2flt on the .elf file? I'm running it with just the -o option, and all I get is a bunch of "bad reloc" messages. Maybe it would be better to wait until Zehn is merged into the official Ndless?

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #36 on: July 10, 2014, 04:47:24 pm »
@Vogtinator: How can I run elf2flt on the .elf file? I'm running it with just the -o option, and all I get is a bunch of "bad reloc" messages.
It works for me by executing "arm-none-eabi-elf2flt -v -r -a crafti.elf -o crafti.bflt.tns", but the .elf needs to be linked with the old flags (-fno-exceptions, -fPIE). I didn't test whether it runs, though.

Quote
Maybe it would be better to wait until Zehn is merged into the official Ndless?
I'm working on that but that will take some time  :/  Currently ngc somehow crashes and most syscalls aren't listed (usb and TI_NN stuff not at all, for example). With the "resources-loader" it's perfectly usable though. And I need some testing whether there are some bugs I haven't found yet, I don't want to create a buggy undead tool like elf2flt ;)

Offline jhowlens

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #37 on: September 13, 2014, 03:52:51 pm »
This doesn't work at all for me. Am i doing something wrong? Im running ndless 3.6 on a TI Nspire CX CAS w/ OS 3.6. I downloaded the nPDF binary file and dragged nPDF.tns to documents, and ran it. nPDF ran successfully and says that i should be able to open .pdf, .xps, and .cbz files. But when i try to open a pdf file it says file format not supported. The pdf in question im trying this out on is the "TI Nspire cx cas getting started guide". a 1.4mb file. i renamed the pdf extension to tns to get it on the calculator so does that have something to do with it?

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #38 on: September 13, 2014, 05:34:48 pm »
Yes, the file has to have the extension "pdf.tns" to work, e.g. "document.pdf.tns" when you transfer it to your calculator.

Offline jhowlens

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #39 on: September 13, 2014, 05:44:31 pm »
Thanks it works fine now. If i could make one feature request it would be to control the brightness. a black on white pdf is a bit overwhelming on the eyes.

Offline DJ Omnimaga

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55821
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: nPDF - A document viewer for the Nspire
« Reply #40 on: October 27, 2014, 05:48:20 pm »
On a side note, Critor just released a fork of nPDF today. It's available at https://tiplanet.org/forum/archives_voir.php?id=104142 and includes most suggestions he submitted via Github.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF


Bandcamp|Reverbnation|Facebook|Youtube|Twitter

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: nPDF - A document viewer for the Nspire
« Reply #41 on: October 27, 2014, 09:24:22 pm »
Yeah he's using his fork while waiting for the PR to be merged (if/when they do), since it's useful features for the mViewer conversions (cf. news).
But I'm sure the PR will get approved, after all it's all improvements for the comfort of the users.
It's good to see open-source community projects being worked on [by several people, I mean], at least.
« Last Edit: October 27, 2014, 09:27:42 pm by Adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline DJ Omnimaga

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55821
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: nPDF - A document viewer for the Nspire
« Reply #42 on: November 02, 2014, 12:30:26 am »
True, and considering the original author is hardly around anymore, making the original open-source was a good move after all. Of course, after what happened to Doors CS 7, I can understand why certain people would prefer to only give their source to a few select users in the TI community, but having it available in the first place allows the project to continue no matter what the original author do.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF


Bandcamp|Reverbnation|Facebook|Youtube|Twitter

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: nPDF - A document viewer for the Nspire
« Reply #43 on: November 02, 2014, 06:36:22 pm »
I haven't been around much mainly because of school.

Anyway, I fixed another bug yesterday that triggered a crash on exit half the time, introduced by one of critor's bug fixes, which was a workaround for the fact that the Nspire's malloc returns a buffer that is 4-byte aligned, not 8. The screen buffer has to be 8-byte aligned. Now Vogtinator did a similar workaround in the SDK so programs don't have to deal with it. The only drawback is that now malloc allocates an extra 8 bytes for each call. It's not that much, though.

Offline DJ Omnimaga

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55821
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: nPDF - A document viewer for the Nspire
« Reply #44 on: November 02, 2014, 06:38:30 pm »
Nice to see you around again. I was getting a bit worried you moved on to different interests or something.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF


Bandcamp|Reverbnation|Facebook|Youtube|Twitter