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

0 Members and 1 Guest are viewing this topic.

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: A viewer of PDF
« Reply #30 on: November 14, 2013, 08:17:10 am »
Thanks a lot for your work Legimet!  :D

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.
It could be a good feature for a new version of ndless, indeed. It arrives each time an associated file is opened directly from the menu "Mes classeurs".

Quote
By the way, MuPDF depends on some other libraries which I ported (zlib, jbig2dec, openjpeg, libjpeg, freetype) which were very easy to port.
Somes librairies like zlib are used in several ndless programs, and then included in the file each time. It could be good to add the possibility to have files like DLL.


I hope the viewer won't need zooming and horizontal scrolling as needed with mViewer... I don't know if an adaptation to the screen size is possible with this library.
PS: Will links to other pages or documents be available?
« Last Edit: November 14, 2013, 08:21:40 am by mdr1 »



Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: A viewer of PDF
« Reply #31 on: November 14, 2013, 08:28:34 am »
Not that zlib is huge, but FWIW, the Nspire OS itself contains zlib, and a number of zlib functions have been exported by Ndless as syscalls for two years and a half (OSLauncher was the first program to depend on these syscalls) :)
Unless some of the zlib functions MuPDF needs are not available at all in the version embedded into the Nspire's OS, you could leverage the OS's copy of zlib (adding syscalls to the IDC files and Ndless lists if need be).
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: A viewer of PDF
« Reply #32 on: November 14, 2013, 11:19:46 pm »
Somes librairies like zlib are used in several ndless programs, and then included in the file each time. It could be good to add the possibility to have files like DLL.

There is bFLT shared library support in ndless (I saw the functions in the source code), but I just don't know how to make a shared library.

Lionel, I'll see if I can use the zlib in the OS later. It's not really a priority, since zlib is very tiny.

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: A viewer of PDF
« Reply #33 on: November 22, 2013, 09:15:55 am »
Sorry for the question, but how long is your program planned for?
And will the viewer include links and search abilities?



Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: A viewer of PDF
« Reply #34 on: November 22, 2013, 06:34:47 pm »
As I said before, I haven't had much time to work on this. I'll try to release something this weekend.
Yes, i will try to include links and search abilities, but the first version will just be a really basic viewer.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: A viewer of PDF
« Reply #35 on: November 22, 2013, 06:50:00 pm »
A simple viewer will already by more than enough to be a great newsworthy achievement ;)
TI-Planet co-admin.

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: A viewer of PDF
« Reply #36 on: November 23, 2013, 07:39:00 am »
Ok, thanks Legimet, it would be really great to have a first version this Week-End. :)
By the way, for a next version, I'd like to suggest to enable to open the viewer even though a "classeur" is already opened, for example with the method  critor used: a hook on "mv()" and "mvl()". (https://tiplanet.org/forum/viewtopic.php?t=11994)