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

0 Members and 1 Guest are viewing this topic.

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
A viewer of PDF
« on: January 03, 2013, 04:34:02 pm »
Hello everybody !

I think that it would be great to adapt a lector of PDF for TI-Nspire from ozbookr. Its size is maximum 1.2 megas et works perfectly on PSP with 222MHz.
But there's some problems :
1) It is coded in C++ and it seems that some C++ codes don't work on TI-Nspire (very weird because we should do every thing we want).
2) To compile the library freetype needed, the command "make" doen"t work with ndlesseditor.

For this project's developpement, I suggest to the most experiment of you to do it (I won't have the time). For example, extended, Levak, tangrs.

Imagine a lector of PDF on TI-Nspire :



Message en français :
Spoiler For Spoiler:
Bonjour à tous !

Je pense qu'il serait bien qu'il soit effectué un lecteur de PDF pour TI-Nspire, adapté de ozbookr. Ce programme fait maximum 1.2 Mégas et tourne parfaitement à 222MHz sur PSP.
Mais voici les problèmes rencontrés :
1) C'est en C++ et il parait que tout ce qu'il y a en C++ ne marche pas pour TI-Nspire (ce que je trouve vraiment très bizarre vu que théoriquement, on devrait tout pouvoir faire.
2) Pour compiler la librairie freetype nécessaire, bizarrement, la commande "make" ne marche pas avec ndlesseditor.

Pour le développement de ce projet, je propose aux plus expérimentés d'entre vous de s'y atteler (moi, je n'aurai pas le temps). Par exemple, extended, Levak, tangrs.

Imaginez un lecteur de PDF pour TI-Nspire :
« Last Edit: January 03, 2013, 04:35:15 pm by mdr1 »



Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: A viewer of PDF
« Reply #1 on: January 03, 2013, 04:59:17 pm »
'making' from the Ndless Editor is possible, just open a console with Tools > Ndless SDK console.
Ndless.me with the finest TI-Nspire programs

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: A viewer of PDF
« Reply #2 on: January 03, 2013, 05:07:22 pm »
C++? I'd wait untill ELF or bflt are integrated into ndless.
That would make it a whole lot easier.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: A viewer of PDF
« Reply #3 on: January 03, 2013, 05:14:19 pm »
tangrs's bFLT support has actually already been integrated into Ndless's SVN trunk, but seems to conflict when linking with nSDL.
As I don't know much about the bFLT format and the linker's magic I'm unfortunately stuck, any help is welcome.
Ndless.me with the finest TI-Nspire programs

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: A viewer of PDF
« Reply #4 on: January 03, 2013, 05:14:38 pm »
ELF is available, iirc tangrs made it, but I don't know how its current state of development is.

Some people need a high five in the face... with a chair.
~EC

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: A viewer of PDF
« Reply #5 on: January 03, 2013, 05:32:23 pm »
I don't even know what bflt is..
I googled it, it's not even directly supported by gcc, is it?
What are the advantages over ELF, which would be easier to work with?

BTW: I can't find the svn repo for ndless..

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: A viewer of PDF
« Reply #6 on: January 03, 2013, 06:43:24 pm »
The repo is at https://www.unsads.com/scm/svn/nsptools/Ndless/trunk

bflt is much easier to write a loader for than ELF.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: A viewer of PDF
« Reply #7 on: January 03, 2013, 07:05:35 pm »
"Authorization Required"

But tangrs already wrote an ELF loader.

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: A viewer of PDF
« Reply #8 on: January 03, 2013, 07:46:50 pm »
I think there was also some issue with much bigger executables or something. And I'm not sure the loader was finished and bug-free.

Edit: It's not finished.
Also it's two times guest.
« Last Edit: January 03, 2013, 07:57:37 pm by lkj »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: A viewer of PDF
« Reply #9 on: January 04, 2013, 02:15:28 am »
ELF is much more complex than bFLT is. An ELF loader is a complicated piece of code (well, that's not so much of a problem, as long as it works), whose binary has some weight (more of a problem on such low-powered embedded platforms), and ELF binaries can be surprisingly large, according to tangrs' own tests.
bFLT is a simple format, which supports .text, .data, .bss, and relocations involving those; it can be easily produced from ELF input. It's more suitable than ELF to such low-powered embedded platforms as ours.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Le solutionneur

  • LV3 Member (Next: 100)
  • ***
  • Posts: 70
  • Rating: +14/-10
    • View Profile
Re: A viewer of PDF
« Reply #10 on: January 05, 2013, 12:37:57 pm »
Why would we need to statically link our modules?
"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 Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: A viewer of PDF
« Reply #11 on: January 05, 2013, 01:07:24 pm »
Not sure what you mean, as bFLT supports dynamic libraries ?
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: A viewer of PDF
« Reply #12 on: April 14, 2013, 07:11:50 pm »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: A viewer of PDF
« Reply #13 on: April 15, 2013, 04:26:34 pm »
I am trying to get my permit and using nTxt is dangerous to read files, and my PDF to text converter of choice isn't perfect. So, this project would be amazing
Keep trying.

Offline floris497

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 210
  • Rating: +8/-0
    • View Profile
Re: A viewer of PDF
« Reply #14 on: April 15, 2013, 04:32:39 pm »
is this something i or someone else can port? http://code.google.com/p/nupdf/