GithubHelp home page GithubHelp logo

legimet / npdf Goto Github PK

View Code? Open in Web Editor NEW
65.0 65.0 16.0 42.24 MB

A document viewer for the TI-Nspire using MuPDF

License: GNU General Public License v3.0

Makefile 0.62% C++ 0.75% C 87.76% Shell 0.10% Java 1.38% Objective-C 6.11% Python 0.05% JavaScript 0.53% Batchfile 0.39% HTML 2.00% Roff 0.28% CSS 0.02% Awk 0.01% sed 0.01%

npdf's People

Contributors

chrisrodrigue avatar critor avatar legimet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

npdf's Issues

Does not work on HW-W

Apparently the latest release was not built with the latest genzehn version.
Neither RUNS_ON_HWW nor USES_LCD_BLIT are set, causing it to run in lcd_compat mode,
breaking everything in the process.

hello

Hello dear friend. First of all, I would like to congratulate you on the work you have done on the subject of npdf, however, I would like to know whether you think that there will be a search option in the future, as it is the only thing missing. Either way, thank you and great job.

Font compatibility

nPDF can't read text in my PDF.
How can i add new font ?
or can you add a default one ?

Occasional blank PDF pages

Sometimes while changing the pages, some of the pages appear blank (completely white).

Not sure of the cause, but maybe it has to do with memory management/garbage collection. The issue usually presents itself with larger PDFs (500 KB+) or PDFs which have been converted from scanned images.

Bug report + feature request

Hi,

I'm testing nPDF with huge files (eBooks with several hundreds of pages).

Bug report - I've noticed :

  • that nPDF does freeze very often when typing Ctrl+G and same thing with Esc
  • that after loading a little number of pages (5-8), all new loaded pages are just shown as blank

Feature request :

  • Ctrl+G (when it works) limits the input to page number 50 - try to get the total number of pages from the document

Regards.

Find (ctrl+F) not working

Ctrl+F does not seem to be working at all. I do not believe I am doing anything wrong. Additionally, I cannot seem to get any other functions involving the ctrl key to work on nPDF. I have listed my version below. Thanks for any help/fixes.

Using the latest version of nPDF with version 4.2.0.532

Search bugs, problems, and requests

  • Because of the dialog box, when performing a seach the display gets altered and becomes dirty.
    But if nothing is found, the display doesn't get refreshed. So it remains dirty, and the user doesn't know that the search has ended.
  • Although we can easily input them with the flag/book keys, special characters (letters with an accent for example) aren't found, even when present in the document.
  • Search results don't seem to get reset properly. They are still partially present when performing several searches in a row on the same document, and interfere with the results display (if a text display is inverted twice, then it gets normal again...)
  • When a search result is not visible on the screen, the page doesn't scroll automatically.
  • If we don't release it very fast, typing Ctrl+F does input F in the dialog box, which then has to be deleted each time.
  • Any way to have the search scan all the pages and not only the current one ?

In all cases, thanks for this new promising feature. :)

Can't get it to compile (update: found a workaround)

When I simply try the provided makefile, it's all well until I get this :

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C mupdf generate build=release
    LINK build/release/cmapdump
ld: library not found for -lmupdf
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [build/release/cmapdump] Error 1
make: *** [generate] Error 2

(that's GNU make 3.81)

So, I tried making the required libs "by hand" in the mupdf folder, and I did that command
make build=release OS=ti-nspire XCFLAGS="-DNOCJK -DNODROIDFONT"

But then, I get :

/Users/adriweb/Documents/Nspire_Dev/Ndless/ndless-sdk/toolchain/install/lib/gcc/arm-none-eabi/4.9.1/../../../../arm-none-eabi/lib/libc.a(lib_a-timesr.o): In function `_times_r':
timesr.c:(.text+0x18): undefined reference to `_times'
collect2: error: ld returned 1 exit status
make: *** [build/release/mujstest] Error 1

Any idea ?
Thanks.

new version

hey legitmet, I would like to know when you're gonna release your the next version of npdf, will it take days, weeks or months ? because the searching text ' would be extremely useful and helpful thank you in advance :))))))

Feature request : change page when scrolling

Hi,
I wonder if it will be possible to automatically change page when arriving at the end (or beginning) of a page while scrolling. For now, change of pages seems to be done only with + and -
The best would be to obtain "continuous" scrolling between multiple pages like we have in many desktop pdf readers.
Thanks for your help

Edit : I've tried mupdf on Ubuntu and actually it changes automatically pages when scrolling

Edit2 : It's very confusing : man mupdf says the opposite :

   Scroll wheel
          Pan page up or down. Does not change page when reaching the bottom or top edge.

Edit3 : Now I understand that commands control Viewer.cpp :
I tryed a simple patch witch kind of work when scrolling up (but we have to make it go at the bottom of previous page) but not when scrolling down...
Is yPos always < (bounds.y1 - bounds.y0) - height ?

https://github.com/davy39/nPDF/commit/c6b3bce5c4f53cd7765f993133b69256452f1c18

Request for epub reading

Hi,
I wonder if it is possible to modify the program in order to be able to read epubs & html.
With such kind of small screen, I think that epub are better than pdf due to their dynamic rendering when zooming.
Thank for your work

Feature request: search for text

Would this feature request be feasible? My comprehension is that, for a first run, an index would need to be built after going through all the pages. The search engine would then use that index to display the page hits.

Add Scrollbars

This is related to Critor's PR (#1) : adding scrollbars would be great :)

Cannot compile

  • Cannot find "hb.h" and "hb-ft.h".
  • Cannot find "gnu/stubs.h" and "gnu/stubs-32.h"
  • After working around the two above, there are more errors, see in the log file for detail

nPDF.log.txt

Limited Find Functionality

CTRL+F Seems to be working... but only for the page of the document are on. It seems that if it doesn't find something (or if it's on another page), it will occasionally will just return to the file system until you press esc, which may return you to the PDF.

Am I missing something, or is it only Find for the page you're on? I have a larger document, so being able to search through the instances is what I assumed it would do similarly to adobe reader or ms word.

EDIT: I found that CTRL + G and CTRL+Shift+G (go forward/backwards), but it doesn't go page by page. I'm assuming this is a limitation.

Bug reports

When navigating a PDF using the number pad in 0.3, the 1 button doesn't function as it did in 0.2. It should scroll down, and to the left.

Isolated bug and merged pull request to fix the numerical downleft.

Failed to install on TI-nspire CAS

ndless 3.9.0 classic is installed, but i cannt open npdf 0.4beta on my caculator (it doesn't work when i click on it). what should i do? Should i try npdf 0.3? T T

error: pathspec 'mupdf/thirdparty/jpeg' did not match any file(s) known to git

libres-MacBook:src-readonly libre$ git clone https://github.com/Legimet/nPDF.git
Cloning into 'nPDF'...
remote: Enumerating objects: 4256, done.
remote: Total 4256 (delta 0), reused 0 (delta 0), pack-reused 4256
Receiving objects: 100% (4256/4256), 42.24 MiB | 689.00 KiB/s, done.
Resolving deltas: 100% (2451/2451), done.
libres-MacBook:src-readonly libre$ cd nPDF/
libres-MacBook:nPDF libre$ git submodule init
Submodule 'thirdparty/curl' (git://git.ghostscript.com/thirdparty-curl.git) registered for path 'mupdf/thirdparty/curl'
Submodule 'thirdparty/freeglut' (git://git.ghostscript.com/thirdparty-freeglut.git) registered for path 'mupdf/thirdparty/freeglut'
Submodule 'thirdparty/freetype' (git://git.ghostscript.com/thirdparty-freetype2.git) registered for path 'mupdf/thirdparty/freetype'
Submodule 'thirdparty/harfbuzz' (https://github.com/Legimet/thirdparty-harfbuzz.git) registered for path 'mupdf/thirdparty/harfbuzz'
Submodule 'thirdparty/jbig2dec' (git://git.ghostscript.com/jbig2dec.git) registered for path 'mupdf/thirdparty/jbig2dec'
Submodule 'thirdparty/lcms2' (git://git.ghostscript.com/thirdparty-lcms2.git) registered for path 'mupdf/thirdparty/lcms2'
Submodule 'thirdparty/jpeg' (git://git.ghostscript.com/thirdparty-libjpeg.git) registered for path 'mupdf/thirdparty/libjpeg'
Submodule 'thirdparty/mujs' (git://git.ghostscript.com/mujs.git) registered for path 'mupdf/thirdparty/mujs'
Submodule 'thirdparty/openjpeg' (git://git.ghostscript.com/thirdparty-openjpeg.git) registered for path 'mupdf/thirdparty/openjpeg'
Submodule 'thirdparty/zlib' (git://git.ghostscript.com/thirdparty-zlib.git) registered for path 'mupdf/thirdparty/zlib'
libres-MacBook:nPDF libre$ git submodule update mupdf/thirdparty/jbig2dec mupdf/thirdparty/jpeg mupdf/thirdparty/openjpeg
error: pathspec 'mupdf/thirdparty/jpeg' did not match any file(s) known to git

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.